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.boolean
Checks if is use statement namespaces.void
setCacheConfig
(CacheModelConfig cacheConfig) Sets the cache config.void
setDataSource
(DataSource dataSource) Sets the data source.void
setGlobalProperties
(String resource, String url) Sets the global properties.void
setGlobalProps
(Properties props) Sets the global props.void
setNamespace
(String namespace) Sets the namespace.void
setParamConfig
(ParameterMapConfig paramConfig) Sets the param config.void
setResultConfig
(ResultMapConfig resultConfig) Sets the result config.void
setUseStatementNamespaces
(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
-