public interface IObject extends Filterable, java.io.Serializable
Details
get saved to the DB, but only embedded in
other entites.Modifier and Type | Method and Description |
---|---|
java.util.Set |
fields()
returns a Set of field names that belong to this class
|
Details |
getDetails()
Value (i.e.
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
java.lang.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(java.lang.String field,
java.lang.Object value)
stores a value in this instance.
|
java.lang.Object |
retrieve(java.lang.String field)
retrieves a value from this instance.
|
void |
setId(java.lang.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
java.lang.Long getId()
void setId(java.lang.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.java.lang.Object retrieve(java.lang.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(java.lang.String field, java.lang.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.java.util.Set fields()
GraphHolder getGraphHolder()
GraphHolder
for this entity. If the GraphHolder has
not been actively set, a new one will be instatiated.