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 type Collection
are added as
Query.setParameterList(java.lang.String, java.util.Collection)
No parsing is done until execution time.
- Since:
- OMERO 3.0
- Version:
- 1.0 (Internal version: $Rev: 3754 $ $Date: 2009-02-24 10:28:31 +0000 (Tue, 24 Feb 2009) $)
- Author:
- Josh Moore, josh.moore@gmx.de
Field Summary |
static String |
STRING
parameter name for the definition of the HQL string. |
Constructor Summary |
StringQuery(ome.parameters.Parameters parameters)
|
Method Summary |
protected void |
buildQuery(org.hibernate.Session session)
main point of entry for subclasses. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STRING
public static final String STRING
- parameter name for the definition of the HQL string.
- See Also:
- Constant Field Values
StringQuery
public StringQuery(ome.parameters.Parameters parameters)
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.