Class SqlObjects
java.lang.Object
org.jdbi.v3.sqlobject.SqlObjects
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this configuration object.Returns 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
Description copied from interface:JdbiConfig
Returns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
createCopy
in interfaceJdbiConfig<SqlObjects>
- Returns:
- a copy of this configuration object.
-