Package app.ductape.sdk.database.types
Record Class PreSaveTypes.PreSaveResult
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.PreSaveTypes.PreSaveResult
- Enclosing class:
- PreSaveTypes
public static record PreSaveTypes.PreSaveResult(Object data, List<PreSaveTypes.AppliedOperation> appliedOperations, List<PreSaveTypes.ValidationError> validationErrors, boolean success)
extends Record
data is a single row map or list of row maps (TS Record | Record[]).-
Constructor Summary
ConstructorsConstructorDescriptionPreSaveResult(Object data, List<PreSaveTypes.AppliedOperation> appliedOperations, List<PreSaveTypes.ValidationError> validationErrors, boolean success) Creates an instance of aPreSaveResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theappliedOperationsrecord component.data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidationErrorsrecord component.
-
Constructor Details
-
PreSaveResult
public PreSaveResult(Object data, List<PreSaveTypes.AppliedOperation> appliedOperations, List<PreSaveTypes.ValidationError> validationErrors, boolean success) Creates an instance of aPreSaveResultrecord class.- Parameters:
data- the value for thedatarecord componentappliedOperations- the value for theappliedOperationsrecord componentvalidationErrors- the value for thevalidationErrorsrecord componentsuccess- the value for thesuccessrecord component
-
-
Method Details
-
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 '=='. -
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
appliedOperations
Returns the value of theappliedOperationsrecord component.- Returns:
- the value of the
appliedOperationsrecord component
-
validationErrors
Returns the value of thevalidationErrorsrecord component.- Returns:
- the value of the
validationErrorsrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-