|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cumulus4j.store.PersistenceManagerConnection
public class PersistenceManagerConnection
Connection to the underlying datastore(s).
Cumulus4j can be used with either one or two underlying datastores.
If it is used with two datastores, the actual data
and the index information
is
stored separately. The meta-data of the persistence-capable classes is replicated (and thus present in both datastores).
Constructor Summary | |
---|---|
PersistenceManagerConnection(PersistenceManager pmData,
PersistenceManager pmIndex)
|
Method Summary | |
---|---|
PersistenceManager |
getDataPM()
Accessor for the PM to use for data. |
PersistenceManager |
getIndexPM()
Accessor for the PM to use for indexes. |
boolean |
indexHasOwnPM()
Determine, if there is a separate index-PM. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistenceManagerConnection(PersistenceManager pmData, PersistenceManager pmIndex)
Method Detail |
---|
public boolean indexHasOwnPM()
true
, if there is a separate index-PM configured (i.e. getDataPM()
and getIndexPM()
return different objects); false
otherwise (i.e. getDataPM()
and getIndexPM()
return the same PM).public PersistenceManager getDataPM()
public PersistenceManager getIndexPM()
data-PM
,
if there is no separate index-PM. To determine, if there is a separate index-PM, it is recommended
to use indexHasOwnPM()
.
getDataPM()
.
|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |