Package com.axelor.meta.headless
Record Class FormResult.Write
java.lang.Object
java.lang.Record
com.axelor.meta.headless.FormResult.Write
- Record Components:
model- the entity classjsonModel- the custom model, for aMetaJsonRecord; null otherwiseid- the record's idkind- what became of it over the run
- Enclosing class:
FormResult
public static record FormResult.Write(String model, String jsonModel, long id, FormResult.Write.Kind kind)
extends Record
A record an action wrote in its own round trip, committed with it (
ActionWrites).-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWrite(String model, String jsonModel, long id, FormResult.Write.Kind kind) Creates an instance of aWriterecord class. -
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.longid()Returns the value of theidrecord component.Returns the value of thejsonModelrecord component.kind()Returns the value of thekindrecord component.static List<FormResult.Write> merge(List<FormResult.Write> writes, List<FormResult.Write> more) The writes, then more, each record once and in the order first written: one created then changed was created, one created then deleted was never there.model()Returns the value of themodelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
merge
public static List<FormResult.Write> merge(List<FormResult.Write> writes, List<FormResult.Write> more) The writes, then more, each record once and in the order first written: one created then changed was created, one created then deleted was never there. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
jsonModel
Returns the value of thejsonModelrecord component.- Returns:
- the value of the
jsonModelrecord component
-
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-