@FunctionalInterface public interface PreparedStatementGeneratorFactory
PreparedStatementGenerator objects.| Modifier and Type | Method and Description |
|---|---|
PreparedStatementGenerator |
create(String sql)
Creates a PreparedStatement generator for the given SQL code.
|
static PreparedStatementGeneratorFactory |
fromConnection(Connection con)
Creates a generator factory based on the given connection.
|
static PreparedStatementGeneratorFactory |
fromConnectionPool(ConnectionSupplier connectionSupplier)
Creates a generator factory which uses the given connection supplier (typically a connection pool).
|
PreparedStatementGenerator create(String sql)
sql - the sql code to create a generator forstatic PreparedStatementGeneratorFactory fromConnection(Connection con)
con - the data source connectionstatic PreparedStatementGeneratorFactory fromConnectionPool(ConnectionSupplier connectionSupplier)
connectionSupplier - the supplier to useCopyright © 2017–2024. All rights reserved.