ome.services.query
Class IObjectClassQuery

java.lang.Object
  extended by ome.services.query.Query
      extended by ome.services.query.IObjectClassQuery
All Implemented Interfaces:
org.springframework.orm.hibernate3.HibernateCallback

public class IObjectClassQuery
extends Query

simple query subclass which uses the Parameters.CLASS parameter value to create a Criteria and then adds Expression instances 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
Version:
1.0 (Internal version: $Rev: 6491 $ $Date: 2010-04-06 21:32:04 +0100 (Tue, 06 Apr 2010) $)
Author:
Josh Moore, josh.moore@gmx.de

Field Summary
 
Fields inherited from class ome.services.query.Query
FETCH, INNER_JOIN, LEFT_JOIN, newlyEnabledFilters, params
 
Constructor Summary
IObjectClassQuery(ome.parameters.Parameters parameters)
           
 
Method Summary
protected  void buildQuery(org.hibernate.Session session)
          main point of entry for subclasses.
 
Methods inherited from class ome.services.query.Query
check, checkParameters, disableFilters, doInHibernate, enableFilters, get, ownerOrGroupFilters, setCriteria, setQuery, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IObjectClassQuery

public IObjectClassQuery(ome.parameters.Parameters parameters)
Method Detail

buildQuery

protected void buildQuery(org.hibernate.Session session)
                   throws org.hibernate.HibernateException,
                          SQLException
Description copied from class: Query
main point of entry for subclasses. This method must build either a Criteria or a Query instance and make it available via Query.setCriteria(org.hibernate.Criteria) or Query.setQuery(org.hibernate.Query)

Specified by:
buildQuery in class Query
Throws:
org.hibernate.HibernateException
SQLException


OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

Copyright © 2009 The University of Dundee. All Rights Reserved.