fri.util.database.jpa.tree.closuretable.uniqueconstraints
Class UniqueWholeTreeTemporalConstraintImpl

java.lang.Object
  extended by fri.util.database.jpa.tree.uniqueconstraints.AbstractUniqueTreeConstraintImpl<N>
      extended by fri.util.database.jpa.tree.uniqueconstraints.AbstractWholeTreeUniqueConstraintImpl<ClosureTableTreeNode>
          extended by fri.util.database.jpa.tree.closuretable.uniqueconstraints.UniqueWholeTreeConstraintImpl
              extended by fri.util.database.jpa.tree.closuretable.uniqueconstraints.UniqueWholeTreeTemporalConstraintImpl
All Implemented Interfaces:
UniqueTreeConstraint<ClosureTableTreeNode>
Direct Known Subclasses:
UniqueChildrenTemporalConstraintImpl

public class UniqueWholeTreeTemporalConstraintImpl
extends UniqueWholeTreeConstraintImpl

This appends validFrom and validTo dates to uniqueness-query, to NOT find historicized objects.

Author:
Fritz Ritzberger, 02.11.2012

Field Summary
 
Fields inherited from class fri.util.database.jpa.tree.uniqueconstraints.AbstractUniqueTreeConstraintImpl
shouldCheckRootsForUniqueness, uniquePropertyNames
 
Constructor Summary
UniqueWholeTreeTemporalConstraintImpl(java.lang.String[][] uniquePropertyNames, boolean shouldCheckRootsForUniqueness)
          See super-class constructor.
 
Method Summary
protected  void beforeCheckUniqueness(java.lang.StringBuilder queryText, java.util.List<java.lang.Object> parameters)
          Overridden to append temporal conditions.
 
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.AbstractWholeTreeUniqueConstraintImpl
checkUniqueConstraint
 
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

UniqueWholeTreeTemporalConstraintImpl

public UniqueWholeTreeTemporalConstraintImpl(java.lang.String[][] uniquePropertyNames,
                                             boolean shouldCheckRootsForUniqueness)
See super-class constructor.

Method Detail

beforeCheckUniqueness

protected void beforeCheckUniqueness(java.lang.StringBuilder queryText,
                                     java.util.List<java.lang.Object> parameters)
Overridden to append temporal conditions.

Overrides:
beforeCheckUniqueness in class AbstractUniqueTreeConstraintImpl<ClosureTableTreeNode>