|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.StoreDataManager
public class StoreDataManager
StoreData Cache Manager
| Field Summary | |
|---|---|
protected static Localiser |
LOCALISER
|
protected MultiMap |
savedStoreDataByAppIdClass
the memory image of schema data beforing running it |
protected java.util.Map |
savedStoreDataByClass
the memory image of schema data beforing running it |
protected MultiMap |
storeDataByAppIdClass
Map of all managed store data using Application Identity, keyed by the app id PK class |
protected java.util.Map |
storeDataByClass
Map of all managed store data, keyed by the class/field name. |
| Constructor Summary | |
|---|---|
StoreDataManager()
|
|
| Method Summary | |
|---|---|
void |
begin()
Begin a transaction that changes the StoreData cache |
void |
clear()
Clear the cache |
void |
commit()
Commit the transaction changes to the StoreData cache |
StoreData |
get(AbstractMemberMetaData apmd)
Get the StoreData by the given field/property |
StoreData |
get(java.lang.String className)
Get the StoreData by the given className |
java.util.Collection |
getByPrimaryKeyClass(java.lang.String className)
Get the Collection of StoreData that currently uses this primary key class |
java.util.Collection |
getManagedStoreData()
Accessor for the StoreData currently managed by this store. |
StoreData[] |
getStoreDataForProperties(java.lang.String key1,
java.lang.Object value1,
java.lang.String key2,
java.lang.Object value2)
Convenience accessor for all store data where property 1 has value1 and property 2 has value2. |
boolean |
managesClass(java.lang.String className)
Accessor for whether the specified class is managed currently |
protected void |
registerStoreData(StoreData data)
Method to register some data with the store. |
void |
rollback()
Rollbacks the transaction changes to the StoreData cache |
int |
size()
Acessor to the number of StoreData in cache |
| 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 java.util.Map storeDataByClass
protected MultiMap storeDataByAppIdClass
protected java.util.Map savedStoreDataByClass
protected MultiMap savedStoreDataByAppIdClass
| Constructor Detail |
|---|
public StoreDataManager()
| Method Detail |
|---|
public void clear()
protected void registerStoreData(StoreData data)
data - The StoreData to add
public StoreData[] getStoreDataForProperties(java.lang.String key1,
java.lang.Object value1,
java.lang.String key2,
java.lang.Object value2)
key1 - Property 1 namevalue1 - Property 1 valuekey2 - Property 2 namevalue2 - Property 2 value
public boolean managesClass(java.lang.String className)
className - The name of the class
public java.util.Collection getManagedStoreData()
public StoreData get(java.lang.String className)
className - the fully qualified class name
public StoreData get(AbstractMemberMetaData apmd)
apmd - the field/property
public java.util.Collection getByPrimaryKeyClass(java.lang.String className)
className - the primary key class name
public int size()
public void begin()
public void rollback()
public void commit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||