Package su.onno.importer
Record Class ImportResult
java.lang.Object
java.lang.Record
su.onno.importer.ImportResult
public record ImportResult(String entityType, String name, String mode, boolean dryRun, int totalRows, int created, int updated, int posted, int failed, List<ImportRowError> errors)
extends Record
Summary of a CSV import run.
-
Constructor Summary
ConstructorsConstructorDescriptionImportResult(String entityType, String name, String mode, boolean dryRun, int totalRows, int created, int updated, int posted, int failed, List<ImportRowError> errors) Creates an instance of aImportResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcreated()Returns the value of thecreatedrecord component.booleandryRun()Returns the value of thedryRunrecord component.Returns the value of theentityTyperecord component.final booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.intfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.name()Returns the value of thenamerecord component.intposted()Returns the value of thepostedrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalRowsrecord component.intupdated()Returns the value of theupdatedrecord component.
-
Constructor Details
-
ImportResult
public ImportResult(String entityType, String name, String mode, boolean dryRun, int totalRows, int created, int updated, int posted, int failed, List<ImportRowError> errors) Creates an instance of aImportResultrecord class.- Parameters:
entityType- the value for theentityTyperecord componentname- the value for thenamerecord componentmode- the value for themoderecord componentdryRun- the value for thedryRunrecord componenttotalRows- the value for thetotalRowsrecord componentcreated- the value for thecreatedrecord componentupdated- the value for theupdatedrecord componentposted- the value for thepostedrecord componentfailed- the value for thefailedrecord componenterrors- the value for theerrorsrecord 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 '=='. -
entityType
Returns the value of theentityTyperecord component.- Returns:
- the value of the
entityTyperecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
dryRun
public boolean dryRun()Returns the value of thedryRunrecord component.- Returns:
- the value of the
dryRunrecord component
-
totalRows
public int totalRows()Returns the value of thetotalRowsrecord component.- Returns:
- the value of the
totalRowsrecord component
-
created
public int created()Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
updated
public int updated()Returns the value of theupdatedrecord component.- Returns:
- the value of the
updatedrecord component
-
posted
public int posted()Returns the value of thepostedrecord component.- Returns:
- the value of the
postedrecord component
-
failed
public int failed()Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-
errors
Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-