Package org.jdbi.v3.sqlobject
Class SqlObjects
java.lang.Object
org.jdbi.v3.sqlobject.SqlObjects
- All Implemented Interfaces:
JdbiConfig<SqlObjects>
Configuration class for SQL objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the configuredParameterCustomizerFactory
used to bind sql statement parameters when parameter is not explicitly annotated.Returns the configuredSqlLocator
.setDefaultParameterCustomizerFactory
(ParameterCustomizerFactory defaultParameterCustomizerFactory) Configures SqlObject to use the given default parameter customizer factory.setSqlLocator
(SqlLocator sqlLocator) Configures SqlObject to use the givenSqlLocator
.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jdbi.v3.core.config.JdbiConfig
setRegistry
-
Constructor Details
-
SqlObjects
public SqlObjects()
-
-
Method Details
-
getSqlLocator
Returns the configuredSqlLocator
. The default SQL locator isAnnotationSqlLocator
.- Returns:
- the configured
SqlLocator
.
-
setSqlLocator
Configures SqlObject to use the givenSqlLocator
.- Parameters:
sqlLocator
- the new SQL locator.- Returns:
- this
SqlObjects
.
-
getDefaultParameterCustomizerFactory
Returns the configuredParameterCustomizerFactory
used to bind sql statement parameters when parameter is not explicitly annotated. By default it is configured as an instance ofBindParameterCustomizerFactory
.- Returns:
- the configured
SqlStatementCustomizerFactory
.
-
setDefaultParameterCustomizerFactory
public SqlObjects setDefaultParameterCustomizerFactory(ParameterCustomizerFactory defaultParameterCustomizerFactory) Configures SqlObject to use the given default parameter customizer factory.- Parameters:
defaultParameterCustomizerFactory
- the new default parameter customizer factory.- Returns:
- this
SqlObjects
.
-
createCopy
- Specified by:
createCopy
in interfaceJdbiConfig<SqlObjects>
-