@MappedSuperclass public abstract class Details extends java.lang.Object implements Filterable, java.io.Serializable
IObject
objects. Details instances are given special
treatment through the Omero system, especially during
ome.api.IUpdate
update.Modifier and Type | Field and Description |
---|---|
protected IObject |
_context |
protected Event |
_creation |
protected java.util.Map |
_dynamicFields |
protected ExternalInfo |
_externalInfo |
protected java.util.Set<java.lang.String> |
_filteredCollections |
protected ExperimenterGroup |
_group |
protected Experimenter |
_owner |
protected Permissions |
_perms |
protected Event |
_update |
protected java.lang.Object[] |
contexts |
static java.lang.String |
CREATIONEVENT |
static java.lang.String |
EXTERNALINFO |
static java.lang.String |
GROUP |
static java.lang.String |
OWNER |
static java.lang.String |
PERMISSIONS |
static java.lang.String |
UPDATEEVENT |
Constructor and Description |
---|
Details()
default constructor.
|
Details(Details copy)
copy-constructor
|
Details(java.lang.Object[] contexts) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter filter) |
void |
addFiltered(java.util.Collection<java.lang.String> collection)
consider all the collections named by the elements of collection to be a
"filtered" representation of the DB.
|
void |
addFiltered(java.lang.String collectionName)
consider the collection named by
collectionName to be a
"filtered" representation of the DB. |
void |
clearFiltered()
all currently marked collections are released.
|
java.lang.Object |
contextAt(int i) |
Details |
copy() |
void |
copy(Details copy)
Method which takes all field values from the given
Details
instance and copies them into the current instance. |
void |
copyWhereUnset(Details mask,
Details copyFrom)
For any field of this which is null (and is NOT null on mask -- assuming
mask is not null), copy the same value from copyFrom
into this object.
|
static Details |
create()
Call
create(Object[]) with null. |
static Details |
create(java.lang.Object[] contexts)
|
java.util.Set<java.lang.String> |
filteredSet()
copy of the current collection of filtered names.
|
int |
filteredSize()
the count of collections which were filtered.
|
IObject |
getContext()
reference to the entity which this Details is contained in.
|
Event |
getCreationEvent() |
ExternalInfo |
getExternalInfo() |
ExperimenterGroup |
getGroup() |
Experimenter |
getOwner() |
Permissions |
getPermissions()
Permissions is a component embedded into the Details component.
|
Event |
getUpdateEvent() |
boolean |
isFiltered(java.lang.String collectionName)
Was this collection filtered during creation? If so, it should not be
saved to the DB.
|
abstract Details |
newInstance() |
void |
putAt(java.lang.String field,
java.lang.Object value) |
java.lang.Object |
retrieve(java.lang.String field) |
void |
setContext(IObject myContext)
set entity to which this Details belongs.
|
void |
setContexts(java.lang.Object[] contexts) |
void |
setCreationEvent(Event e) |
void |
setExternalInfo(ExternalInfo info) |
void |
setGroup(ExperimenterGroup _group) |
void |
setOwner(Experimenter exp) |
void |
setPermissions(Permissions perms) |
void |
setUpdateEvent(Event e) |
Details |
shallowCopy() |
void |
shallowCopy(Details copy)
Method which takes all the fields of the given
Details instance
and sets unloaded proxies of them into the current instance. |
java.lang.String |
toString()
simple view of the Details.
|
void |
toString(java.lang.StringBuilder sb) |
public static final java.lang.String PERMISSIONS
public static final java.lang.String EXTERNALINFO
public static final java.lang.String CREATIONEVENT
public static final java.lang.String OWNER
public static final java.lang.String GROUP
public static final java.lang.String UPDATEEVENT
protected Event _update
protected IObject _context
protected Permissions _perms
protected ExternalInfo _externalInfo
protected Event _creation
protected Experimenter _owner
protected ExperimenterGroup _group
protected java.util.Set<java.lang.String> _filteredCollections
protected java.util.Map _dynamicFields
protected java.lang.Object[] contexts
public Details()
public Details(java.lang.Object[] contexts)
public Details(Details copy)
public static final Details create()
create(Object[])
with null.public static final Details create(java.lang.Object[] contexts)
Details
implementation for passing
in API calls, but cannot be stored within an IObject
instance.
Use copy(Details)
or shallowCopy(Details)
instead.public java.lang.Object contextAt(int i)
public void setContexts(java.lang.Object[] contexts)
public Details shallowCopy()
public Details copy()
public void copy(Details copy)
Details
instance and copies them into the current instance.copy
- public void copyWhereUnset(Details mask, Details copyFrom)
mask
- copyFrom
- public void shallowCopy(Details copy)
Details
instance
and sets unloaded proxies of them into the current instance.public void addFiltered(java.lang.String collectionName)
collectionName
to be a
"filtered" representation of the DB. This collection should not be saved,
at most compared with the current DB to find added entities.public void addFiltered(java.util.Collection<java.lang.String> collection)
public boolean isFiltered(java.lang.String collectionName)
public void clearFiltered()
public int filteredSize()
public java.util.Set<java.lang.String> filteredSet()
public IObject getContext()
public void setContext(IObject myContext)
myContext
- entity which this Details belongs topublic abstract Details newInstance()
public java.lang.String toString()
toString
in class java.lang.Object
public void toString(java.lang.StringBuilder sb)
public Permissions getPermissions()
public void setPermissions(Permissions perms)
public ExternalInfo getExternalInfo()
public void setExternalInfo(ExternalInfo info)
public Experimenter getOwner()
public void setOwner(Experimenter exp)
public Event getCreationEvent()
public void setCreationEvent(Event e)
public ExperimenterGroup getGroup()
public void setGroup(ExperimenterGroup _group)
public Event getUpdateEvent()
public void setUpdateEvent(Event e)
public boolean acceptFilter(Filter filter)
acceptFilter
in interface Filterable
public java.lang.Object retrieve(java.lang.String field)
public void putAt(java.lang.String field, java.lang.Object value)