public class CrudDSL<T,K> extends Object
| Constructor | Description |
|---|---|
CrudDSL(org.simpleflatmapper.reflect.meta.ClassMeta<T> target,
org.simpleflatmapper.reflect.meta.ClassMeta<K> keyTarget,
JdbcMapperFactory jdbcMapperFactory) |
| Modifier and Type | Method | Description |
|---|---|---|
Crud<T,K> |
crud() |
Create a crud that will validate on the first interaction with a connection.
|
Crud<T,K> |
table(String table) |
Create a crud against the specified table that will validate on the first interaction with a connection.
|
Crud<T,K> |
table(Connection connection,
String table) |
Create a crud against the specified table validating it against the specified connection.
|
ConnectedCrud<T,K> |
table(DataSource dataSource,
String table) |
Create a connected crud against the specified table validating it against the specified datasource.
|
Crud<T,K> |
to(Connection connection) |
Create a connected crud validating it against the specified connection.
|
ConnectedCrud<T,K> |
to(DataSource dataSource) |
Create a connected crud validating it against the specified datasource.
|
public CrudDSL(org.simpleflatmapper.reflect.meta.ClassMeta<T> target, org.simpleflatmapper.reflect.meta.ClassMeta<K> keyTarget, JdbcMapperFactory jdbcMapperFactory)
public Crud<T,K> crud()
public Crud<T,K> table(String table)
table - the table namepublic Crud<T,K> table(Connection connection, String table) throws SQLException
connection - the connectiontable - the tableSQLException - if an error occurredpublic ConnectedCrud<T,K> table(DataSource dataSource, String table) throws SQLException
dataSource - the datasourcetable - the tableSQLException - if an error occurredpublic ConnectedCrud<T,K> to(DataSource dataSource) throws SQLException
dataSource - the datasourceSQLException - if an error occurredpublic Crud<T,K> to(Connection connection) throws SQLException
connection - the connectionSQLException - if an error occurredCopyright © 2019. All rights reserved.