Class XmlParserState
java.lang.Object
com.ibatis.sqlmap.engine.builder.xml.XmlParserState
The Class 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
Gets the config.- Returns:
- the config
-
setGlobalProps
Sets the global props.- Parameters:
props
- the new global props
-
getGlobalProps
Gets the global props.- Returns:
- the global props
-
getTxProps
Gets the tx props.- Returns:
- the tx props
-
getDsProps
Gets the ds props.- Returns:
- the ds props
-
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
Gets the sql includes.- Returns:
- the sql includes
-
setNamespace
Sets the namespace.- Parameters:
namespace
- the new namespace
-
applyNamespace
Apply namespace.- Parameters:
id
- the id- Returns:
- the string
-
getCacheConfig
Gets the cache config.- Returns:
- the cache config
-
setCacheConfig
Sets the cache config.- Parameters:
cacheConfig
- the new cache config
-
getParamConfig
Gets the param config.- Returns:
- the param config
-
setParamConfig
Sets the param config.- Parameters:
paramConfig
- the new param config
-
getResultConfig
Gets the result config.- Returns:
- the result config
-
setResultConfig
Sets the result config.- Parameters:
resultConfig
- the new result config
-
getFirstToken
Gets the first token.- Parameters:
s
- the s- Returns:
- the first token
-
getAllButFirstToken
Gets the all but first token.- Parameters:
s
- the s- Returns:
- the all but first token
-
setGlobalProperties
Sets the global properties.- Parameters:
resource
- the resourceurl
- the url
-
getDataSource
Gets the data source.- Returns:
- the data source
-
setDataSource
Sets the data source.- Parameters:
dataSource
- the new data source
-