org.apache.struts.config
public class DataSourceConfig extends Object implements Serializable
A JavaBean representing the configuration information of a
<data-source> element from a Struts
configuration file.
WARNING - The properties of this configuration bean are recognized by the default data source implementation, but some or all of them may be ignored by custom data source implementations.
Since: Struts 1.1
Version: $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
| Field Summary | |
|---|---|
| protected boolean | configured
Has this component been completely configured? |
| protected String | key
The servlet context attribute key under which this data source
is stored and made available. |
| protected HashMap | properties
The custom configuration properties for this data source implementation. |
| protected String | type
The fully qualified class name of the javax.sql.DataSource
implementation class. |
| Method Summary | |
|---|---|
| void | addProperty(String name, String value)
Add a new custom configuration property.
|
| void | freeze()
Freeze the configuration of this data source. |
| String | getKey() |
| Map | getProperties() |
| String | getType() |
| void | setKey(String key) |
| void | setType(String type) |
| String | toString()
Return a String representation of this object. |
javax.sql.DataSource
implementation class.Parameters: name Custom property name value Custom property value