|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.datanucleus.store.mapped.scostore.BaseContainerStore
public abstract class BaseContainerStore
Base class for all mapped container stores (collections, maps, arrays). Provides a series of helper methods for handling the store process.
Field Summary | |
---|---|
protected boolean |
allowNulls
Whether the container allows null elements/values. |
protected DatastoreAdapter |
dba
Datastore adapter in use by this store. |
protected static Localiser |
LOCALISER
Localiser for messages. |
protected JavaTypeMapping |
ownerMapping
Mapping to the owner of the container. |
protected AbstractMemberMetaData |
ownerMemberMetaData
MetaData for the field/property in the owner with this container. |
protected int |
relationType
Type of relation (1-N uni, 1-N bi, M-N). |
protected MappedStoreManager |
storeMgr
Manager for the store. |
Constructor Summary | |
---|---|
protected |
BaseContainerStore(StoreManager storeMgr)
Constructor. |
Method Summary | |
---|---|
protected boolean |
allowsBatching()
Convenience method to return if the datastore supports batching and the user wants batching. |
DatastoreAdapter |
getDatastoreAdapter()
|
JavaTypeMapping |
getOwnerMapping()
Accessor for the owner mapping. |
AbstractMemberMetaData |
getOwnerMemberMetaData()
|
int |
getRelationType()
|
ObjectProvider |
getStateManagerForEmbeddedPCObject(ObjectProvider sm,
java.lang.Object obj,
AbstractMemberMetaData ownerFmd)
Method to return the StateManager for an embedded PC object (element, key, value). |
MappedStoreManager |
getStoreManager()
Accessor for the MappedStoreManager. |
protected boolean |
isEmbeddedMapping(JavaTypeMapping mapping)
Check if the mapping correspond to a non pc object or embedded field |
protected void |
setOwner(AbstractMemberMetaData mmd,
ClassLoaderResolver clr)
Method to set the owner for this backing store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Localiser LOCALISER
protected MappedStoreManager storeMgr
protected DatastoreAdapter dba
protected JavaTypeMapping ownerMapping
protected AbstractMemberMetaData ownerMemberMetaData
protected int relationType
protected boolean allowNulls
Constructor Detail |
---|
protected BaseContainerStore(StoreManager storeMgr)
storeMgr
- Manager for the datastore being usedMethod Detail |
---|
protected void setOwner(AbstractMemberMetaData mmd, ClassLoaderResolver clr)
mmd
- MetaData for the member owning this backing store.clr
- ClassLoader resolverpublic MappedStoreManager getStoreManager()
public JavaTypeMapping getOwnerMapping()
protected boolean isEmbeddedMapping(JavaTypeMapping mapping)
mapping
- the mapping
public ObjectProvider getStateManagerForEmbeddedPCObject(ObjectProvider sm, java.lang.Object obj, AbstractMemberMetaData ownerFmd)
sm
- State Manager of the ownerobj
- The embedded PC objectownerFmd
- The meta data for the owner field
protected boolean allowsBatching()
public int getRelationType()
public AbstractMemberMetaData getOwnerMemberMetaData()
public DatastoreAdapter getDatastoreAdapter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |