ome.api.local
Interface LocalQuery

All Superinterfaces:
IQuery, ServiceInterface
All Known Implementing Classes:
QueryImpl

public interface LocalQuery
extends IQuery

Provides local (internal) extensions for querying

Since:
OMERO3.0
Version:
1.0 (Internal version: $Revision: 1966 $ $Date: 2007-12-12 19:44:06 +0000 (Wed, 12 Dec 2007) $)
Author:

Josh Moore      josh.moore@gmx.de

Method Summary
 boolean checkProperty(String type, String property)
          Checks if a property is defined on a mapped Hibernate type.
 boolean checkType(String type)
          Checks if a type has been mapped in Hibernate.
 void clear()
           
 boolean contains(Object object)
          Tests if an object is currently contained in the session.
 void evict(Object object)
          Removes an object graph from the session.
<T> T
execute(org.springframework.orm.hibernate3.HibernateCallback callback)
          Executes a HibernateCallback
<T> T
execute(Query<T> query)
          Executes a locally defined Query.
 void initialize(Object object)
          Uses the Hibernate static method initialize to prepare an object for shipping over the wire.
 
Methods inherited from interface ome.api.IQuery
find, findAll, findAllByExample, findAllByFullText, findAllByQuery, findAllByString, findByExample, findByQuery, findByString, get, projection, refresh
 

Method Detail

execute

<T> T execute(org.springframework.orm.hibernate3.HibernateCallback callback)
Executes a HibernateCallback

Parameters:
callback - An implementation of the HibernateCallback interface.
See Also:
HibernateTemplate, HibernateCallback

execute

<T> T execute(Query<T> query)
Executes a locally defined Query.

Parameters:
query - A subclass of the Query interface.
Returns:
result of the query See document for the query for the return type.

contains

boolean contains(Object object)
Tests if an object is currently contained in the session.

Parameters:
object -

evict

void evict(Object object)
Removes an object graph from the session. This allows for non-permanent, mutable calls on the graph.

Parameters:
object -

clear

void clear()

initialize

void initialize(Object object)
Uses the Hibernate static method initialize to prepare an object for shipping over the wire. It is better to do this in your queries.

Parameters:
object -
See Also:
Hibernate

checkType

boolean checkType(String type)
Checks if a type has been mapped in Hibernate.

Parameters:
type - String representation of a full-qualified Hibernate-mapped type.
Returns:
yes or no.

checkProperty

boolean checkProperty(String type,
                      String property)
Checks if a property is defined on a mapped Hibernate type.

Parameters:
type - String representation of a full-qualified Hibernate-mapped type.
property - Property as defined in Hibernate NOT the public final static Strings on our IObject classes.
Returns:
yes or no.


OmeroJava Api

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

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