Class Hierarchy Previous Next Index
java.lang.Object | +----COM.cloudscape.core.DataSourceFactory
This is a factory for Cloudscape data sources. Data source is a JDBC2.0 extension interface. This class should only be used if one is running with java version 2 or later, with JTA and has JDBC 2.0 extension in the CLASSPATH. I.e., javax.sql.* and javax.transaction.xa.*.
All cloudscape data source objects implement JNDI referenceable API and serializable API. New Data Source objects can be created, typically by a system administrator, using DataSourceFactory static methods. To use these DataSources, their appropriate data source properties must be set. See examples in AbstractDataSource.
A Data Source can be registered with a JNDI server and unmarshalled using the DataSourceFactory.getObjectInstance call. Or, a Data Source object can be stored in its serialized form and then objectified directly.
All cloudscape data source objects extend AbstractDataSource, which defines all these properties. To see the list of properties that can be set on a Cloudscape data source, and examples on how to set them, see AbstractDataSource.
public DataSourceFactory()
public static BasicDataSource getDataSource()
public static LocalConnectionPoolDataSource getConnectionPoolDataSource()
public static RemoteXaDataSource getRemoteXADataSource()
public static javax.sql.XADataSource getXADataSource() throws java.lang.Exception
public java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment) throws java.lang.Exception
obj
- The possibly null object containing location or reference
information that can be used in creating an object.
name
- The name of this object relative to nameCtx, or null if no
name is specified.
nameCtx
- The context relative to which the name parameter is
specified, or null if name is relative to the default initial context.
environment
- The possibly null environment that is used in
creating the object.
Class Hierarchy Previous Next Index