C - the context typepublic class SqlColumnsHandlerConfig<C> extends Object
SQL column handlers.| Modifier | Constructor and Description |
|---|---|
protected |
SqlColumnsHandlerConfig(String tableName,
String idColumn,
C context,
PreparedStatementGeneratorFactory generatorFactory) |
protected SqlColumnsHandlerConfig(String tableName, String idColumn, C context, PreparedStatementGeneratorFactory generatorFactory)
public static <C> SqlColumnsHandlerConfig<C> forSingleConnection(Connection connection, String tableName, String idColumn, C context)
C - the context typeconnection - the connection to the database to usetableName - the table nameidColumn - name of the ID columncontext - the contextpublic static <C> SqlColumnsHandlerConfig<C> forConnectionPool(ConnectionSupplier connectionSupplier, String tableName, String idColumn, C context)
C - the context typeconnectionSupplier - supplier of connections to the databasetableName - the table nameidColumn - name of the ID columncontext - the contextpublic SqlColumnsHandlerConfig<C> setPreparedStatementGeneratorFactory(PreparedStatementGeneratorFactory factory)
PreparedStatementGeneratorFactory.factory - factory to setpublic SqlColumnsHandlerConfig<C> setResultSetValueRetriever(ResultSetValueRetriever<C> resultSetValueRetriever)
ResultSetValueRetriever.resultSetValueRetriever - value retriever to setpublic SqlColumnsHandlerConfig<C> setPredicateSqlGenerator(PredicateSqlGenerator<C> predicateSqlGenerator)
PredicateSqlGenerator.predicateSqlGenerator - predicate SQL generator to setpublic String getTableName()
public String getIdColumn()
public C getContext()
public PreparedStatementGeneratorFactory getStatementGeneratorFactory()
public ResultSetValueRetriever<C> getResultSetValueRetriever()
public PredicateSqlGenerator<C> getPredicateSqlGenerator()
Copyright © 2017–2024. All rights reserved.