public class LambdaTemplate extends JdbcTemplate implements LambdaOperations
JdbcTemplate.SqlProviderLambdaOperations.LambdaCommon<R,T>, LambdaOperations.LambdaDelete<T>, LambdaOperations.LambdaInsert<T>, LambdaOperations.LambdaQuery<T>, LambdaOperations.LambdaUpdate<T>| 限定符和类型 | 字段和说明 |
|---|---|
protected SqlDialect |
dialect |
protected Map<Class<?>,TableMapping<?>> |
tableMapping |
| 构造器和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected SqlDialect |
getDefaultDialect() |
protected <T> TableMapping<T> |
getTableMapping(Class<T> exampleType,
MappingOptions options) |
protected void |
initTypeReader() |
<T> LambdaOperations.LambdaDelete<T> |
lambdaDelete(Class<T> exampleType,
MappingOptions options)
相当于 delete
|
<T> LambdaOperations.LambdaInsert<T> |
lambdaInsert(Class<T> exampleType,
MappingOptions options)
相当于 insert ...
|
<T> LambdaOperations.LambdaQuery<T> |
lambdaQuery(Class<T> exampleType,
MappingOptions options)
相当于 select * form
|
<T> LambdaOperations.LambdaUpdate<T> |
lambdaUpdate(Class<T> exampleType,
MappingOptions options)
相当于 update ...
|
void |
setDialect(SqlDialect dialect) |
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, setQueryTimeoutapplyConnection, getAccessorApply, getConnection, getDataSource, setAccessorApply, setAccessorApply, setConnection, setDataSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlambdaDelete, lambdaInsert, lambdaQuery, 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<?>> tableMapping
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 TypeHandlerRegistryprotected void initTypeReader()
public void setDialect(SqlDialect dialect)
protected <T> TableMapping<T> getTableMapping(Class<T> exampleType, MappingOptions options)
protected SqlDialect getDefaultDialect()
public <T> LambdaOperations.LambdaQuery<T> lambdaQuery(Class<T> exampleType, MappingOptions options)
LambdaOperationslambdaQuery 在接口中 LambdaOperationspublic <T> LambdaOperations.LambdaDelete<T> lambdaDelete(Class<T> exampleType, MappingOptions options)
LambdaOperationslambdaDelete 在接口中 LambdaOperationspublic <T> LambdaOperations.LambdaUpdate<T> lambdaUpdate(Class<T> exampleType, MappingOptions options)
LambdaOperationslambdaUpdate 在接口中 LambdaOperationspublic <T> LambdaOperations.LambdaInsert<T> lambdaInsert(Class<T> exampleType, MappingOptions options)
LambdaOperationslambdaInsert 在接口中 LambdaOperationsCopyright © 2021. All rights reserved.