Class HavingSridExpression

  • All Implemented Interfaces:
    Serializable, org.hibernate.criterion.Criterion

    public class HavingSridExpression
    extends Object
    implements org.hibernate.criterion.Criterion
    A Criterion constraining a geometry property to have a specified SRID.
    See Also:
    Serialized Form
    • Constructor Detail

      • HavingSridExpression

        public HavingSridExpression​(String propertyName,
                                    int srid)
        Constructs an instance for the specified property and srid
        Parameters:
        propertyName - The name of the property being constrained
        srid - The srid
    • Method Detail

      • toSqlString

        public String toSqlString​(org.hibernate.Criteria criteria,
                                  org.hibernate.criterion.CriteriaQuery criteriaQuery)
                           throws org.hibernate.HibernateException
        Specified by:
        toSqlString in interface org.hibernate.criterion.Criterion
        Throws:
        org.hibernate.HibernateException
      • getTypedValues

        public org.hibernate.engine.spi.TypedValue[] getTypedValues​(org.hibernate.Criteria criteria,
                                                                    org.hibernate.criterion.CriteriaQuery criteriaQuery)
                                                             throws org.hibernate.HibernateException
        Specified by:
        getTypedValues in interface org.hibernate.criterion.Criterion
        Throws:
        org.hibernate.HibernateException