Class NaturalIdentifier

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> getNaturalIdValues()
      Get a map of set of the natural identifier values set on this criterion (for composite natural identifiers this need not be the full set of properties).
      TypedValue[] getTypedValues​(Criteria criteria, CriteriaQuery criteriaQuery)
      Return typed values for all parameters in the rendered SQL fragment
      NaturalIdentifier set​(java.lang.String property, java.lang.Object value)
      Set a natural identifier value for this expression
      java.lang.String toSqlString​(Criteria criteria, CriteriaQuery criteriaQuery)
      Render the SQL fragment
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NaturalIdentifier

        public NaturalIdentifier()
    • Method Detail

      • getNaturalIdValues

        public java.util.Map<java.lang.String,​java.lang.Object> getNaturalIdValues()
        Get a map of set of the natural identifier values set on this criterion (for composite natural identifiers this need not be the full set of properties).
        Returns:
        The value map.
      • set

        public NaturalIdentifier set​(java.lang.String property,
                                     java.lang.Object value)
        Set a natural identifier value for this expression
        Parameters:
        property - The specific property name
        value - The value to use
        Returns:
        this, for method chaining