Package ome.services.query
Class StringQuery
- java.lang.Object
-
- ome.services.query.Query
-
- ome.services.query.StringQuery
-
- All Implemented Interfaces:
org.springframework.orm.hibernate3.HibernateCallback
public class StringQuery extends Query
simple HQL query. Parameters are added as named parameters (Query.setParameter(java.lang.String, java.lang.Object)
. Parameters with a value of typeCollection
are added asQuery.setParameterList(java.lang.String, java.util.Collection)
No parsing is done until execution time.- Since:
- OMERO 3.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
STRING
parameter name for the definition of the HQL string.-
Fields inherited from class ome.services.query.Query
FETCH, INNER_JOIN, LEFT_JOIN, newlyEnabledFilters, params
-
-
Constructor Summary
Constructors Constructor Description StringQuery(ome.parameters.Parameters parameters)
Default constructor, used primarily for testing.StringQuery(ome.util.SqlAction sql, ome.parameters.Parameters parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
buildQuery(org.hibernate.Session session)
main point of entry for subclasses.-
Methods inherited from class ome.services.query.Query
check, checkParameters, disableFilters, disableQueryCache, doInHibernate, enableFilters, enableQueryCache, get, ownerOrGroupFilters, setCriteria, setQuery, setTimeout, value
-
-
-
-
Field Detail
-
STRING
public static final java.lang.String STRING
parameter name for the definition of the HQL string.- See Also:
- Constant Field Values
-
-
Method Detail
-
buildQuery
protected void buildQuery(org.hibernate.Session session) throws org.hibernate.HibernateException, java.sql.SQLException
Description copied from class:Query
main point of entry for subclasses. This method must build either aCriteria
or aQuery
instance and make it available viaQuery.setCriteria(org.hibernate.Criteria)
orQuery.setQuery(org.hibernate.Query)
- Specified by:
buildQuery
in classQuery
- Throws:
org.hibernate.HibernateException
java.sql.SQLException
-
-