Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » dao » [javadoc | source]
org.springframework.dao
public class: DataIntegrityViolationException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            org.springframework.core.NestedRuntimeException
               org.springframework.dao.DataAccessException
                  org.springframework.dao.NonTransientDataAccessException
                     org.springframework.dao.DataIntegrityViolationException

All Implemented Interfaces:
    Serializable

Exception thrown when an attempt to insert or update data results in violation of an integrity constraint. Note that this is not purely a relational concept; unique primary keys are required by most database types.
Constructor:
 public DataIntegrityViolationException(String msg) 
    Constructor for DataIntegrityViolationException.
    Parameters:
    msg - the detail message
 public DataIntegrityViolationException(String msg,
    Throwable cause) 
    Constructor for DataIntegrityViolationException.
    Parameters:
    msg - the detail message
    cause - the root cause from the data access API in use
Methods from org.springframework.core.NestedRuntimeException:
contains,   getMessage,   getMostSpecificCause,   getRootCause
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait