public class StringQuery extends Query
Query.setParameter(java.lang.String, java.lang.Object)
.
Parameters with a value of type Collection
are added as
Query.setParameterList(java.lang.String, java.util.Collection)
No parsing is done until execution time.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STRING
parameter name for the definition of the HQL string.
|
FETCH, INNER_JOIN, LEFT_JOIN, newlyEnabledFilters, params
Constructor and Description |
---|
StringQuery(Parameters parameters)
Default constructor, used primarily for testing.
|
StringQuery(SqlAction sql,
Parameters parameters) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildQuery(org.hibernate.Session session)
main point of entry for subclasses.
|
check, checkParameters, disableFilters, disableQueryCache, doInHibernate, enableFilters, enableQueryCache, get, ownerOrGroupFilters, setCriteria, setQuery, value
public static final java.lang.String STRING
public StringQuery(Parameters parameters)
SqlAction
field null preventing
query rewriting.public StringQuery(SqlAction sql, Parameters parameters)
protected void buildQuery(org.hibernate.Session session) throws org.hibernate.HibernateException, java.sql.SQLException
Query
Criteria
or a Query
instance
and make it available via Query.setCriteria(org.hibernate.Criteria)
or
Query.setQuery(org.hibernate.Query)
buildQuery
in class Query
org.hibernate.HibernateException
java.sql.SQLException
Version: 5.4.6-ice35-b87
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.