public interface IObject extends Filterable, Serializable
Details
get saved to the DB, but only embedded in
other entites.Modifier and Type | Method and Description |
---|---|
Set |
fields()
returns a Set of field names that belong to this class
|
Details |
getDetails()
Value (i.e. not entity) which is available on all rows in the database.
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
Long |
getId()
primary key of this object.
|
boolean |
isLoaded()
transient field (not stored in the DB) which specifies whether this
object has been loaded from the DB or is only a wrapper around the ID.
|
boolean |
isValid()
calls the class-specific validator for this instance and returns the
value from
Validation.isValid() |
void |
putAt(String field,
Object value)
stores a value in this instance.
|
Object |
retrieve(String field)
retrieves a value from this instance.
|
void |
setId(Long id)
usually unneeded.
|
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
Validation |
validate()
calls the class-specific validator for this instance and returns the
Validation object. |
acceptFilter
Long getId()
void setId(Long id)
id
- Long value for this id.Details getDetails()
Details
, it is important to realize that
most of the values are managed by the backend and may be replaced. For
example, a user does not have permission to change the owner of an
object, not even when owned by that user.
To replace all of the values from an existing Details
instance,
use Details.copy(Details)
or Details.shallowCopy(Details)
boolean isLoaded()
void unload() throws ApiUsageException
ApiUsageException
boolean isValid()
Validation.isValid()
Validation validate()
Validation
object.Object retrieve(String field)
field
which match a field of this instance will be delegated to the accessors.
Otherwise, values will be retrieved from a lazy-loaded map filled by
calls to putAt(String, Object)
void putAt(String field, Object value)
field
which
match a field of this instance will be delegated to the accessors.
Otherwise, values will be stored in a lazy-loaded map.field
- Field namevalue
- Any object to be stored.Set fields()
GraphHolder getGraphHolder()
GraphHolder
for this entity. If the GraphHolder has
not been actively set, a new one will be instatiated.
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.