Package ome.api.local
Interface LocalQuery
-
- All Superinterfaces:
ome.api.IQuery
,ome.api.ServiceInterface
- All Known Implementing Classes:
QueryImpl
public interface LocalQuery extends ome.api.IQuery
Provides local (internal) extensions for querying- Since:
- OMERO3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
checkProperty(java.lang.String type, java.lang.String property)
Checks if a property is defined on a mapped Hibernate type.boolean
checkType(java.lang.String type)
Checks if a type has been mapped in Hibernate.void
clear()
boolean
contains(java.lang.Object object)
Tests if an object is currently contained in the session.void
evict(java.lang.Object object)
Removes an object graph from the session.<T> T
execute(Query<T> query)
Executes a locally defined Query.<T> T
execute(org.springframework.orm.hibernate3.HibernateCallback callback)
Executes aHibernateCallback
void
initialize(java.lang.Object object)
Uses the Hibernate static methodinitialize
to prepare an object for shipping over the wire.
-
-
-
Method Detail
-
execute
<T> T execute(org.springframework.orm.hibernate3.HibernateCallback callback)
Executes aHibernateCallback
- 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 theQuery
interface.- Returns:
- result of the query See document for the query for the return type.
-
contains
boolean contains(java.lang.Object object)
Tests if an object is currently contained in the session.- Parameters:
object
-
-
evict
void evict(java.lang.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(java.lang.Object object)
Uses the Hibernate static methodinitialize
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(java.lang.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(java.lang.String type, java.lang.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.
-
-