org.apache.openjpa.xmlstore
Class XMLStoreManager
java.lang.Object
org.apache.openjpa.abstractstore.AbstractStoreManager
org.apache.openjpa.xmlstore.XMLStoreManager
- All Implemented Interfaces:
- StoreManager, org.apache.openjpa.lib.util.Closeable
public class XMLStoreManager
- extends AbstractStoreManager
Store manager to a back-end consisting of XML files. This
implementation accesses data through the XMLStore
associated with
its XMLConfiguration
. Configuration instances are shared by all
store managers owned by all brokers created with the same factory.
- See Also:
AbstractStoreManager
Method Summary |
void |
begin()
|
void |
commit()
|
org.apache.openjpa.lib.rop.ResultObjectProvider |
executeExtent(ClassMetaData meta,
boolean subclasses,
FetchConfiguration fetch)
|
boolean |
exists(OpenJPAStateManager sm,
Object context)
|
protected Collection |
flush(Collection pNew,
Collection pNewUpdated,
Collection pNewFlushedDeleted,
Collection pDirty,
Collection pDeleted)
|
protected Collection |
getUnsupportedOptions()
|
boolean |
initialize(OpenJPAStateManager sm,
PCState state,
FetchConfiguration fetch,
Object context)
|
boolean |
load(OpenJPAStateManager sm,
BitSet fields,
FetchConfiguration fetch,
int lockLevel,
Object context)
|
protected OpenJPAConfiguration |
newConfiguration()
|
protected void |
open()
|
void |
rollback()
|
boolean |
syncVersion(OpenJPAStateManager sm,
Object context)
|
Methods inherited from class org.apache.openjpa.abstractstore.AbstractStoreManager |
assignDataStoreId, assignField, assignObjectId, beforeStateChange, beginOptimistic, cancelAll, close, compareVersion, copyDataStoreId, flush, getClientConnection, getContext, getDataStoreIdSequence, getDataStoreIdType, getManagedType, getPlatform, getValueSequence, loadAll, newDataStoreId, newFetchConfiguration, newQuery, releaseConnection, retainConnection, rollbackOptimistic, setContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLStoreManager
public XMLStoreManager()
getUnsupportedOptions
protected Collection getUnsupportedOptions()
- Overrides:
getUnsupportedOptions
in class AbstractStoreManager
newConfiguration
protected OpenJPAConfiguration newConfiguration()
- Overrides:
newConfiguration
in class AbstractStoreManager
open
protected void open()
- Overrides:
open
in class AbstractStoreManager
exists
public boolean exists(OpenJPAStateManager sm,
Object context)
initialize
public boolean initialize(OpenJPAStateManager sm,
PCState state,
FetchConfiguration fetch,
Object context)
- Specified by:
initialize
in interface StoreManager
- Specified by:
initialize
in class AbstractStoreManager
load
public boolean load(OpenJPAStateManager sm,
BitSet fields,
FetchConfiguration fetch,
int lockLevel,
Object context)
- Specified by:
load
in interface StoreManager
- Specified by:
load
in class AbstractStoreManager
syncVersion
public boolean syncVersion(OpenJPAStateManager sm,
Object context)
- Specified by:
syncVersion
in interface StoreManager
- Overrides:
syncVersion
in class AbstractStoreManager
begin
public void begin()
- Specified by:
begin
in interface StoreManager
- Overrides:
begin
in class AbstractStoreManager
commit
public void commit()
- Specified by:
commit
in interface StoreManager
- Overrides:
commit
in class AbstractStoreManager
rollback
public void rollback()
- Specified by:
rollback
in interface StoreManager
- Overrides:
rollback
in class AbstractStoreManager
flush
protected Collection flush(Collection pNew,
Collection pNewUpdated,
Collection pNewFlushedDeleted,
Collection pDirty,
Collection pDeleted)
- Specified by:
flush
in class AbstractStoreManager
executeExtent
public org.apache.openjpa.lib.rop.ResultObjectProvider executeExtent(ClassMetaData meta,
boolean subclasses,
FetchConfiguration fetch)
- Specified by:
executeExtent
in interface StoreManager
- Specified by:
executeExtent
in class AbstractStoreManager
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.