Package org.jdbi.v3.sqlobject
Class SqlObjects
- java.lang.Object
-
- org.jdbi.v3.sqlobject.SqlObjects
-
- All Implemented Interfaces:
JdbiConfig<SqlObjects>
public class SqlObjects extends Object implements JdbiConfig<SqlObjects>
Configuration class for SQL objects.
-
-
Constructor Summary
Constructors Constructor Description SqlObjects()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlObjectscreateCopy()ParameterCustomizerFactorygetDefaultParameterCustomizerFactory()Returns the configuredParameterCustomizerFactoryused to bind sql statement parameters when parameter is not explicitly annotated.SqlLocatorgetSqlLocator()Returns the configuredSqlLocator.SqlObjectssetDefaultParameterCustomizerFactory(ParameterCustomizerFactory defaultParameterCustomizerFactory)Configures SqlObject to use the given default parameter customizer factory.SqlObjectssetSqlLocator(SqlLocator sqlLocator)Configures SqlObject to use the givenSqlLocator.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jdbi.v3.core.config.JdbiConfig
setRegistry
-
-
-
-
Method Detail
-
getSqlLocator
public SqlLocator getSqlLocator()
Returns the configuredSqlLocator. The default SQL locator isAnnotationSqlLocator.- Returns:
- the configured
SqlLocator.
-
setSqlLocator
public SqlObjects setSqlLocator(SqlLocator sqlLocator)
Configures SqlObject to use the givenSqlLocator.- Parameters:
sqlLocator- the new SQL locator.- Returns:
- this
SqlObjects.
-
getDefaultParameterCustomizerFactory
public ParameterCustomizerFactory getDefaultParameterCustomizerFactory()
Returns the configuredParameterCustomizerFactoryused 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
public SqlObjects createCopy()
- Specified by:
createCopyin interfaceJdbiConfig<SqlObjects>
-
-