Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.jdbc » schema » [javadoc | source]
org.apache.openjpa.jdbc.schema
public class: DataSourceFactory [javadoc | source]
java.lang.Object
   org.apache.openjpa.jdbc.schema.DataSourceFactory
Factory for DataSource objects. The factory uses the supplied configuration to obtain a 3rd-party datasource or to create one, and to setup prepared statement caching.
Method from org.apache.openjpa.jdbc.schema.DataSourceFactory Summary:
closeDataSource,   decorateDataSource,   defaultsDataSource,   installDBDictionary,   newDataSource
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.jdbc.schema.DataSourceFactory Detail:
 public static  void closeDataSource(DataSource ds) 
    Close the given data source.
 public static DecoratingDataSource decorateDataSource(DataSource ds,
    JDBCConfiguration conf,
    boolean factory2) 
    Install listeners and base decorators.
 public static DataSource defaultsDataSource(DataSource ds,
    String user,
    String pass) 
    Return a data source with the given user name and password pre-configured as the defaults when DataSource#getConnection is called.
 public static DecoratingDataSource installDBDictionary(DBDictionary dict,
    DecoratingDataSource ds,
    JDBCConfiguration conf,
    boolean factory2) 
    Install things deferred until the DBDictionary instance is available.
 public static DataSource newDataSource(JDBCConfiguration conf,
    boolean factory2) 
    Create a datasource using the given configuration.