Clears the primary key values from this entity,
current as well as original values if any
boolean
Returns true if this Entity contains a value for the given attribute, that value can be null.
Returns the distinct non-null values of attribute
from the given entities.
Returns the Entity instance referenced by the given
ForeignKey
.
Returns an unmodifiable view of the entries in this Entity, note that
attributes based on derived values are not included.
boolean
Compares the values of all attributes in the given entity to the values in this entity instance.
boolean
Compares the values of the given attributes in the given entity to the values in this entity instance.
boolean
<T> T
Returns the value associated with attribute
.
Returns a LinkedHashMap containing the given entities mapped to their entityTypes,
respecting the iteration order of the given collection
Returns a LinkedHashMap containing the given entities mapped to the value of attribute
,
respecting the iteration order of the given collection
Returns a LinkedHashMap containing the given entity keys mapped to their entityTypes,
respecting the iteration order of the given collection
Returns an immutable version of this entity, all foreign key entities are also immutable.
boolean
Returns true if this Entity contains a non-null value mapped to the given attribute.
boolean
Returns true if a null value is mapped to the given attribute or if no mapping is found.
Returns the key referenced by the given
ForeignKey
,
if the reference is null this method returns null.
Returns the non-null keys referenced by the given foreign key
boolean
Returns true if one or more writable attributes have been modified from their initial value,
non-insertable and non-updatable attributes are excluded unless they are transient and modify the entity.
boolean
Returns true if the value associated with the given attribute has been modified since first set,
note that this does not apply to attributes based on derived values.
boolean
Returns the value associated with
attribute
, wrapped in an
Optional
.
<T> T
Returns the original value associated with attribute
,
or the current one if it has not been modified..
Returns the primary key of this entity, in its original state.
Returns the primary keys of the given entities with their original values.
Returns the primary key of this entity.
Maps the given entities to their primary key
Returns the primary keys of the given entities.
<T> T
Sets the value of the given attribute, returning the previous value if any
<T> T
Removes the given value from this Entity along with the original value if any.
void
Reverts all value modifications that have been made.
void
Reverts the value associated with the given attribute to its original value.
void
Saves all the value modifications that have been made, that is, removes all original values.
void
Saves the value associated with the given attribute, that is, removes the original value.
After a call to this method this Entity contains the same values and original values as the source entity.
This method returns a String representation of the value associated with the given attribute,
if the associated attribute has a format it is used.
Returns the non-null values associated with the given attribute from the given entities.
Retrieves the values of the given keys, assuming they are single column keys.