Class XmlParserState
java.lang.Object
com.ibatis.sqlmap.engine.builder.xml.XmlParserState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyNamespace(String id) Apply namespace.String[]Gets the all but first token.Gets the cache config.Gets the cache props.Gets the config.Gets the data source.Gets the ds props.Gets the first token.Gets the global props.Gets the param config.Gets the result config.Gets the sql includes.Gets the tx props.booleanChecks if is use statement namespaces.voidsetCacheConfig(CacheModelConfig cacheConfig) Sets the cache config.voidsetDataSource(DataSource dataSource) Sets the data source.voidsetGlobalProperties(String resource, String url) Sets the global properties.voidsetGlobalProps(Properties props) Sets the global props.voidsetNamespace(String namespace) Sets the namespace.voidsetParamConfig(ParameterMapConfig paramConfig) Sets the param config.voidsetResultConfig(ResultMapConfig resultConfig) Sets the result config.voidsetUseStatementNamespaces(boolean useStatementNamespaces) Sets the use statement namespaces.
-
Constructor Details
-
XmlParserState
public XmlParserState()
-
-
Method Details
-
getConfig
-
setGlobalProps
Sets the global props.- Parameters:
props- the new global props
-
getGlobalProps
-
getTxProps
-
getDsProps
-
getCacheProps
-
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
-
setNamespace
Sets the namespace.- Parameters:
namespace- the new namespace
-
applyNamespace
-
getCacheConfig
-
setCacheConfig
Sets the cache config.- Parameters:
cacheConfig- the new cache config
-
getParamConfig
-
setParamConfig
Sets the param config.- Parameters:
paramConfig- the new param config
-
getResultConfig
-
setResultConfig
Sets the result config.- Parameters:
resultConfig- the new result config
-
getFirstToken
-
getAllButFirstToken
-
setGlobalProperties
-
getDataSource
-
setDataSource
Sets the data source.- Parameters:
dataSource- the new data source
-