Package com.ibatis.sqlmap.engine.config
Class SqlMapConfiguration
java.lang.Object
com.ibatis.sqlmap.engine.config.SqlMapConfiguration
The Class SqlMapConfiguration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Finalize sql map config.Gets the client.Gets the delegate.Gets the error context.Gets the type handler factory.newCacheModelConfig
(String id, CacheController controller, boolean readOnly, boolean serialize) New cache model config.newMappedStatementConfig
(String id, MappedStatement statement, SqlSource processor, String parameterMapName, Class parameterClass, String resultMapName, String[] additionalResultMapNames, Class resultClass, Class[] additionalResultClasses, String resultSetType, Integer fetchSize, boolean allowRemapping, Integer timeout, String cacheModelName, String xmlResultName) New mapped statement config.newParameterMapConfig
(String id, Class parameterClass) New parameter map config.New result map config.void
newTypeHandler
(Class javaType, String jdbcType, Object callback) New type handler.void
setCacheModelsEnabled
(boolean cacheModelsEnabled) Sets the cache models enabled.void
setClassInfoCacheEnabled
(boolean classInfoCacheEnabled) Sets the class info cache enabled.void
setDefaultStatementTimeout
(Integer defaultTimeout) Sets the default statement timeout.void
setEnhancementEnabled
(boolean enhancementEnabled) Sets the enhancement enabled.void
setForceMultipleResultSetSupport
(boolean forceMultipleResultSetSupport) Sets the force multiple result set support.void
setLazyLoadingEnabled
(boolean lazyLoadingEnabled) Sets the lazy loading enabled.void
Sets the result object factory.void
setStatementCachingEnabled
(boolean statementCachingEnabled) Sets the statement caching enabled.void
setTransactionManager
(TransactionManager txManager) Sets the transaction manager.void
setUseColumnLabel
(boolean useColumnLabel) Sets the use column label.
-
Constructor Details
-
SqlMapConfiguration
public SqlMapConfiguration()Instantiates a new sql map configuration.
-
-
Method Details
-
getTypeHandlerFactory
Gets the type handler factory.- Returns:
- the type handler factory
-
getErrorContext
Gets the error context.- Returns:
- the error context
-
getClient
Gets the client.- Returns:
- the client
-
getDelegate
Gets the delegate.- Returns:
- the delegate
-
setClassInfoCacheEnabled
public void setClassInfoCacheEnabled(boolean classInfoCacheEnabled) Sets the class info cache enabled.- Parameters:
classInfoCacheEnabled
- the new class info cache enabled
-
setLazyLoadingEnabled
public void setLazyLoadingEnabled(boolean lazyLoadingEnabled) Sets the lazy loading enabled.- Parameters:
lazyLoadingEnabled
- the new lazy loading enabled
-
setStatementCachingEnabled
public void setStatementCachingEnabled(boolean statementCachingEnabled) Sets the statement caching enabled.- Parameters:
statementCachingEnabled
- the new statement caching enabled
-
setCacheModelsEnabled
public void setCacheModelsEnabled(boolean cacheModelsEnabled) Sets the cache models enabled.- Parameters:
cacheModelsEnabled
- the new cache models enabled
-
setEnhancementEnabled
public void setEnhancementEnabled(boolean enhancementEnabled) Sets the enhancement enabled.- Parameters:
enhancementEnabled
- the new enhancement enabled
-
setUseColumnLabel
public void setUseColumnLabel(boolean useColumnLabel) Sets the use column label.- Parameters:
useColumnLabel
- the new use column label
-
setForceMultipleResultSetSupport
public void setForceMultipleResultSetSupport(boolean forceMultipleResultSetSupport) Sets the force multiple result set support.- Parameters:
forceMultipleResultSetSupport
- the new force multiple result set support
-
setDefaultStatementTimeout
Sets the default statement timeout.- Parameters:
defaultTimeout
- the new default statement timeout
-
setTransactionManager
Sets the transaction manager.- Parameters:
txManager
- the new transaction manager
-
setResultObjectFactory
Sets the result object factory.- Parameters:
rof
- the new result object factory
-
newTypeHandler
New type handler.- Parameters:
javaType
- the java typejdbcType
- the jdbc typecallback
- the callback
-
newCacheModelConfig
public CacheModelConfig newCacheModelConfig(String id, CacheController controller, boolean readOnly, boolean serialize) New cache model config.- Parameters:
id
- the idcontroller
- the controllerreadOnly
- the read onlyserialize
- the serialize- Returns:
- the cache model config
-
newParameterMapConfig
New parameter map config.- Parameters:
id
- the idparameterClass
- the parameter class- Returns:
- the parameter map config
-
newResultMapConfig
public ResultMapConfig newResultMapConfig(String id, Class resultClass, String groupBy, String extended, String xmlName) New result map config.- Parameters:
id
- the idresultClass
- the result classgroupBy
- the group byextended
- the extendedxmlName
- the xml name- Returns:
- the result map config
-
newMappedStatementConfig
public MappedStatementConfig newMappedStatementConfig(String id, MappedStatement statement, SqlSource processor, String parameterMapName, Class parameterClass, String resultMapName, String[] additionalResultMapNames, Class resultClass, Class[] additionalResultClasses, String resultSetType, Integer fetchSize, boolean allowRemapping, Integer timeout, String cacheModelName, String xmlResultName) New mapped statement config.- Parameters:
id
- the idstatement
- the statementprocessor
- the processorparameterMapName
- the parameter map nameparameterClass
- the parameter classresultMapName
- the result map nameadditionalResultMapNames
- the additional result map namesresultClass
- the result classadditionalResultClasses
- the additional result classesresultSetType
- the result set typefetchSize
- the fetch sizeallowRemapping
- the allow remappingtimeout
- the timeoutcacheModelName
- the cache model namexmlResultName
- the xml result name- Returns:
- the mapped statement config
-
finalizeSqlMapConfig
public void finalizeSqlMapConfig()Finalize sql map config.
-