Class UniqueConstraintViolationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UniqueConstraintViolationException
    extends ConstraintViolationException
    This exception indicates that a uniqueness constraint for a given list of fields in a given ddc was violated.
    Author:
    jschwarz
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      UniqueConstraintViolationException​(java.lang.String s, java.lang.String definitionName, java.util.Map<java.lang.String,​com.lexmark.saperion.PropertyType> fieldValues, java.util.List<java.lang.String> violatedFields)  
      UniqueConstraintViolationException​(java.lang.String s, java.lang.Throwable cause, java.lang.String definitionName, java.util.Map<java.lang.String,​com.lexmark.saperion.PropertyType> fieldValues, java.util.List<java.lang.String> violatedFields)  
      UniqueConstraintViolationException​(java.lang.String definitionName, java.util.Map<java.lang.String,​com.lexmark.saperion.PropertyType> fieldValues, java.util.List<java.lang.String> violatedFields)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<java.lang.String> getViolatedFields()
      This method returns the list of database entries that hold at least one property that made this exception occur.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UniqueConstraintViolationException

        public UniqueConstraintViolationException​(java.lang.String definitionName,
                                                  java.util.Map<java.lang.String,​com.lexmark.saperion.PropertyType> fieldValues,
                                                  java.util.List<java.lang.String> violatedFields)
      • UniqueConstraintViolationException

        public UniqueConstraintViolationException​(java.lang.String s,
                                                  java.lang.String definitionName,
                                                  java.util.Map<java.lang.String,​com.lexmark.saperion.PropertyType> fieldValues,
                                                  java.util.List<java.lang.String> violatedFields)
      • UniqueConstraintViolationException

        public UniqueConstraintViolationException​(java.lang.String s,
                                                  java.lang.Throwable cause,
                                                  java.lang.String definitionName,
                                                  java.util.Map<java.lang.String,​com.lexmark.saperion.PropertyType> fieldValues,
                                                  java.util.List<java.lang.String> violatedFields)
    • Method Detail

      • getViolatedFields

        public java.util.Collection<java.lang.String> getViolatedFields()
        This method returns the list of database entries that hold at least one property that made this exception occur.
        Returns:
        the list of database entries that hold at least one property that made this exception occur