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 ofParameters
for 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.map
instance to prevent laterNullPointerException
s.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 ParametersI
acquisitionData()
Sets theacquisition data
parameter totrue
.ParametersI
add(java.lang.String name, RType r)
ParametersI
addId(long id)
ParametersI
addId(RLong id)
ParametersI
addIds(java.util.Collection<java.lang.Long> longs)
ParametersI
addLong(java.lang.String name, long l)
ParametersI
addLong(java.lang.String name, RLong l)
ParametersI
addLongs(java.lang.String name, java.util.Collection<java.lang.Long> longs)
ParametersI
allExps()
Removes theexperimenter
parameter from the map.ParametersI
allGrps()
Removes thegroup
parameter from the map.ParametersI
allTimes()
Removes the time parameters from the map.ParametersI
cache()
Deprecated.experimental: may be wholly removed in next major versionParametersI
endTime(RTime endTime)
Sets the value of theend time
parameter.ParametersI
exp(RLong i)
Sets the value of theexperimenter
parameter.RBool
getAcquisitionData()
RBool
getCache()
RTime
getEndTime()
Returns the value of theend time
parameter.RLong
getExperimenter()
Returns the value of theexperimenter
parameter.RLong
getGroup()
Returns the value of thegroup
parameter.RBool
getLeaves()
RInt
getLimit()
Returns the value of thelimit
parameter.RInt
getOffset()
Returns the value of theoffset
parameter.RBool
getOrphan()
RTime
getStartTime()
Returns the value of thestart time
parameter.RBool
getUnique()
ParametersI
grp(RLong i)
Sets the value of thegroup
parameter.boolean
isEndTime()
Returnstrue
if the map contains theend time
parameter,false
otherwise.boolean
isExperimenter()
Returnstrue
if the filter contains andownerId
parameter,false
otherwise.boolean
isGroup()
Returnstrue
if the filter contains angroupId
,false
otherwise.boolean
isPagination()
Returnstrue
if the filter contains alimit
OR aoffset
,false
otherwise.boolean
isStartTime()
Returnstrue
if the map contains thestart time
parameter,false
otherwise.ParametersI
leaves()
Sets theleaf
parameter totrue
.ParametersI
noAcquisitionData()
Sets theacquisition data
parameter tofalse
.ParametersI
noCache()
Set queries to not be cacheable.ParametersI
noLeaves()
Sets theleaf
parameter tofalse
.ParametersI
noOrphan()
Sets theorphan
parameter tofalse
.Parameters
noPage()
Nulls both theFilter.limit
andFilter.offset
values.ParametersI
noUnique()
ParametersI
orphan()
Sets theorphan
parameter totrue
.ParametersI
page(int offset, int limit)
Sets both theFilter.limit
andFilter.offset
values by wrapping the arguments inRInt
and passing the values topage(RInt, RInt)
ParametersI
page(RInt offset, RInt limit)
ParametersI
startTime(RTime startTime)
Sets the value of thestart time
parameter.ParametersI
unique()
-
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.map
instance to prevent laterNullPointerException
s. 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.limit
andFilter.offset
values.- Returns:
- this instance, for method chaining
-
page
public ParametersI page(int offset, int limit)
Sets both theFilter.limit
andFilter.offset
values by wrapping the arguments inRInt
and 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()
Returnstrue
if the filter contains alimit
OR aoffset
,false
otherwise.- Returns:
- See above.
-
getOffset
public RInt getOffset()
Returns the value of theoffset
parameter.- Returns:
- See above.
-
getLimit
public RInt getLimit()
Returns the value of thelimit
parameter.- 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 theexperimenter
parameter.- Parameters:
i
- The Id of the experimenter.- Returns:
- Returns the current object.
-
allExps
public ParametersI allExps()
Removes theexperimenter
parameter from the map.- Returns:
- Returns the current object.
-
isExperimenter
public boolean isExperimenter()
Returnstrue
if the filter contains andownerId
parameter,false
otherwise.- Returns:
- See above.
-
getExperimenter
public RLong getExperimenter()
Returns the value of theexperimenter
parameter.- Returns:
- See above.
-
grp
public ParametersI grp(RLong i)
Sets the value of thegroup
parameter.- Parameters:
i
- The value to set.- Returns:
- See above.
-
allGrps
public ParametersI allGrps()
Removes thegroup
parameter from the map.- Returns:
- Returns the current object.
-
isGroup
public boolean isGroup()
Returnstrue
if the filter contains angroupId
,false
otherwise.- Returns:
- See above.
-
getGroup
public RLong getGroup()
Returns the value of thegroup
parameter.- Returns:
- See above.
-
startTime
public ParametersI startTime(RTime startTime)
Sets the value of thestart time
parameter.- Parameters:
startTime
- The time to set.- Returns:
- Returns the current object.
-
endTime
public ParametersI endTime(RTime endTime)
Sets the value of theend time
parameter.- 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()
Returnstrue
if the map contains thestart time
parameter,false
otherwise.- Returns:
- See above.
-
isEndTime
public boolean isEndTime()
Returnstrue
if the map contains theend time
parameter,false
otherwise.- Returns:
- See above.
-
getStartTime
public RTime getStartTime()
Returns the value of thestart time
parameter.- Returns:
- See above.
-
getEndTime
public RTime getEndTime()
Returns the value of theend time
parameter.- Returns:
- See above.
-
leaves
public ParametersI leaves()
Sets theleaf
parameter totrue
.- Returns:
- Returns the current object.
-
noLeaves
public ParametersI noLeaves()
Sets theleaf
parameter tofalse
.- Returns:
- Returns the current object.
-
getLeaves
public RBool getLeaves()
-
orphan
public ParametersI orphan()
Sets theorphan
parameter totrue
.- Returns:
- Returns the current object.
-
noOrphan
public ParametersI noOrphan()
Sets theorphan
parameter tofalse
.- Returns:
- Returns the current object.
-
getOrphan
public RBool getOrphan()
-
acquisitionData
public ParametersI acquisitionData()
Sets theacquisition data
parameter totrue
.- Returns:
- Returns the current object.
-
noAcquisitionData
public ParametersI noAcquisitionData()
Sets theacquisition data
parameter 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)
-
-