Package ome.services.query
Class IObjectClassQuery
- java.lang.Object
-
- ome.services.query.Query
-
- ome.services.query.IObjectClassQuery
-
- All Implemented Interfaces:
org.springframework.orm.hibernate3.HibernateCallback
public class IObjectClassQuery extends Query
simple query subclass which uses theParameters.CLASSparameter value to create aCriteriaand then addsExpressioninstances based on all other parameter names.For example:
Parameters p = new Parameters().addClass( Image.class ) .addString( "name", "LT-3059");produces a query of the form "select i from Image i where name = 'LT-3059'"
- Since:
- OMERO 3.0
-
-
Field Summary
-
Fields inherited from class ome.services.query.Query
FETCH, INNER_JOIN, LEFT_JOIN, newlyEnabledFilters, params
-
-
Constructor Summary
Constructors Constructor Description IObjectClassQuery(ome.parameters.Parameters parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildQuery(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
-
-
-
-
Method Detail
-
buildQuery
protected void buildQuery(org.hibernate.Session session) throws org.hibernate.HibernateException, java.sql.SQLExceptionDescription copied from class:Querymain point of entry for subclasses. This method must build either aCriteriaor aQueryinstance and make it available viaQuery.setCriteria(org.hibernate.Criteria)orQuery.setQuery(org.hibernate.Query)- Specified by:
buildQueryin classQuery- Throws:
org.hibernate.HibernateExceptionjava.sql.SQLException
-
-