@Deprecated
public class ServicesUtil
extends java.lang.Object
Constructor and Description |
---|
ServicesUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
AnnotationInfo[] |
getAnnotations(DbControl dc,
Annotatable annotatable,
java.lang.Integer[] annotationTypes,
boolean findInherited)
Deprecated.
Load annotation values from an annotatable item.
|
<T extends BasicItem> |
getConfiguredItemQuery(ItemQuery<T> query,
QueryOptions qOpt)
Deprecated.
Put options and restriction on a item query and returns it
|
FileSetMemberInfo[] |
getDataFiles(DbControl dc,
FileStoreEnabled item,
QueryOptions qOpt)
Deprecated.
Returns information objects for each data file that is associated with
a
FileStoreEnabled item. |
<T extends Transferable> |
listToInfo(java.util.List<? extends ToTransferable<T>> list,
java.lang.Class<T> clazz)
Deprecated.
Convert a list of objects to an array of
Transferable objects
objects. |
public <T extends BasicItem> ItemQuery<T> getConfiguredItemQuery(ItemQuery<T> query, QueryOptions qOpt)
T
- The kind of BasicItem the item query work with.query
- ItemQuery that should get includes and restriction.qOpt
- QueryOptions object with restrictions and includes
to put on the ItemQuerypublic <T extends Transferable> T[] listToInfo(java.util.List<? extends ToTransferable<T>> list, java.lang.Class<T> clazz)
Transferable
objects
objects. The objects in must be of the same type and implement the
ToTransferable
interface. The specified transferable class
must hava a public no-argument constructor.
See for example: Experiment.toTransferable(net.sf.basedb.info.ExperimentInfo)
T
- The kind of info object the items can be transfered into.list
- A list of ToTransferable
objectsclazz
- The Transferable
class that the objects in the list
are beeing converted topublic AnnotationInfo[] getAnnotations(DbControl dc, Annotatable annotatable, java.lang.Integer[] annotationTypes, boolean findInherited)
dc
- The DbControl to use for database accessannotatable
- The annotatable item to load annotations fromannotationTypes
- Array of annotation type IDfindInherited
- TRUE to find inherited annotations, FALSE to only look
for primary annotationsAnnotationInfo
objects, each position corresponds
to the position with the same index in the annotationTypes array. The returned
array is always the same length as the annotationTypes array. If the annotatable
item doesn't have any annotations of a particular type, that element is nullpublic FileSetMemberInfo[] getDataFiles(DbControl dc, FileStoreEnabled item, QueryOptions qOpt)
FileStoreEnabled
item.item
- The item with filesqOpt
- Restrictions and includes to put on the query