org.genericdao
Class DuplicateKeyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.genericdao.RollbackException
              extended by org.genericdao.DuplicateKeyException
All Implemented Interfaces:
Serializable

public class DuplicateKeyException
extends RollbackException

The exception thrown by a CRUD method (typically from the create() method) to signal an attempt to create a new bean in a table that has the same primary key as an existing bean. (The attempt has failed.)

The DuplicateKeyException this a subclass of RollbackException. As with RollbackException, the work done by the transaction that was active when this exception is thrown is rolled back.

See Also:
Serialized Form

Constructor Summary
DuplicateKeyException(String message)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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

DuplicateKeyException

public DuplicateKeyException(String message)


Copyright © 2012 Jeffrey L. Eppinger. All rights reserved. Permission granted for educational use only.