|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
java.lang.Objectcom.ibatis.sqlmap.client.SqlMapClientBuilder
public class SqlMapClientBuilder
Builds SqlMapClient instances from a supplied resource (e.g. XML configuration file)
The SqlMapClientBuilder class is responsible for parsing configuration documents and building the SqlMapClient instance. Its current implementation works with XML configuration files (e.g. sql-map-config.xml). Example:Reader reader = Resources.getResourceAsReader("properties/sql-map-config.xml"); SqlMapClient client = SqlMapClientBuilder.buildSqlMapClient (reader);Examples of the XML document structure used by SqlMapClientBuilder can be found at the links below. Note: They might look big, but they're mostly comments!
构造器摘要 | |
---|---|
protected |
SqlMapClientBuilder()
No instantiation allowed. |
方法摘要 | |
---|---|
static SqlMapClient |
buildSqlMapClient(java.io.InputStream inputStream)
Builds an SqlMapClient using the specified input stream. |
static SqlMapClient |
buildSqlMapClient(java.io.InputStream inputStream,
java.util.Properties props)
Builds an SqlMapClient using the specified input stream and properties file. |
static SqlMapClient |
buildSqlMapClient(java.io.Reader reader)
Builds an SqlMapClient using the specified reader. |
static SqlMapClient |
buildSqlMapClient(java.io.Reader reader,
java.util.Properties props)
Builds an SqlMapClient using the specified reader and properties file. |
类方法继承: java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造器详细信息 |
---|
protected SqlMapClientBuilder()
方法详细信息 |
---|
public static SqlMapClient buildSqlMapClient(java.io.Reader reader)
reader
- A Reader instance that reads an sql-map-config.xml file.
The reader should read an well formed sql-map-config.xml file.
public static SqlMapClient buildSqlMapClient(java.io.Reader reader, java.util.Properties props)
reader
- A Reader instance that reads an sql-map-config.xml file.
The reader should read an well formed sql-map-config.xml file.props
- Properties to be used to provide values to dynamic property tokens
in the sql-map-config.xml configuration file. This provides an easy way to
achieve some level of programmatic configuration.
public static SqlMapClient buildSqlMapClient(java.io.InputStream inputStream)
inputStream
- An InputStream instance that reads an sql-map-config.xml file.
The stream should read a well formed sql-map-config.xml file.
public static SqlMapClient buildSqlMapClient(java.io.InputStream inputStream, java.util.Properties props)
inputStream
- An InputStream instance that reads an sql-map-config.xml file.
The stream should read an well formed sql-map-config.xml file.props
- Properties to be used to provide values to dynamic property tokens
in the sql-map-config.xml configuration file. This provides an easy way to
achieve some level of programmatic configuration.
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |