Package omero.api
Class _IQueryDisp
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.api._IQueryDisp
-
- All Implemented Interfaces:
Ice.Object,java.io.Serializable,java.lang.Cloneable,_IQueryOperations,_IQueryOperationsNC,_ServiceInterfaceOperations,_ServiceInterfaceOperationsNC,IQuery,ServiceInterface
- Direct Known Subclasses:
_IQueryTie
public abstract class _IQueryDisp extends Ice.ObjectImpl implements IQuery
Provides methods for directly querying object graphs. As far as is possible, IQuery should be considered the lowest level DB-access (SELECT) interface. Unlike theIUpdateinterface, using other methods will most likely not leave the database in an inconsistent state, but may provide stale data in some situations. By convention, all methods that begin withgetwill never return a null or emptyCollection, but instead will throw aValidationException.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]__idsstatic longserialVersionUID-
Fields inherited from interface omero.api.IQuery
ice_staticId
-
-
Constructor Summary
Constructors Constructor Description _IQueryDisp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Ice.DispatchStatus___find(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___findAll(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___findAllByExample(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___findAllByFullText(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___findAllByQuery(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___findAllByString(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___findByExample(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___findByQuery(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___findByString(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___get(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___projection(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___refresh(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)Ice.DispatchStatus__dispatch(IceInternal.Incoming in, Ice.Current __current)protected void__readImpl(IceInternal.BasicStream __is)protected void__writeImpl(IceInternal.BasicStream __os)voidfind_async(AMD_IQuery_find __cb, java.lang.String klass, long id)Looks up an entity by class and id.voidfindAll_async(AMD_IQuery_findAll __cb, java.lang.String klass, Filter filter)Looks up all entities that belong to this class and match filter.voidfindAllByExample_async(AMD_IQuery_findAllByExample __cb, IObject example, Filter filter)Searches based on provided example entity.voidfindAllByFullText_async(AMD_IQuery_findAllByFullText __cb, java.lang.String klass, java.lang.String query, Parameters params)Executes a full text search based on Lucene.voidfindAllByQuery_async(AMD_IQuery_findAllByQuery __cb, java.lang.String query, Parameters params)Executes the stored query with the given name.voidfindAllByString_async(AMD_IQuery_findAllByString __cb, java.lang.String klass, java.lang.String field, java.lang.String value, boolean caseSensitive, Filter filter)Searches a given field matching against a String.voidfindByExample_async(AMD_IQuery_findByExample __cb, IObject example)Searches based on provided example entity.voidfindByQuery_async(AMD_IQuery_findByQuery __cb, java.lang.String query, Parameters params)Executes the stored query with the given name.voidfindByString_async(AMD_IQuery_findByString __cb, java.lang.String klass, java.lang.String field, java.lang.String value)Searches a given field matching against a String.voidget_async(AMD_IQuery_get __cb, java.lang.String klass, long id)Looks up an entity by class and id.protected voidice_copyStateFrom(Ice.Object __obj)java.lang.Stringice_id()java.lang.Stringice_id(Ice.Current __current)java.lang.String[]ice_ids()java.lang.String[]ice_ids(Ice.Current __current)booleanice_isA(java.lang.String s)booleanice_isA(java.lang.String s, Ice.Current __current)static java.lang.Stringice_staticId()voidprojection_async(AMD_IQuery_projection __cb, java.lang.String query, Parameters params)Return a sequence ofRTypesequences.voidrefresh_async(AMD_IQuery_refresh __cb, IObject iObject)Refreshes an entireIObjectgraph, recursive loading all data for the managed instances in the graph from the database.-
Methods inherited from class Ice.ObjectImpl
___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __read, __read, __readImpl, __write, __write, __writeImpl, clone, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface omero.api._IQueryOperations
find_async, findAll_async, findAllByExample_async, findAllByFullText_async, findAllByQuery_async, findAllByString_async, findByExample_async, findByQuery_async, findByString_async, get_async, projection_async, refresh_async
-
-
-
-
Field Detail
-
__ids
public static final java.lang.String[] __ids
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
ice_copyStateFrom
protected void ice_copyStateFrom(Ice.Object __obj) throws java.lang.CloneNotSupportedException- Throws:
java.lang.CloneNotSupportedException
-
ice_isA
public boolean ice_isA(java.lang.String s)
- Specified by:
ice_isAin interfaceIce.Object- Overrides:
ice_isAin classIce.ObjectImpl
-
ice_isA
public boolean ice_isA(java.lang.String s, Ice.Current __current)- Specified by:
ice_isAin interfaceIce.Object- Overrides:
ice_isAin classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids()
- Specified by:
ice_idsin interfaceIce.Object- Overrides:
ice_idsin classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids(Ice.Current __current)
- Specified by:
ice_idsin interfaceIce.Object- Overrides:
ice_idsin classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id()
- Specified by:
ice_idin interfaceIce.Object- Overrides:
ice_idin classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id(Ice.Current __current)
- Specified by:
ice_idin interfaceIce.Object- Overrides:
ice_idin classIce.ObjectImpl
-
ice_staticId
public static java.lang.String ice_staticId()
-
find_async
public final void find_async(AMD_IQuery_find __cb, java.lang.String klass, long id) throws ServerError
Looks up an entity by class and id. If no such objects exists, return anull.- Specified by:
find_asyncin interface_IQueryOperationsNC- Parameters:
__cb- The callback object for the operation.klass- klass the type of the entity. Not null.- Throws:
ServerError
-
findAll_async
public final void findAll_async(AMD_IQuery_findAll __cb, java.lang.String klass, Filter filter) throws ServerError
Looks up all entities that belong to this class and match filter.- Specified by:
findAll_asyncin interface_IQueryOperationsNC- Parameters:
__cb- The callback object for the operation.klass- entity type to be searched. Not null.- Throws:
ServerError
-
findAllByExample_async
public final void findAllByExample_async(AMD_IQuery_findAllByExample __cb, IObject example, Filter filter) throws ServerError
Searches based on provided example entity. The returned entities will be limited by theFilterobject. Note: findAllbyExample does not operate on theidfield. For that, usefind,get,findByQuery, orfindAllByQuery.- Specified by:
findAllByExample_asyncin interface_IQueryOperationsNC- Parameters:
__cb- The callback object for the operation.example- Non-null example object.- Throws:
ServerError
-
findAllByFullText_async
public final void findAllByFullText_async(AMD_IQuery_findAllByFullText __cb, java.lang.String klass, java.lang.String query, Parameters params) throws ServerError
Executes a full text search based on Lucene. Each term in the query can also be prefixed by the name of the field to which is should be restricted. Examples:- owner:root AND annotation:someTag
- file:xml AND name:*hoechst*
- Specified by:
findAllByFullText_asyncin interface_IQueryOperationsNC- Parameters:
__cb- The callback object for the operation.klass- A non-null class specification of which type should be searched.query- A non-null query string. An empty string will return no results.params- Currently the parameters themselves are unused. But theParameters.theFiltercan be used to limit the number of results returned (Filter.limit) or the user for who the results will be found (Filter.ownerId).- Throws:
ServerError
-
findAllByQuery_async
public final void findAllByQuery_async(AMD_IQuery_findAllByQuery __cb, java.lang.String query, Parameters params) throws ServerError
Executes the stored query with the given name. If a query with the name cannot be found, an exception will be thrown. The queryName parameter can be an actual query String if the StringQuerySource is configured on the server and the user running the query has proper permissions. Queries can only return lists ofIObjectinstances. This means all must be of the form:select this from SomeModelClass this ...
though the alias this is unimportant. Do not try to return multiple classes in one call like:select this, that from SomeClass this, SomeOtherClass that ...
nor to project values out of an object:select this.name from SomeClass this ...
If a page is desired, add it to the query parameters.- Specified by:
findAllByQuery_asyncin interface_IQueryOperationsNC- Parameters:
__cb- The callback object for the operation.query- Query to execute. Not null.- Throws:
ServerError
-
findAllByString_async
public final void findAllByString_async(AMD_IQuery_findAllByString __cb, java.lang.String klass, java.lang.String field, java.lang.String value, boolean caseSensitive, Filter filter) throws ServerError
Searches a given field matching against a String. Method allows for case sensitive or insensitive searching using the (I)LIKE comparators. Result set will be reduced by theFilterinstance.- Specified by:
findAllByString_asyncin interface_IQueryOperationsNC- Parameters:
__cb- The callback object for the operation.klass- type of entity to be searched. Not null.value- String used for search. Not null.filter- filters the result set. Can be null.- Throws:
ServerError
-
findByExample_async
public final void findByExample_async(AMD_IQuery_findByExample __cb, IObject example) throws ServerError
Searches based on provided example entity. The example entity should uniquely specify the entity or an exception will be thrown. Note: findByExample does not operate on theidfield. For that, usefind,get,findByQuery, orfindAllByQuery.- Specified by:
findByExample_asyncin interface_IQueryOperationsNC- Parameters:
__cb- The callback object for the operation.example- Non-null example object.- Throws:
ApiUsageException- if more than one result is return.ServerError
-
findByQuery_async
public final void findByQuery_async(AMD_IQuery_findByQuery __cb, java.lang.String query, Parameters params) throws ServerError
Executes the stored query with the given name. If a query with the name cannot be found, an exception will be thrown. The queryName parameter can be an actual query String if the StringQuerySource is configured on the server and the user running the query has proper permissions.- Specified by:
findByQuery_asyncin interface_IQueryOperationsNC- Parameters:
__cb- The callback object for the operation.query- Query to execute- Throws:
ValidationExceptionServerError
-
findByString_async
public final void findByString_async(AMD_IQuery_findByString __cb, java.lang.String klass, java.lang.String field, java.lang.String value) throws ServerError
Searches a given field matching against a String. Method does not allow for case sensitive or insensitive searching since this is essentially a lookup. The existence of more than one result will result in an exception.- Specified by:
findByString_asyncin interface_IQueryOperationsNC- Parameters:
__cb- The callback object for the operation.klass- type of entity to be searchedvalue- String used for search.- Throws:
ome.conditions.ApiUsageException- if more than one result.ServerError
-
get_async
public final void get_async(AMD_IQuery_get __cb, java.lang.String klass, long id) throws ServerError
Looks up an entity by class and id. If no such object exists, an exception will be thrown.- Specified by:
get_asyncin interface_IQueryOperationsNC- Parameters:
__cb- The callback object for the operation.klass- the type of the entity. Not null.- Throws:
ValidationException- if the id doesn't exist.ServerError
-
projection_async
public final void projection_async(AMD_IQuery_projection __cb, java.lang.String query, Parameters params) throws ServerError
Return a sequence ofRTypesequences.Each element of the outer sequence is one row in the return value. Each element of the inner sequence is one column specified in the HQL.
IObjectinstances are returned wrapped in anRObjectinstance. Primitives are mapped to the expectedRTypesubclass. Types without anRTypemapper if returned will throw an exception if present in the select except where a manual conversion is present on the server. This includes:-
Permissionsinstances are serialized to anRMapcontaining the keys: perms, canAnnotate, canEdit, canLink, canDelete, canChgrp, canChown -
The quantity types like
Lengthare serialized to anRMapcontaining the keys: value, unit, symbol
As with SQL, if an aggregation statement is used, a group by clause must be added.
Examples:
select i.name, i.description from Image i where i.name like '%.dv' select tag.textValue, tagset.textValue from TagAnnotation tag join tag.annotationLinks l join l.child tagset select p.pixelsType.value, count(p.id) from Pixel p group by p.pixelsType.value
- Specified by:
projection_asyncin interface_IQueryOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
-
refresh_async
public final void refresh_async(AMD_IQuery_refresh __cb, IObject iObject) throws ServerError
Refreshes an entireIObjectgraph, recursive loading all data for the managed instances in the graph from the database. If any non-managed entities are detected (e.g. without ids), anApiUsageExceptionwill be thrown.- Specified by:
refresh_asyncin interface_IQueryOperationsNC- Parameters:
__cb- The callback object for the operation.iObject- Non-null managedIObjectgraph which should have all values re-assigned from the database- Throws:
ApiUsageException- if any non-managed entities are found.ServerError
-
___get
public static Ice.DispatchStatus ___get(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___find
public static Ice.DispatchStatus ___find(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___findAll
public static Ice.DispatchStatus ___findAll(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___findByExample
public static Ice.DispatchStatus ___findByExample(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___findAllByExample
public static Ice.DispatchStatus ___findAllByExample(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___findByString
public static Ice.DispatchStatus ___findByString(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___findAllByString
public static Ice.DispatchStatus ___findAllByString(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___findByQuery
public static Ice.DispatchStatus ___findByQuery(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___findAllByQuery
public static Ice.DispatchStatus ___findAllByQuery(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___findAllByFullText
public static Ice.DispatchStatus ___findAllByFullText(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___projection
public static Ice.DispatchStatus ___projection(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___refresh
public static Ice.DispatchStatus ___refresh(IQuery __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
__dispatch
public Ice.DispatchStatus __dispatch(IceInternal.Incoming in, Ice.Current __current)- Specified by:
__dispatchin interfaceIce.Object- Overrides:
__dispatchin classIce.ObjectImpl
-
__writeImpl
protected void __writeImpl(IceInternal.BasicStream __os)
- Overrides:
__writeImplin classIce.ObjectImpl
-
__readImpl
protected void __readImpl(IceInternal.BasicStream __is)
- Overrides:
__readImplin classIce.ObjectImpl
-
-