Class ReplicationNode
java.lang.Object
org.nuiton.topia.replication.model.ReplicationNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<String, ReplicationNode> dictionnary of associations defined on the node (keys are association name, and values are target node).names of association to dettach while replication.protected final org.nuiton.topia.persistence.TopiaEntityEnumcontract of entity of the node.protected final Map<String, ReplicationNode> compositions defined on the node (keys are association name, and values are target node).names of dependency to dettach while replication.protected final List<ReplicationOperationDef> operations to fire when replication pass on this node.protected final org.nuiton.topia.persistence.util.EntityOperator<? super org.nuiton.topia.persistence.TopiaEntity> entity operator.protected Set<ReplicationNode> shell of the node. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAssociation(String name, ReplicationNode node) voidvoidaddDependency(String name, ReplicationNode node) voidvoidaddOperation(int index, ReplicationOperationDef op) voidvoidRemove all operation of the node (for example when no data is associated with the type of the node, then no needed operations).booleanString[]org.nuiton.topia.persistence.TopiaEntityEnumString[]Class<? extends org.nuiton.topia.persistence.TopiaEntity> org.nuiton.topia.persistence.util.EntityOperator<? super org.nuiton.topia.persistence.TopiaEntity> getShell()booleanbooleanbooleanbooleaninthashCode()voidsetOperations(List<ReplicationOperationDef> operations) voidsetShell(Set<ReplicationNode> shell) voidsort operation by their phase.toString()
-
Field Details
-
contract
protected final org.nuiton.topia.persistence.TopiaEntityEnum contractcontract of entity of the node. -
operator
protected final org.nuiton.topia.persistence.util.EntityOperator<? super org.nuiton.topia.persistence.TopiaEntity> operatorentity operator. -
shell
shell of the node. -
associations
dictionnary of associations defined on the node (keys are association name, and values are target node). -
associationsToDettach
-
dependencies
compositions defined on the node (keys are association name, and values are target node). -
dependenciesToDettach
-
operations
operations to fire when replication pass on this node.
-
-
Constructor Details
-
ReplicationNode
public ReplicationNode(org.nuiton.topia.persistence.TopiaEntityEnum contract)
-
-
Method Details
-
addAssociation
-
addOperation
-
addOperation
-
setOperations
-
getOperations
-
getUndoableOperations
-
hasAssociation
public boolean hasAssociation() -
hasAssociationsToDettach
public boolean hasAssociationsToDettach() -
getAssociationsDettached
-
getDependenciesDettached
-
hasDependenciesToDettach
public boolean hasDependenciesToDettach() -
hasDependency
public boolean hasDependency() -
addDependency
-
addAssociationToDettach
-
addDependencyToDettach
-
getAssociations
-
getAssociationsToDettach
-
getDependenciesToDettach
-
getContract
public org.nuiton.topia.persistence.TopiaEntityEnum getContract() -
getEntityType
-
getOperator
public org.nuiton.topia.persistence.util.EntityOperator<? super org.nuiton.topia.persistence.TopiaEntity> getOperator() -
getDependencies
-
getShell
-
setShell
-
sortOperations
public void sortOperations()sort operation by their phase.- See Also:
-
clearOperations
public void clearOperations()Remove all operation of the node (for example when no data is associated with the type of the node, then no needed operations). -
equals
-
hashCode
-
toString
-