public class LambdaTemplate extends JdbcTemplate implements LambdaOperations
JdbcTemplate.SqlProvider| 限定符和类型 | 字段和说明 |
|---|---|
protected SqlDialect |
dialect |
protected Map<Class<?>,TableMapping<?>> |
entMapping |
protected Map<String,TableMapping<?>> |
mapMapping |
| 构造器和说明 |
|---|
LambdaTemplate()
Construct a new JdbcTemplate for bean usage.
|
LambdaTemplate(Connection conn)
Construct a new JdbcTemplate, given a Connection to obtain connections from.
|
LambdaTemplate(Connection conn,
TypeHandlerRegistry typeRegistry)
Construct a new JdbcTemplate, given a Connection to obtain connections from.
|
LambdaTemplate(DataSource dataSource)
Construct a new JdbcTemplate, given a DataSource to obtain connections from.
|
LambdaTemplate(DataSource dataSource,
TypeHandlerRegistry typeRegistry)
Construct a new JdbcTemplate, given a DataSource to obtain connections from.
|
LambdaTemplate(DynamicConnection dynamicConn)
Construct a new JdbcTemplate, given a Connection to obtain connections from.
|
LambdaTemplate(DynamicConnection dynamicConn,
TypeHandlerRegistry typeRegistry)
Construct a new JdbcTemplate, given a Connection to obtain connections from.
|
call, call, call, call, call, createResultsMap, execute, execute, execute, execute, execute, execute, executeBatch, executeBatch, executeBatch, executeBatch, executeBatch, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getBeanPropertyResultSetExtractor, getBeanPropertyRowMapper, getColumnMapRowMapper, getParsedSql, getPreparedStatementCreator, getSingleColumnRowMapper, getTypeRegistry, isResultsCaseInsensitive, loadSplitSQL, loadSplitSQL, loadSplitSQL, loadSQL, loadSQL, loadSQL, multipleExecute, multipleExecute, multipleExecute, multipleExecute, newArgPreparedStatementSetter, processResultSet, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, queryForInt, queryForInt, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForList, queryForList, queryForList, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForLong, queryForLong, queryForMap, queryForMap, queryForMap, queryForMap, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForString, queryForString, queryForString, queryForString, setResultsCaseInsensitive, setTypeRegistryapplyStatementSettings, execute, execute, getFetchSize, getMaxRows, getQueryTimeout, handleWarnings, isIgnoreWarnings, isPrintStmtError, setFetchSize, setIgnoreWarnings, setMaxRows, setPrintStmtError, setQueryTimeoutgetConnection, getDataSource, getDynamic, setConnection, setDataSource, setDynamicclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlambdaDelete, lambdaDelete, lambdaInsert, lambdaInsert, lambdaInsert, lambdaQuery, lambdaQuery, lambdaUpdate, lambdaUpdatecall, call, call, call, call, execute, execute, execute, execute, execute, execute, execute, execute, executeBatch, executeBatch, executeBatch, executeBatch, executeBatch, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, multipleExecute, multipleExecute, multipleExecute, multipleExecute, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, queryForInt, queryForInt, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForList, queryForList, queryForList, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForLong, queryForLong, queryForMap, queryForMap, queryForMap, queryForMap, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForString, queryForString, queryForString, queryForStringprotected final Map<Class<?>,TableMapping<?>> entMapping
protected final Map<String,TableMapping<?>> mapMapping
protected SqlDialect dialect
public LambdaTemplate()
Note: The DataSource has to be set before using the instance.
public LambdaTemplate(DataSource dataSource)
Note: This will not trigger initialization of the exception translator.
dataSource - the JDBC DataSource to obtain connections frompublic LambdaTemplate(DataSource dataSource, TypeHandlerRegistry typeRegistry)
Note: This will not trigger initialization of the exception translator.
dataSource - the JDBC DataSource to obtain connections fromtypeRegistry - the TypeHandlerRegistrypublic LambdaTemplate(Connection conn)
Note: This will not trigger initialization of the exception translator.
conn - the JDBC Connectionpublic LambdaTemplate(Connection conn, TypeHandlerRegistry typeRegistry)
Note: This will not trigger initialization of the exception translator.
conn - the JDBC ConnectiontypeRegistry - the TypeHandlerRegistrypublic LambdaTemplate(DynamicConnection dynamicConn)
Note: This will not trigger initialization of the exception translator.
dynamicConn - the JDBC Connection of dynamicpublic LambdaTemplate(DynamicConnection dynamicConn, TypeHandlerRegistry typeRegistry)
Note: This will not trigger initialization of the exception translator.
dynamicConn - the JDBC Connection of dynamictypeRegistry - the TypeHandlerRegistryprotected void init()
public void setDialect(SqlDialect dialect)
protected <T> TableMapping<T> getTableMapping(Class<T> exampleType, MappingOptions options)
protected List<ColumnDef> fetchColumns(Connection con, String schema, String table, MappingOptions options) throws SQLException
SQLExceptionprotected TableMapping<?> getTableMapping(String schema, String table, MappingOptions options) throws SQLException
SQLExceptionprotected SqlDialect getDefaultDialect()
public <T> InsertOperation<T> lambdaInsert(Class<T> exampleType, MappingOptions options)
LambdaOperationslambdaInsert 在接口中 LambdaOperationspublic InsertOperation<Map<String,Object>> lambdaInsert(String schema, String table, MappingOptions options) throws SQLException
LambdaOperationslambdaInsert 在接口中 LambdaOperationsSQLExceptionpublic <T> EntityUpdateOperation<T> lambdaUpdate(Class<T> exampleType, MappingOptions options)
LambdaOperationslambdaUpdate 在接口中 LambdaOperationspublic MapUpdateOperation lambdaUpdate(String schema, String table, MappingOptions options) throws SQLException
LambdaOperationslambdaUpdate 在接口中 LambdaOperationsSQLExceptionpublic <T> EntityDeleteOperation<T> lambdaDelete(Class<T> exampleType, MappingOptions options)
LambdaOperationslambdaDelete 在接口中 LambdaOperationspublic MapDeleteOperation lambdaDelete(String schema, String table, MappingOptions options) throws SQLException
LambdaOperationslambdaDelete 在接口中 LambdaOperationsSQLExceptionpublic <T> EntityQueryOperation<T> lambdaQuery(Class<T> exampleType, MappingOptions options)
LambdaOperationslambdaQuery 在接口中 LambdaOperationspublic MapQueryOperation lambdaQuery(String schema, String table, MappingOptions options) throws SQLException
LambdaOperationslambdaQuery 在接口中 LambdaOperationsSQLExceptionCopyright © 2021–2022. All rights reserved.