org.hibernate.spatial.criterion
Class HavingSridExpression

java.lang.Object
  extended by org.hibernate.spatial.criterion.HavingSridExpression
All Implemented Interfaces:
java.io.Serializable, org.hibernate.criterion.Criterion

public class HavingSridExpression
extends java.lang.Object
implements org.hibernate.criterion.Criterion

See Also:
Serialized Form

Constructor Summary
HavingSridExpression(java.lang.String propertyName, int srid)
           
 
Method Summary
 org.hibernate.engine.spi.TypedValue[] getTypedValues(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery)
          Return typed values for all parameters in the rendered SQL fragment
 java.lang.String toSqlString(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery)
          Render the SQL fragment
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HavingSridExpression

public HavingSridExpression(java.lang.String propertyName,
                            int srid)
Method Detail

toSqlString

public java.lang.String toSqlString(org.hibernate.Criteria criteria,
                                    org.hibernate.criterion.CriteriaQuery criteriaQuery)
                             throws org.hibernate.HibernateException
Description copied from interface: org.hibernate.criterion.Criterion
Render the SQL fragment

Specified by:
toSqlString in interface org.hibernate.criterion.Criterion
Parameters:
criteria - The local criteria
criteriaQuery - The overal criteria query
Returns:
The generated SQL fragment
Throws:
org.hibernate.HibernateException - Problem during rendering.

getTypedValues

public org.hibernate.engine.spi.TypedValue[] getTypedValues(org.hibernate.Criteria criteria,
                                                            org.hibernate.criterion.CriteriaQuery criteriaQuery)
                                                     throws org.hibernate.HibernateException
Description copied from interface: org.hibernate.criterion.Criterion
Return typed values for all parameters in the rendered SQL fragment

Specified by:
getTypedValues in interface org.hibernate.criterion.Criterion
Parameters:
criteria - The local criteria
criteriaQuery - The overal criteria query
Returns:
The types values (for binding)
Throws:
org.hibernate.HibernateException - Problem determining types.