|
db4o 6.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReplicationProcess
db4o replication interface.
ExtObjectContainer.replicationBegin(ObjectContainer, ReplicationConflictHandler)
Method Summary | |
---|---|
void |
checkConflict(java.lang.Object obj)
checks if an object has been modified in both ObjectContainers involved in the replication process since the last time the two ObjectContainers were replicated. |
void |
commit()
commits the replication task to both involved ObjectContainers. |
ObjectContainer |
peerA()
returns the "peerA" ObjectContainer involved in this ReplicationProcess. |
ObjectContainer |
peerB()
returns the "peerB" ObjectContainer involved in this ReplicationProcess. |
void |
replicate(java.lang.Object obj)
replicates an object. |
void |
rollback()
ends a replication task without committing any changes. |
void |
setDirection(ObjectContainer relicateFrom,
ObjectContainer replicateTo)
modifies the replication policy, what to do on a call to replicate(Object) . |
void |
whereModified(Query query)
adds a constraint to the passed Query to query only for objects that were modified since the last replication process between the two ObjectContainers involved in this replication process. |
Method Detail |
---|
void checkConflict(java.lang.Object obj)
obj
- - the object to check for a conflict.void commit()
ObjectContainer peerA()
ObjectContainer peerB()
void replicate(java.lang.Object obj)
obj
- void rollback()
void setDirection(ObjectContainer relicateFrom, ObjectContainer replicateTo)
replicate(Object)
.
relicateFrom
- the ObjectContainer to replicate fromreplicateTo
- the ObjectContainer to replicate tovoid whereModified(Query query)
query
- the Query to be constrained
|
db4o 6.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |