|
||||||||||
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<N>
public abstract class AbstractWholeTreeUniqueConstraintImpl<N extends TreeNode>
Checks if the values of a a property set is unique within a specific tree. That means that property values set can appear just once in one tree, but can appear in other trees in the same database table.
Field Summary |
---|
Fields inherited from class fri.util.database.jpa.tree.uniqueconstraints.AbstractUniqueTreeConstraintImpl |
---|
shouldCheckRootsForUniqueness, uniquePropertyNames |
Constructor Summary | |
---|---|
protected |
AbstractWholeTreeUniqueConstraintImpl(java.lang.String[][] uniquePropertyNames,
boolean shouldCheckRootsForUniqueness)
See super-class constructor. |
Method Summary | |
---|---|
boolean |
checkUniqueConstraint(java.util.List<N> nodes,
TreeActionLocation<N> location)
The implementation of this is expected to check the uniqueness of passed node(s). |
Methods inherited from class fri.util.database.jpa.tree.uniqueconstraints.AbstractUniqueTreeConstraintImpl |
---|
appendNodeCheckingCondition, appendRootCheckingCondition, appendUniquenessConditions, appendUpdateCondition, beforeCheckUniqueness, checkUniqueChildrenConstraint, checkUniqueWholeTreeConstraint, equal, fromClause, getDao, getNodeTableAlias, 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 |
---|
protected AbstractWholeTreeUniqueConstraintImpl(java.lang.String[][] uniquePropertyNames, boolean shouldCheckRootsForUniqueness)
Method Detail |
---|
public boolean checkUniqueConstraint(java.util.List<N> nodes, TreeActionLocation<N> location)
treeDao.checkUniqueConstraint()
explicitly when updating a node property, see explanation in header comment!.
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 |