1 package org.hibernate.criterion; 3 4 import org.hibernate.Criteria; 5 import org.hibernate.HibernateException; 6 import org.hibernate.engine.SessionFactoryImplementor; 7 import org.hibernate.engine.TypedValue; 8 import org.hibernate.type.Type; 9 10 18 public interface CriteriaQuery { 19 public SessionFactoryImplementor getFactory(); 20 21 25 public String getColumn(Criteria criteria, String propertyPath) 26 throws HibernateException; 27 28 31 public Type getType(Criteria criteria, String propertyPath) 32 throws HibernateException; 33 34 37 public String [] getColumnsUsingProjection(Criteria criteria, String propertyPath) 38 throws HibernateException; 39 40 43 public Type getTypeUsingProjection(Criteria criteria, String propertyPath) 44 throws HibernateException; 45 46 49 public TypedValue getTypedValue(Criteria criteria, String propertyPath, Object value) 50 throws HibernateException; 51 52 55 public String getEntityName(Criteria criteria); 56 57 61 public String getEntityName(Criteria criteria, String propertyPath); 62 63 66 public String getSQLAlias(Criteria subcriteria); 67 68 72 public String getSQLAlias(Criteria criteria, String propertyPath); 73 74 77 public String getPropertyName(String propertyName); 78 79 82 public String [] getIdentifierColumns(Criteria subcriteria); 83 84 87 public Type getIdentifierType(Criteria subcriteria); 88 89 public TypedValue getTypedIdentifierValue(Criteria subcriteria, Object value); 90 91 public String generateSQLAlias(); 92 } | Popular Tags |