Package com.axelor.ai.provider.sync
Record Class SyncResult
java.lang.Object
java.lang.Record
com.axelor.ai.provider.sync.SyncResult
What a sync did.
Carries the ids, not just the counts: with no preview step, the message built from this is the administrator's only record of what changed.
-
Constructor Summary
ConstructorsConstructorDescriptionSyncResult(List<String> createdIds, List<String> updatedIds) Creates an instance of aSyncResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcreated()Returns the value of thecreatedIdsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()final StringtoString()Returns a string representation of this record class.intupdated()Returns the value of theupdatedIdsrecord component.
-
Constructor Details
-
SyncResult
Creates an instance of aSyncResultrecord class.- Parameters:
createdIds- the value for thecreatedIdsrecord componentupdatedIds- the value for theupdatedIdsrecord component
-
-
Method Details
-
created
public int created() -
updated
public int updated() -
isEmpty
public boolean isEmpty() -
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). -
createdIds
Returns the value of thecreatedIdsrecord component.- Returns:
- the value of the
createdIdsrecord component
-
updatedIds
Returns the value of theupdatedIdsrecord component.- Returns:
- the value of the
updatedIdsrecord component
-