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

    Constructors
    Constructor
    Description
    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 a ImportResult record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the created record component.
    boolean
    Returns the value of the dryRun record component.
    Returns the value of the entityType record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the errors record component.
    int
    Returns the value of the failed record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the mode record component.
    Returns the value of the name record component.
    int
    Returns the value of the posted record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the totalRows record component.
    int
    Returns the value of the updated record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a ImportResult record class.
      Parameters:
      entityType - the value for the entityType record component
      name - the value for the name record component
      mode - the value for the mode record component
      dryRun - the value for the dryRun record component
      totalRows - the value for the totalRows record component
      created - the value for the created record component
      updated - the value for the updated record component
      posted - the value for the posted record component
      failed - the value for the failed record component
      errors - the value for the errors record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • entityType

      public String entityType()
      Returns the value of the entityType record component.
      Returns:
      the value of the entityType record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • mode

      public String mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • dryRun

      public boolean dryRun()
      Returns the value of the dryRun record component.
      Returns:
      the value of the dryRun record component
    • totalRows

      public int totalRows()
      Returns the value of the totalRows record component.
      Returns:
      the value of the totalRows record component
    • created

      public int created()
      Returns the value of the created record component.
      Returns:
      the value of the created record component
    • updated

      public int updated()
      Returns the value of the updated record component.
      Returns:
      the value of the updated record component
    • posted

      public int posted()
      Returns the value of the posted record component.
      Returns:
      the value of the posted record component
    • failed

      public int failed()
      Returns the value of the failed record component.
      Returns:
      the value of the failed record component
    • errors

      public List<ImportRowError> errors()
      Returns the value of the errors record component.
      Returns:
      the value of the errors record component