Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » exception » [javadoc | source]
org.hibernate.exception
public class: ConstraintViolationException [javadoc | source]
java.lang.Object
   org.hibernate.JDBCException
      org.hibernate.exception.ConstraintViolationException
Implementation of JDBCException indicating that the requested DML operation resulted in a violation of a defined integrity constraint.
Constructor:
 public ConstraintViolationException(String message,
    SQLException root,
    String constraintName) 
 public ConstraintViolationException(String message,
    SQLException root,
    String sql,
    String constraintName) 
Method from org.hibernate.exception.ConstraintViolationException Summary:
getConstraintName
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.exception.ConstraintViolationException Detail:
 public String getConstraintName() 
    Returns the name of the violated constraint, if known.