Class RecordIndexUniquenessViolation

    • Method Detail

      • getIndex

        @Nonnull
        public Index getIndex()
        Get the index associated with this uniqueness violation.
        Returns:
        the index associated with this uniqueness violation
      • getIndexEntry

        @Nullable
        public IndexEntry getIndexEntry()
        Get the index value of this uniqueness violation. This is the value the index took for some record that conflicted with the value for a different record.
        Returns:
        the index key of this uniqueness violation
      • getPrimaryKey

        @Nullable
        public Tuple getPrimaryKey()
        Get the primary key of this uniqueness violation. This is the record that was added that triggered the uniqueness violation
        Returns:
        the primary key of this uniqueness violation
      • getExistingKey

        @Nullable
        public Tuple getExistingKey()
        Get the existing key of this uniqueness violation. This is the primary key of the record that was already within the database at the time the second record was added.
        Returns:
        the existing key of this uniqueness violation