| |
|
| java.lang.Object org.apache.torque.dsfactory.AbstractDataSourceFactory
All known Subclasses: org.apache.torque.dsfactory.SharedPoolDataSourceFactory, org.apache.torque.dsfactory.JndiDataSourceFactory, org.apache.torque.dsfactory.PerUserPoolDataSourceFactory,
AbstractDataSourceFactory | abstract public class AbstractDataSourceFactory implements DataSourceFactory(Code) | | A class that contains common functionality of the factories in this
package.
author: John McNally author: Henning P. Schmiedehausen version: $Id: AbstractDataSourceFactory.java 473821 2006-11-11 22:37:25Z tv $ |
CONNECTION_KEY | final public static String CONNECTION_KEY(Code) | | "connection" Key for the configuration
|
DEFAULTS_KEY | final public static String DEFAULTS_KEY(Code) | | "defaults" Key for the configuration
|
DEFAULT_CONNECTION_KEY | final public static String DEFAULT_CONNECTION_KEY(Code) | | "defaults.connection" Key for the configuration
|
DEFAULT_POOL_KEY | final public static String DEFAULT_POOL_KEY(Code) | | "defaults.pool" Key for the configuration
|
DEFAULT_SCHEMA_KEY | final public static String DEFAULT_SCHEMA_KEY(Code) | | default schema name for the configuration
|
POOL_KEY | final public static String POOL_KEY(Code) | | "pool" Key for the configuration
|
SCHEMA_KEY | final public static String SCHEMA_KEY(Code) | | "schema" Key for the configuration
|
applyConfiguration | protected void applyConfiguration(Configuration c, Object o) throws TorqueException(Code) | | Iterate over a Configuration subset and apply all
properties to a passed object which must contain Bean
setter and getter
Parameters: c - The configuration subset Parameters: o - The object to apply the properties to throws: TorqueException - if a property set fails |
getSchema | public String getSchema()(Code) | | This method returns the current schema for the database connection
The current schema name. Null means, no schema has been set. throws: TorqueException - Any exceptions caught during processing will berethrown wrapped into a TorqueException. |
initialize | public void initialize(Configuration configuration) throws TorqueException(Code) | | Initialize the factory.
Parameters: configuration - where to load the factory settings from throws: TorqueException - Any exceptions caught during processing will berethrown wrapped into a TorqueException. |
setProperty | protected void setProperty(String property, Configuration c, Object ds) throws Exception(Code) | | Encapsulates setting configuration properties on
DataSource objects.
Parameters: property - the property to read from the configuration Parameters: c - the configuration to read the property from Parameters: ds - the DataSource instance to write the property to throws: Exception - if anything goes wrong |
setSchema | public void setSchema(String schema)(Code) | | Sets the current schema for the database connection
Parameters: schema - The current schema name |
|
|
|