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(ome.parameters.Parameters parameters)
Default constructor, used primarily for testing.
|
StringQuery(ome.util.SqlAction sql,
ome.parameters.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, setTimeout, value
public static final java.lang.String STRING
public StringQuery(ome.parameters.Parameters parameters)
SqlAction
field null preventing
query rewriting.public StringQuery(ome.util.SqlAction sql, ome.parameters.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