org.hibernate.spatial.dialect.oracle.criterion
Class OracleSpatialProjection

java.lang.Object
  extended by org.hibernate.criterion.SimpleProjection
      extended by org.hibernate.spatial.dialect.oracle.criterion.OracleSpatialProjection
All Implemented Interfaces:
java.io.Serializable, org.hibernate.criterion.EnhancedProjection, org.hibernate.criterion.Projection

public class OracleSpatialProjection
extends org.hibernate.criterion.SimpleProjection

Template class for Spatial Projections

See Also:
Serialized Form

Constructor Summary
OracleSpatialProjection(int aggregate, java.lang.String propertyName)
           
 
Method Summary
 org.hibernate.type.Type[] getTypes(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery)
          Types returned by the rendered SQL fragment.
 java.lang.String toSqlString(org.hibernate.Criteria criteria, int position, org.hibernate.criterion.CriteriaQuery criteriaQuery)
          Render the SQL fragment to be used in the SELECT clause.
 java.lang.String toString()
           
 
Methods inherited from class org.hibernate.criterion.SimpleProjection
as, getAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnCount, getTypes, isGrouped, toGroupSqlString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OracleSpatialProjection

public OracleSpatialProjection(int aggregate,
                               java.lang.String propertyName)
Method Detail

toSqlString

public java.lang.String toSqlString(org.hibernate.Criteria criteria,
                                    int position,
                                    org.hibernate.criterion.CriteriaQuery criteriaQuery)
                             throws org.hibernate.HibernateException
Description copied from interface: org.hibernate.criterion.Projection
Render the SQL fragment to be used in the SELECT clause.

Parameters:
criteria - The local criteria to which this project is attached (for resolution).
position - The number of columns rendered in the SELECT clause before this projection. Generally speaking this is useful to ensure uniqueness of the individual columns aliases.
criteriaQuery - The overall criteria query instance.
Returns:
The SQL fragment to plug into the SELECT
Throws:
org.hibernate.HibernateException - Indicates a problem performing the rendering

getTypes

public org.hibernate.type.Type[] getTypes(org.hibernate.Criteria criteria,
                                          org.hibernate.criterion.CriteriaQuery criteriaQuery)
                                   throws org.hibernate.HibernateException
Description copied from interface: org.hibernate.criterion.Projection
Types returned by the rendered SQL fragment. In other words what are the types that would represent the values this projection asked to be pulled into the result set?

Parameters:
criteria - The local criteria to which this project is attached (for resolution).
criteriaQuery - The overall criteria query instance.
Returns:
The return types.
Throws:
org.hibernate.HibernateException - Indicates a problem resolving the types

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object