|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.jdo.JDOReplicationManager
public class JDOReplicationManager
Manager to control the replication of objects from one datastore to another. Allow replication of specified objects, or all objects of particular types. Supports a series of properties defining the replication behaviour.
| Field Summary | |
|---|---|
protected static Localiser |
LOCALISER_JDO
Localisation utility for output messages from jdo. |
protected java.util.Properties |
properties
Properties defining the replication process. |
| Constructor Summary | |
|---|---|
JDOReplicationManager(javax.jdo.PersistenceManagerFactory pmf1,
javax.jdo.PersistenceManagerFactory pmf2)
Constructor for replicating between source and target PMF. |
|
| Method Summary | |
|---|---|
protected boolean |
getBooleanProperty(java.lang.String key)
|
java.util.Properties |
getProperties()
Accessor for the replication properties. |
void |
replicate(java.lang.Class... types)
Method to perform the replication for all objects of the specified types. |
void |
replicate(java.lang.Object... oids)
Method to perform the replication of the objects defined by the supplied identities. |
void |
replicate(java.lang.String... classNames)
Method to perform the replication for all objects of the specified class names. |
protected void |
replicateInTarget(java.lang.Object... detachedObjects)
Method to replicate the provided detached objects in the target datastore. |
void |
replicateRegisteredClasses()
Method to perform the replication for all objects registered in the pmf source. |
void |
setProperty(java.lang.String key,
java.lang.String value)
Method to set a property for replication. |
| 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_JDO
protected java.util.Properties properties
| Constructor Detail |
|---|
public JDOReplicationManager(javax.jdo.PersistenceManagerFactory pmf1,
javax.jdo.PersistenceManagerFactory pmf2)
pmf1 - PMF sourcepmf2 - PMF target| Method Detail |
|---|
public void setProperty(java.lang.String key,
java.lang.String value)
key - Property keyvalue - Property valuepublic java.util.Properties getProperties()
protected boolean getBooleanProperty(java.lang.String key)
public void replicate(java.lang.Class... types)
types - Classes to replicatepublic void replicate(java.lang.String... classNames)
classNames - Classes to replicatepublic void replicate(java.lang.Object... oids)
oids - Identities of the objects to replicatepublic void replicateRegisteredClasses()
protected void replicateInTarget(java.lang.Object... detachedObjects)
detachedObjects - The detached objects (from the source datastore)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||