|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the constract of an HQL->SQL translator.
Field Summary | |
static String |
ERROR_CANNOT_DETERMINE_TYPE
|
static String |
ERROR_CANNOT_FETCH_WITH_ITERATE
|
static String |
ERROR_CANNOT_FORMAT_LITERAL
|
static String |
ERROR_NAMED_PARAMETER_DOES_NOT_APPEAR
|
Method Summary | |
List |
collectSqlStrings()
|
void |
compile(Map replacements,
boolean shallow)
Compile a "normal" query. |
boolean |
containsCollectionFetches()
Does the translated query contain collection fetches? |
int |
executeUpdate(QueryParameters queryParameters,
SessionImplementor session)
Perform a bulk update/delete operation given the underlying query defintion. |
String[][] |
getColumnNames()
Returns the column names in the generated SQL. |
Map |
getEnabledFilters()
Returns the filters enabled for this query translator. |
ParameterTranslations |
getParameterTranslations()
Return information about any parameters encountered during translation. |
String |
getQueryIdentifier()
Retrieve the query identifier for this translator. |
Set |
getQuerySpaces()
Returns the set of query spaces (table names) that the query referrs to. |
String |
getQueryString()
Returns the HQL string processed by the translator. |
String[] |
getReturnAliases()
Returns an array of HQL aliases |
Type[] |
getReturnTypes()
Returns an array of Types represented in the query result. |
String |
getSQLString()
Returns the SQL string generated by the translator. |
boolean |
isManipulationStatement()
|
Iterator |
iterate(QueryParameters queryParameters,
EventSource session)
Perform an iterate operation given the underlying query defintion. |
List |
list(SessionImplementor session,
QueryParameters queryParameters)
Perform a list operation given the underlying query definition. |
ScrollableResults |
scroll(QueryParameters queryParameters,
SessionImplementor session)
Perform a scroll operation given the underlying query defintion. |
void |
validateScrollability()
Validate the scrollability of the translated query. |
Field Detail |
public static final String ERROR_CANNOT_FETCH_WITH_ITERATE
public static final String ERROR_NAMED_PARAMETER_DOES_NOT_APPEAR
public static final String ERROR_CANNOT_DETERMINE_TYPE
public static final String ERROR_CANNOT_FORMAT_LITERAL
Method Detail |
public void compile(Map replacements, boolean shallow) throws QueryException, MappingException
replacements
- Defined query substitutions.shallow
- Does this represent a shallow (scalar or entity-id) select?
QueryException
- There was a problem parsing the query string.
MappingException
- There was a problem querying defined mappings.public List list(SessionImplementor session, QueryParameters queryParameters) throws HibernateException
session
- The session owning this query.queryParameters
- The query bind parameters.
HibernateException
public Iterator iterate(QueryParameters queryParameters, EventSource session) throws HibernateException
queryParameters
- The query bind parameters.session
- The session owning this query.
HibernateException
public ScrollableResults scroll(QueryParameters queryParameters, SessionImplementor session) throws HibernateException
queryParameters
- The query bind parameters.session
- The session owning this query.
HibernateException
public int executeUpdate(QueryParameters queryParameters, SessionImplementor session) throws HibernateException
queryParameters
- The query bind parameters.session
- The session owning this query.
HibernateException
public Set getQuerySpaces()
public String getQueryIdentifier()
public String getSQLString()
public List collectSqlStrings()
public String getQueryString()
public Map getEnabledFilters()
public Type[] getReturnTypes()
public String[] getReturnAliases()
public String[][] getColumnNames()
public ParameterTranslations getParameterTranslations()
public void validateScrollability() throws HibernateException
HibernateException
public boolean containsCollectionFetches()
public boolean isManipulationStatement()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |