Package omero.sys
Class ParametersI
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.sys.Parameters
-
- omero.sys.ParametersI
-
- All Implemented Interfaces:
Ice.Object,java.io.Serializable,java.lang.Cloneable
public class ParametersI extends Parameters
Helper subclass ofParametersfor simplifying method parameter creation. As of 4.0, this takes over for PojoOptions. See ticket:67.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class omero.sys.Parameters
__ids, map, serialVersionUID, theFilter, theOptions
-
-
Constructor Summary
Constructors Constructor Description ParametersI()Default constructor creates theParameters.mapinstance to prevent laterNullPointerExceptions.ParametersI(java.util.Map<java.lang.String,RType> map)Uses (and does not copy) the givenMap<String, RType>as the named parameter store in this instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ParametersIacquisitionData()Sets theacquisition dataparameter totrue.ParametersIadd(java.lang.String name, RType r)ParametersIaddId(long id)ParametersIaddId(RLong id)ParametersIaddIds(java.util.Collection<java.lang.Long> longs)ParametersIaddLong(java.lang.String name, long l)ParametersIaddLong(java.lang.String name, RLong l)ParametersIaddLongs(java.lang.String name, java.util.Collection<java.lang.Long> longs)ParametersIallExps()Removes theexperimenterparameter from the map.ParametersIallGrps()Removes thegroupparameter from the map.ParametersIallTimes()Removes the time parameters from the map.ParametersIcache()Deprecated.experimental: may be wholly removed in next major versionParametersIendTime(RTime endTime)Sets the value of theend timeparameter.ParametersIexp(RLong i)Sets the value of theexperimenterparameter.RBoolgetAcquisitionData()RBoolgetCache()RTimegetEndTime()Returns the value of theend timeparameter.RLonggetExperimenter()Returns the value of theexperimenterparameter.RLonggetGroup()Returns the value of thegroupparameter.RBoolgetLeaves()RIntgetLimit()Returns the value of thelimitparameter.RIntgetOffset()Returns the value of theoffsetparameter.RBoolgetOrphan()RTimegetStartTime()Returns the value of thestart timeparameter.RBoolgetUnique()ParametersIgrp(RLong i)Sets the value of thegroupparameter.booleanisEndTime()Returnstrueif the map contains theend timeparameter,falseotherwise.booleanisExperimenter()Returnstrueif the filter contains andownerIdparameter,falseotherwise.booleanisGroup()Returnstrueif the filter contains angroupId,falseotherwise.booleanisPagination()Returnstrueif the filter contains alimitOR aoffset,falseotherwise.booleanisStartTime()Returnstrueif the map contains thestart timeparameter,falseotherwise.ParametersIleaves()Sets theleafparameter totrue.ParametersInoAcquisitionData()Sets theacquisition dataparameter tofalse.ParametersInoCache()Set queries to not be cacheable.ParametersInoLeaves()Sets theleafparameter tofalse.ParametersInoOrphan()Sets theorphanparameter tofalse.ParametersnoPage()Nulls both theFilter.limitandFilter.offsetvalues.ParametersInoUnique()ParametersIorphan()Sets theorphanparameter totrue.ParametersIpage(int offset, int limit)Sets both theFilter.limitandFilter.offsetvalues by wrapping the arguments inRIntand passing the values topage(RInt, RInt)ParametersIpage(RInt offset, RInt limit)ParametersIstartTime(RTime startTime)Sets the value of thestart timeparameter.ParametersIunique()-
Methods inherited from class omero.sys.Parameters
__readImpl, __writeImpl, clone, ice_factory, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId
-
-
-
-
Constructor Detail
-
ParametersI
public ParametersI()
Default constructor creates theParameters.mapinstance to prevent laterNullPointerExceptions. To save memory, it is possible to pass null toParametersI(Map).
-
ParametersI
public ParametersI(java.util.Map<java.lang.String,RType> map)
Uses (and does not copy) the givenMap<String, RType>as the named parameter store in this instance. Be careful if either null is passed or if this instance is being used in a multi-threaded environment. No synchronization takes place.- Parameters:
map- the named parameter store to use
-
-
Method Detail
-
noPage
public Parameters noPage()
Nulls both theFilter.limitandFilter.offsetvalues.- Returns:
- this instance, for method chaining
-
page
public ParametersI page(int offset, int limit)
Sets both theFilter.limitandFilter.offsetvalues by wrapping the arguments inRIntand passing the values topage(RInt, RInt)- Parameters:
offset- the offset (to start from)limit- the limit (maximum to return)- Returns:
- this instance, for method chaining
-
page
public ParametersI page(RInt offset, RInt limit)
- Parameters:
offset- the offset (to start from)limit- the limit (maximum to return)- Returns:
- this instance, for method chaining
-
isPagination
public boolean isPagination()
Returnstrueif the filter contains alimitOR aoffset,falseotherwise.- Returns:
- See above.
-
getOffset
public RInt getOffset()
Returns the value of theoffsetparameter.- Returns:
- See above.
-
getLimit
public RInt getLimit()
Returns the value of thelimitparameter.- Returns:
- See above.
-
unique
public ParametersI unique()
-
noUnique
public ParametersI noUnique()
-
getUnique
public RBool getUnique()
-
exp
public ParametersI exp(RLong i)
Sets the value of theexperimenterparameter.- Parameters:
i- The Id of the experimenter.- Returns:
- Returns the current object.
-
allExps
public ParametersI allExps()
Removes theexperimenterparameter from the map.- Returns:
- Returns the current object.
-
isExperimenter
public boolean isExperimenter()
Returnstrueif the filter contains andownerIdparameter,falseotherwise.- Returns:
- See above.
-
getExperimenter
public RLong getExperimenter()
Returns the value of theexperimenterparameter.- Returns:
- See above.
-
grp
public ParametersI grp(RLong i)
Sets the value of thegroupparameter.- Parameters:
i- The value to set.- Returns:
- See above.
-
allGrps
public ParametersI allGrps()
Removes thegroupparameter from the map.- Returns:
- Returns the current object.
-
isGroup
public boolean isGroup()
Returnstrueif the filter contains angroupId,falseotherwise.- Returns:
- See above.
-
getGroup
public RLong getGroup()
Returns the value of thegroupparameter.- Returns:
- See above.
-
startTime
public ParametersI startTime(RTime startTime)
Sets the value of thestart timeparameter.- Parameters:
startTime- The time to set.- Returns:
- Returns the current object.
-
endTime
public ParametersI endTime(RTime endTime)
Sets the value of theend timeparameter.- Parameters:
endTime- The time to set.- Returns:
- Returns the current object.
-
allTimes
public ParametersI allTimes()
Removes the time parameters from the map.- Returns:
- Returns the current object.
-
isStartTime
public boolean isStartTime()
Returnstrueif the map contains thestart timeparameter,falseotherwise.- Returns:
- See above.
-
isEndTime
public boolean isEndTime()
Returnstrueif the map contains theend timeparameter,falseotherwise.- Returns:
- See above.
-
getStartTime
public RTime getStartTime()
Returns the value of thestart timeparameter.- Returns:
- See above.
-
getEndTime
public RTime getEndTime()
Returns the value of theend timeparameter.- Returns:
- See above.
-
leaves
public ParametersI leaves()
Sets theleafparameter totrue.- Returns:
- Returns the current object.
-
noLeaves
public ParametersI noLeaves()
Sets theleafparameter tofalse.- Returns:
- Returns the current object.
-
getLeaves
public RBool getLeaves()
-
orphan
public ParametersI orphan()
Sets theorphanparameter totrue.- Returns:
- Returns the current object.
-
noOrphan
public ParametersI noOrphan()
Sets theorphanparameter tofalse.- Returns:
- Returns the current object.
-
getOrphan
public RBool getOrphan()
-
acquisitionData
public ParametersI acquisitionData()
Sets theacquisition dataparameter totrue.- Returns:
- Returns the current object.
-
noAcquisitionData
public ParametersI noAcquisitionData()
Sets theacquisition dataparameter tofalse.- Returns:
- Returns the current object.
-
getAcquisitionData
public RBool getAcquisitionData()
-
cache
public ParametersI cache()
Deprecated.experimental: may be wholly removed in next major versionSet queries to be cacheable. Use with caution.- Returns:
- this instance, for method chaining
-
noCache
public ParametersI noCache()
Set queries to not be cacheable. This is the default.- Returns:
- this instance, for method chaining
-
getCache
public RBool getCache()
- Returns:
- if queries are cacheable
-
add
public ParametersI add(java.lang.String name, RType r)
-
addId
public ParametersI addId(long id)
-
addId
public ParametersI addId(RLong id)
-
addIds
public ParametersI addIds(java.util.Collection<java.lang.Long> longs)
-
addLong
public ParametersI addLong(java.lang.String name, long l)
-
addLong
public ParametersI addLong(java.lang.String name, RLong l)
-
addLongs
public ParametersI addLongs(java.lang.String name, java.util.Collection<java.lang.Long> longs)
-
-