public class StoreManager
extends org.apache.openjpa.abstractstore.AbstractStoreManager
Constructor and Description |
---|
StoreManager() |
Modifier and Type | Method and Description |
---|---|
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) |
assignDataStoreId, assignField, assignObjectId, beforeStateChange, cancelAll, close, compareVersion, copyDataStoreId, flush, getClientConnection, getContext, getDataStoreIdSequence, getDataStoreIdType, getManagedType, getPlatform, getValueSequence, newDataStoreId, newFetchConfiguration, releaseConnection, retainConnection, setContext
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 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)
Copyright © GigaSpaces.