Package com.axelor.meta.headless
Record Class Target
java.lang.Object
java.lang.Record
com.axelor.meta.headless.Target
- Record Components:
id- the saved record's id, or null for a new recordseed- values written after the open hook, without theironChange: a new record's starting values, or edits not saved yet carried into a saved one
The record a session opens on.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanisNew()static TargetA new record: field defaults, thenonNew.static TargetA new record: field defaults, thenonNew, then these values.static Targetrecord(long id) A saved record: read, thenonLoad.static TargetA saved record: read, thenonLoad, then these values — edits not saved yet.seed()Returns the value of theseedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
newRecord
A new record: field defaults, thenonNew. -
newRecord
A new record: field defaults, thenonNew, then these values. -
record
A saved record: read, thenonLoad. -
record
A saved record: read, thenonLoad, then these values — edits not saved yet. -
isNew
public boolean isNew() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
seed
Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-