Class XmlParserState

java.lang.Object
com.ibatis.sqlmap.engine.builder.xml.XmlParserState

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

    • XmlParserState

      public XmlParserState()
  • Method Details

    • getConfig

      public SqlMapConfiguration getConfig()
      Gets the config.
      Returns:
      the config
    • setGlobalProps

      public void setGlobalProps(Properties props)
      Sets the global props.
      Parameters:
      props - the new global props
    • getGlobalProps

      public Properties getGlobalProps()
      Gets the global props.
      Returns:
      the global props
    • getTxProps

      public Properties getTxProps()
      Gets the tx props.
      Returns:
      the tx props
    • getDsProps

      public Properties getDsProps()
      Gets the ds props.
      Returns:
      the ds props
    • getCacheProps

      public Properties getCacheProps()
      Gets the cache props.
      Returns:
      the cache props
    • setUseStatementNamespaces

      public void setUseStatementNamespaces(boolean useStatementNamespaces)
      Sets the use statement namespaces.
      Parameters:
      useStatementNamespaces - the new use statement namespaces
    • isUseStatementNamespaces

      public boolean isUseStatementNamespaces()
      Checks if is use statement namespaces.
      Returns:
      true, if is use statement namespaces
    • getSqlIncludes

      public Map getSqlIncludes()
      Gets the sql includes.
      Returns:
      the sql includes
    • setNamespace

      public void setNamespace(String namespace)
      Sets the namespace.
      Parameters:
      namespace - the new namespace
    • applyNamespace

      public String applyNamespace(String id)
      Apply namespace.
      Parameters:
      id - the id
      Returns:
      the string
    • getCacheConfig

      public CacheModelConfig getCacheConfig()
      Gets the cache config.
      Returns:
      the cache config
    • setCacheConfig

      public void setCacheConfig(CacheModelConfig cacheConfig)
      Sets the cache config.
      Parameters:
      cacheConfig - the new cache config
    • getParamConfig

      public ParameterMapConfig getParamConfig()
      Gets the param config.
      Returns:
      the param config
    • setParamConfig

      public void setParamConfig(ParameterMapConfig paramConfig)
      Sets the param config.
      Parameters:
      paramConfig - the new param config
    • getResultConfig

      public ResultMapConfig getResultConfig()
      Gets the result config.
      Returns:
      the result config
    • setResultConfig

      public void setResultConfig(ResultMapConfig resultConfig)
      Sets the result config.
      Parameters:
      resultConfig - the new result config
    • getFirstToken

      public String getFirstToken(String s)
      Gets the first token.
      Parameters:
      s - the s
      Returns:
      the first token
    • getAllButFirstToken

      public String[] getAllButFirstToken(String s)
      Gets the all but first token.
      Parameters:
      s - the s
      Returns:
      the all but first token
    • setGlobalProperties

      public void setGlobalProperties(String resource, String url)
      Sets the global properties.
      Parameters:
      resource - the resource
      url - the url
    • getDataSource

      public DataSource getDataSource()
      Gets the data source.
      Returns:
      the data source
    • setDataSource

      public void setDataSource(DataSource dataSource)
      Sets the data source.
      Parameters:
      dataSource - the new data source