|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.topia.replication.model.ReplicationNode
public class ReplicationNode
Model of a replication's node.
The invariant of a replication's node is hiscontract, means the
type of entity to replicate.
| Field Summary | |
|---|---|
protected Map<String,ReplicationNode> |
associations
dictionnary of associations defined on the node (keys are association name, and values are target node). |
protected Set<String> |
associationsToDettach
names of association to dettach while replication. |
protected TopiaEntityEnum |
contract
contract of entity of the node. |
protected Map<String,ReplicationNode> |
dependencies
compositions defined on the node (keys are association name, and values are target node). |
protected Set<String> |
dependenciesToDettach
names of dependency to dettach while replication. |
protected List<ReplicationOperationDef> |
operations
operations to fire when replication pass on this node. |
protected EntityOperator<? super TopiaEntity> |
operator
entity operator. |
protected Set<ReplicationNode> |
shell
shell of the node. |
| Constructor Summary | |
|---|---|
ReplicationNode(TopiaEntityEnum contract)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final TopiaEntityEnum contract
protected final EntityOperator<? super TopiaEntity> operator
protected Set<ReplicationNode> shell
protected final Map<String,ReplicationNode> associations
protected final Set<String> associationsToDettach
protected final Map<String,ReplicationNode> dependencies
protected final Set<String> dependenciesToDettach
protected final List<ReplicationOperationDef> operations
| Constructor Detail |
|---|
public ReplicationNode(TopiaEntityEnum contract)
| Method Detail |
|---|
public void addAssociation(String name,
ReplicationNode node)
public void addOperation(int index,
ReplicationOperationDef op)
public void addOperation(ReplicationOperationDef op)
public void setOperations(List<ReplicationOperationDef> operations)
public ReplicationOperationDef[] getOperations()
public ReplicationOperationDef[] getUndoableOperations()
public boolean hasAssociation()
public boolean hasAssociationsToDettach()
public String[] getAssociationsDettached(ReplicationNode node)
public String[] getDependenciesDettached(ReplicationNode node)
public boolean hasDependenciesToDettach()
public boolean hasDependency()
public void addDependency(String name,
ReplicationNode node)
public void addAssociationToDettach(String key)
public void addDependencyToDettach(String key)
public Map<String,ReplicationNode> getAssociations()
public Set<String> getAssociationsToDettach()
public Set<String> getDependenciesToDettach()
public TopiaEntityEnum getContract()
public Class<? extends TopiaEntity> getEntityType()
public EntityOperator<? super TopiaEntity> getOperator()
public Map<String,ReplicationNode> getDependencies()
public Set<ReplicationNode> getShell()
public void setShell(Set<ReplicationNode> shell)
public void sortOperations()
ReplicationOperationPhasepublic void clearOperations()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||