Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.jdbc » kernel » [javadoc | source]
org.apache.openjpa.jdbc.kernel
public class: JDBCStoreManager [javadoc | source]
java.lang.Object
   org.apache.openjpa.jdbc.kernel.JDBCStoreManager

All Implemented Interfaces:
    JDBCStore, StoreManager

Direct Known Subclasses:
    SliceStoreManager, DistributedStoreManager

StoreManager plugin that uses JDBC to store persistent data in a relational data store.
Nested Class Summary:
protected class  JDBCStoreManager.RefCountConnection  Connection wrapper that keeps an internal ref count so that it knows when to really close. 
Method from org.apache.openjpa.jdbc.kernel.JDBCStoreManager Summary:
assignField,   assignObjectId,   beforeStateChange,   begin,   beginOptimistic,   cancelAll,   close,   commit,   compareVersion,   connectInternal,   copyDataStoreId,   executeExtent,   exists,   find,   flush,   getClientConnection,   getConfiguration,   getConnection,   getContext,   getDBDictionary,   getDataSource,   getDataStoreIdSequence,   getDataStoreIdType,   getFetchConfiguration,   getLockManager,   getManagedType,   getSQLFactory,   getType,   getValueSequence,   getVersion,   initialize,   initializeState,   isEmptyResult,   load,   load,   loadAll,   loadSubclasses,   newDataStoreId,   newDataStoreId,   newFetchConfiguration,   newQuery,   releaseConnection,   retainConnection,   rollback,   rollbackOptimistic,   select,   setContext,   setContext,   syncVersion
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.jdbc.kernel.JDBCStoreManager Detail:
 public boolean assignField(OpenJPAStateManager sm,
    int field,
    boolean preFlush) 
 public boolean assignObjectId(OpenJPAStateManager sm,
    boolean preFlush) 
 public  void beforeStateChange(OpenJPAStateManager sm,
    PCState fromState,
    PCState toState) 
 public  void begin() 
 public  void beginOptimistic() 
 public boolean cancelAll() 
 public  void close() 
 public  void commit() 
 public int compareVersion(OpenJPAStateManager state,
    Object v1,
    Object v2) 
 protected JDBCStoreManager.RefCountConnection connectInternal() throws SQLException 
    Connect to the database. This method is separated out so that it can be overridden.
 public Object copyDataStoreId(Object oid,
    ClassMetaData meta) 
 public ResultObjectProvider executeExtent(ClassMetaData meta,
    boolean subclasses,
    FetchConfiguration fetch) 
 public boolean exists(OpenJPAStateManager sm,
    Object context) 
 public Object find(Object oid,
    ValueMapping vm,
    JDBCFetchConfiguration fetch) 
    Find the object with the given oid.
 public Collection flush(Collection sms) 
 public Object getClientConnection() 
 public JDBCConfiguration getConfiguration() 
 public Connection getConnection() 
 public StoreContext getContext() 
 public DBDictionary getDBDictionary() 
 protected DataSource getDataSource() 
 public Seq getDataStoreIdSequence(ClassMetaData meta) 
 public Class getDataStoreIdType(ClassMetaData meta) 
 public JDBCFetchConfiguration getFetchConfiguration() 
 public JDBCLockManager getLockManager() 
 public Class getManagedType(Object oid) 
 public SQLFactory getSQLFactory() 
 protected Class getType(Result res,
    ClassMapping mapping) 
    This method is to provide override for non-JDBC or JDBC-like implementation of getting type from the result set.
 public Seq getValueSequence(FieldMetaData fmd) 
 protected  void getVersion(ClassMapping mapping,
    OpenJPAStateManager sm,
    Result res) throws SQLException 
    This method is to provide override for non-JDBC or JDBC-like implementation of getting version from the result set.
 public boolean initialize(OpenJPAStateManager sm,
    PCState state,
    FetchConfiguration fetch,
    Object context) 
 protected boolean initializeState(OpenJPAStateManager sm,
    PCState state,
    JDBCFetchConfiguration fetch,
    ConnectionInfo info) throws ClassNotFoundException, SQLException 
    Initialize a newly-loaded instance.
 protected boolean isEmptyResult(Result res) throws SQLException 
    This method is to provide override for non-JDBC or JDBC-like implementation of checking whether the result set is empty or not.
 public Object load(ClassMapping mapping,
    JDBCFetchConfiguration fetch,
    BitSet exclude,
    Result result) throws SQLException 
    Load the object in the current row of the given result.
 public boolean load(OpenJPAStateManager sm,
    BitSet fields,
    FetchConfiguration fetch,
    int lockLevel,
    Object context) 
 public Collection loadAll(Collection sms,
    PCState state,
    int load,
    FetchConfiguration fetch,
    Object context) 
 public  void loadSubclasses(ClassMapping mapping) 
    Makes sure all subclasses of the given type are loaded in the JVM. This is usually done automatically.
 public Object newDataStoreId(Object val,
    ClassMetaData meta) 
 public Id newDataStoreId(long id,
    ClassMapping mapping,
    boolean subs) 
 public FetchConfiguration newFetchConfiguration() 
 public StoreQuery newQuery(String language) 
 public  void releaseConnection() 
 public  void retainConnection() 
 public  void rollback() 
 public  void rollbackOptimistic() 
 public boolean select(Select sel,
    ClassMapping mapping,
    int subs,
    OpenJPAStateManager sm,
    BitSet fields,
    JDBCFetchConfiguration fetch,
    int eager,
    boolean ident,
    boolean outer) 
    For implementation use only. Return a select for the proper mappings. Return null if no select is needed. The method is designed to be complementary to the load methods.
 public  void setContext(StoreContext ctx) 
 public  void setContext(StoreContext ctx,
    JDBCConfiguration conf) 
 public boolean syncVersion(OpenJPAStateManager sm,
    Object context)