Class SqlMapConfiguration

java.lang.Object
com.ibatis.sqlmap.engine.config.SqlMapConfiguration

public class SqlMapConfiguration extends Object
The Class SqlMapConfiguration.
  • Constructor Details

    • SqlMapConfiguration

      public SqlMapConfiguration()
      Instantiates a new sql map configuration.
  • Method Details

    • getTypeHandlerFactory

      public TypeHandlerFactory getTypeHandlerFactory()
      Gets the type handler factory.
      Returns:
      the type handler factory
    • getErrorContext

      public ErrorContext getErrorContext()
      Gets the error context.
      Returns:
      the error context
    • getClient

      public SqlMapClientImpl getClient()
      Gets the client.
      Returns:
      the client
    • getDelegate

      public SqlMapExecutorDelegate 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

      public void setDefaultStatementTimeout(Integer defaultTimeout)
      Sets the default statement timeout.
      Parameters:
      defaultTimeout - the new default statement timeout
    • setTransactionManager

      public void setTransactionManager(TransactionManager txManager)
      Sets the transaction manager.
      Parameters:
      txManager - the new transaction manager
    • setResultObjectFactory

      public void setResultObjectFactory(ResultObjectFactory rof)
      Sets the result object factory.
      Parameters:
      rof - the new result object factory
    • newTypeHandler

      public void newTypeHandler(Class javaType, String jdbcType, Object callback)
      New type handler.
      Parameters:
      javaType - the java type
      jdbcType - the jdbc type
      callback - the callback
    • newCacheModelConfig

      public CacheModelConfig newCacheModelConfig(String id, CacheController controller, boolean readOnly, boolean serialize)
      New cache model config.
      Parameters:
      id - the id
      controller - the controller
      readOnly - the read only
      serialize - the serialize
      Returns:
      the cache model config
    • newParameterMapConfig

      public ParameterMapConfig newParameterMapConfig(String id, Class parameterClass)
      New parameter map config.
      Parameters:
      id - the id
      parameterClass - 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 id
      resultClass - the result class
      groupBy - the group by
      extended - the extended
      xmlName - 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 id
      statement - the statement
      processor - the processor
      parameterMapName - the parameter map name
      parameterClass - the parameter class
      resultMapName - the result map name
      additionalResultMapNames - the additional result map names
      resultClass - the result class
      additionalResultClasses - the additional result classes
      resultSetType - the result set type
      fetchSize - the fetch size
      allowRemapping - the allow remapping
      timeout - the timeout
      cacheModelName - the cache model name
      xmlResultName - the xml result name
      Returns:
      the mapped statement config
    • finalizeSqlMapConfig

      public void finalizeSqlMapConfig()
      Finalize sql map config.