|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfri.util.database.jpa.tree.uniqueconstraints.AbstractUniqueTreeConstraintImpl<N>
fri.util.database.jpa.tree.uniqueconstraints.AbstractWholeTreeUniqueConstraintImpl<ClosureTableTreeNode>
fri.util.database.jpa.tree.closuretable.uniqueconstraints.UniqueWholeTreeConstraintImpl
fri.util.database.jpa.tree.closuretable.uniqueconstraints.UniqueWholeTreeTemporalConstraintImpl
fri.util.database.jpa.tree.closuretable.uniqueconstraints.UniqueChildrenTemporalConstraintImpl
public class UniqueChildrenTemporalConstraintImpl
UniqueChildrenConstraintImpl
Field Summary |
---|
Fields inherited from class fri.util.database.jpa.tree.uniqueconstraints.AbstractUniqueTreeConstraintImpl |
---|
shouldCheckRootsForUniqueness, uniquePropertyNames |
Constructor Summary | |
---|---|
UniqueChildrenTemporalConstraintImpl(java.lang.String[][] uniquePropertyNames,
boolean shouldCheckRootsForUniqueness)
|
Method Summary | |
---|---|
boolean |
checkUniqueConstraint(java.util.List<ClosureTableTreeNode> nodes,
TreeActionLocation<ClosureTableTreeNode> location)
The implementation of this is expected to check the uniqueness of passed node(s). |
Methods inherited from class fri.util.database.jpa.tree.closuretable.uniqueconstraints.UniqueWholeTreeTemporalConstraintImpl |
---|
beforeCheckUniqueness |
Methods inherited from class fri.util.database.jpa.tree.closuretable.uniqueconstraints.UniqueWholeTreeConstraintImpl |
---|
appendNodeCheckingCondition, appendRootCheckingCondition, fromClause, getNodeTableAlias, getPathTableAlias |
Methods inherited from class fri.util.database.jpa.tree.uniqueconstraints.AbstractUniqueTreeConstraintImpl |
---|
appendUniquenessConditions, appendUpdateCondition, checkUniqueChildrenConstraint, checkUniqueWholeTreeConstraint, equal, getDao, getNodeValueForProperty, getSession, isDifferent, isRootsCheck, nodeEntityName, pathEntityName, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UniqueChildrenTemporalConstraintImpl(java.lang.String[][] uniquePropertyNames, boolean shouldCheckRootsForUniqueness)
Method Detail |
---|
public final boolean checkUniqueConstraint(java.util.List<ClosureTableTreeNode> nodes, TreeActionLocation<ClosureTableTreeNode> location)
treeDao.checkUniqueConstraint()
explicitly when updating a node property, see explanation in header comment!.
checkUniqueConstraint
in interface UniqueTreeConstraint<ClosureTableTreeNode>
checkUniqueConstraint
in class AbstractWholeTreeUniqueConstraintImpl<ClosureTableTreeNode>
nodes
- one (default) or more (copy/move only) entities that hold values
to check for uniqueness at location, when list, the copied node will be first,
then its sub-nodes.location
- the information where the pending modification is going to happen.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |