Class ReplicationNode
java.lang.Object
org.nuiton.topia.replication.model.ReplicationNode
Model of a replication's node.
The invariant of a replication's node is his
contract, means the
type of entity to replicate.- Since:
- 2.2.0
- Author:
- Tony Chemit - chemit@codelutin.com
-
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 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 EntityOperator<? super 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[]String[]Class<? extends TopiaEntity>EntityOperator<? super TopiaEntity>getShell()booleanbooleanbooleanbooleaninthashCode()voidsetOperations(List<ReplicationOperationDef> operations) voidsetShell(Set<ReplicationNode> shell) voidsort operation by their phase.toString()
-
Field Details
-
contract
contract of entity of the node. -
operator
entity operator. -
shell
shell of the node. -
associations
dictionnary of associations defined on the node (keys are association name, and values are target node). -
associationsToDettach
names of association to dettach while replication. -
dependencies
compositions defined on the node (keys are association name, and values are target node). -
dependenciesToDettach
names of dependency to dettach while replication. -
operations
operations to fire when replication pass on this node.
-
-
Constructor Details
-
ReplicationNode
-
-
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
-
getEntityType
-
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
public int hashCode() -
toString
-