|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.abstractstore.AbstractStoreManager org.openspaces.jpa.StoreManager
public class StoreManager
A GigaSpaces back-end implementation for OpenJPA. Responsible for storing and fetching data from GigaSpaces using space API.
Field Summary |
---|
Fields inherited from class org.apache.openjpa.abstractstore.AbstractStoreManager |
---|
ctx |
Fields inherited from interface org.apache.openjpa.kernel.StoreManager |
---|
FORCE_LOAD_ALL, FORCE_LOAD_DFG, FORCE_LOAD_NONE, FORCE_LOAD_REFRESH, VERSION_DIFFERENT, VERSION_EARLIER, VERSION_LATER, VERSION_SAME |
Constructor Summary | |
---|---|
StoreManager()
|
Method Summary | |
---|---|
void |
begin()
|
void |
beginOptimistic()
|
void |
commit()
|
org.apache.openjpa.lib.rop.ResultObjectProvider |
executeExtent(org.apache.openjpa.meta.ClassMetaData classmetadata,
boolean flag,
org.apache.openjpa.kernel.FetchConfiguration fetchconfiguration)
|
boolean |
exists(org.apache.openjpa.kernel.OpenJPAStateManager sm,
Object edata)
Returns whether the state manager's managed object exists in space. |
protected Collection |
flush(Collection pNew,
Collection pNewUpdated,
Collection pNewFlushedDeleted,
Collection pDirty,
Collection pDeleted)
Flushes changes to GigaSpaces. |
int |
getClassRelationStatus(Class<?> type)
Gets the class relation status (one-to-one etc..) for the provided type. |
SpaceConfiguration |
getConfiguration()
|
Transaction |
getCurrentTransaction()
Gets the current active transaction. |
com.j_spaces.jdbc.driver.GConnection |
getJdbcConnection()
Gets a JDBC connection using the configuration's space instance. |
protected Collection<String> |
getUnsupportedOptions()
|
boolean |
initialize(org.apache.openjpa.kernel.OpenJPAStateManager sm,
org.apache.openjpa.kernel.PCState state,
org.apache.openjpa.kernel.FetchConfiguration fetchConfiguration,
Object edata)
|
boolean |
isCached(List<Object> oids,
BitSet edata)
|
boolean |
load(org.apache.openjpa.kernel.OpenJPAStateManager sm,
BitSet fields,
org.apache.openjpa.kernel.FetchConfiguration fetch,
int lockLevel,
Object context)
This method loads specific fields from the data store for updating them. |
Collection |
loadAll(Collection sms,
org.apache.openjpa.kernel.PCState state,
int load,
org.apache.openjpa.kernel.FetchConfiguration fetch,
Object edata)
|
Object |
loadObject(org.apache.openjpa.meta.ClassMetaData classMetaData,
com.gigaspaces.internal.transport.IEntryPacket entry)
Initializes an ExternalEntry result as a state managed Pojo. |
protected org.apache.openjpa.conf.OpenJPAConfiguration |
newConfiguration()
|
org.apache.openjpa.kernel.StoreQuery |
newQuery(String language)
|
protected void |
open()
|
void |
rollback()
|
void |
rollbackOptimistic()
|
boolean |
syncVersion(org.apache.openjpa.kernel.OpenJPAStateManager sm,
Object edata)
|
Methods inherited from class org.apache.openjpa.abstractstore.AbstractStoreManager |
---|
assignDataStoreId, assignField, assignObjectId, beforeStateChange, cancelAll, close, compareVersion, copyDataStoreId, flush, getClientConnection, getContext, getDataStoreIdSequence, getDataStoreIdType, getManagedType, getPlatform, getValueSequence, newDataStoreId, newFetchConfiguration, releaseConnection, retainConnection, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoreManager()
Method Detail |
---|
protected void open()
open
in class org.apache.openjpa.abstractstore.AbstractStoreManager
protected Collection<String> getUnsupportedOptions()
getUnsupportedOptions
in class org.apache.openjpa.abstractstore.AbstractStoreManager
public boolean syncVersion(org.apache.openjpa.kernel.OpenJPAStateManager sm, Object edata)
syncVersion
in interface org.apache.openjpa.kernel.StoreManager
syncVersion
in class org.apache.openjpa.abstractstore.AbstractStoreManager
public void begin()
begin
in interface org.apache.openjpa.kernel.StoreManager
begin
in class org.apache.openjpa.abstractstore.AbstractStoreManager
public void commit()
commit
in interface org.apache.openjpa.kernel.StoreManager
commit
in class org.apache.openjpa.abstractstore.AbstractStoreManager
public void rollback()
rollback
in interface org.apache.openjpa.kernel.StoreManager
rollback
in class org.apache.openjpa.abstractstore.AbstractStoreManager
public void beginOptimistic()
beginOptimistic
in interface org.apache.openjpa.kernel.StoreManager
beginOptimistic
in class org.apache.openjpa.abstractstore.AbstractStoreManager
public void rollbackOptimistic()
rollbackOptimistic
in interface org.apache.openjpa.kernel.StoreManager
rollbackOptimistic
in class org.apache.openjpa.abstractstore.AbstractStoreManager
public org.apache.openjpa.kernel.StoreQuery newQuery(String language)
newQuery
in interface org.apache.openjpa.kernel.StoreManager
newQuery
in class org.apache.openjpa.abstractstore.AbstractStoreManager
protected org.apache.openjpa.conf.OpenJPAConfiguration newConfiguration()
newConfiguration
in class org.apache.openjpa.abstractstore.AbstractStoreManager
public SpaceConfiguration getConfiguration()
public boolean exists(org.apache.openjpa.kernel.OpenJPAStateManager sm, Object edata)
public boolean isCached(List<Object> oids, BitSet edata)
public Collection loadAll(Collection sms, org.apache.openjpa.kernel.PCState state, int load, org.apache.openjpa.kernel.FetchConfiguration fetch, Object edata)
loadAll
in interface org.apache.openjpa.kernel.StoreManager
loadAll
in class org.apache.openjpa.abstractstore.AbstractStoreManager
public boolean initialize(org.apache.openjpa.kernel.OpenJPAStateManager sm, org.apache.openjpa.kernel.PCState state, org.apache.openjpa.kernel.FetchConfiguration fetchConfiguration, Object edata)
initialize
in interface org.apache.openjpa.kernel.StoreManager
initialize
in class org.apache.openjpa.abstractstore.AbstractStoreManager
public boolean load(org.apache.openjpa.kernel.OpenJPAStateManager sm, BitSet fields, org.apache.openjpa.kernel.FetchConfiguration fetch, int lockLevel, Object context)
load
in interface org.apache.openjpa.kernel.StoreManager
load
in class org.apache.openjpa.abstractstore.AbstractStoreManager
public org.apache.openjpa.lib.rop.ResultObjectProvider executeExtent(org.apache.openjpa.meta.ClassMetaData classmetadata, boolean flag, org.apache.openjpa.kernel.FetchConfiguration fetchconfiguration)
executeExtent
in interface org.apache.openjpa.kernel.StoreManager
executeExtent
in class org.apache.openjpa.abstractstore.AbstractStoreManager
protected Collection flush(Collection pNew, Collection pNewUpdated, Collection pNewFlushedDeleted, Collection pDirty, Collection pDeleted)
flush
in class org.apache.openjpa.abstractstore.AbstractStoreManager
public Object loadObject(org.apache.openjpa.meta.ClassMetaData classMetaData, com.gigaspaces.internal.transport.IEntryPacket entry)
public Transaction getCurrentTransaction()
public com.j_spaces.jdbc.driver.GConnection getJdbcConnection() throws SQLException
SQLException
public int getClassRelationStatus(Class<?> type)
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |