public class JDOReplicationManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
properties
Properties defining the replication process.
|
| Constructor and Description |
|---|
JDOReplicationManager(javax.jdo.PersistenceManagerFactory pmf1,
javax.jdo.PersistenceManagerFactory pmf2)
Constructor for replicating between source and target PMF.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
getBooleanProperty(String key) |
Properties |
getProperties()
Accessor for the replication properties.
|
void |
replicate(Class... types)
Method to perform the replication for all objects of the specified types.
|
void |
replicate(Object... oids)
Method to perform the replication of the objects defined by the supplied identities.
|
void |
replicate(String... classNames)
Method to perform the replication for all objects of the specified class names.
|
protected void |
replicateInTarget(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(String key,
String value)
Method to set a property for replication.
|
protected Properties properties
public JDOReplicationManager(javax.jdo.PersistenceManagerFactory pmf1,
javax.jdo.PersistenceManagerFactory pmf2)
pmf1 - PMF sourcepmf2 - PMF targetpublic void setProperty(String key, String value)
key - Property keyvalue - Property valuepublic Properties getProperties()
protected boolean getBooleanProperty(String key)
public void replicate(Class... types)
types - Classes to replicatepublic void replicate(String... classNames)
classNames - Classes to replicatepublic void replicate(Object... oids)
oids - Identities of the objects to replicatepublic void replicateRegisteredClasses()
protected void replicateInTarget(Object... detachedObjects)
detachedObjects - The detached objects (from the source datastore)Copyright © 2020. All rights reserved.