Top Description Fields Constructors
javax.ejb

public Class DuplicateKeyException

extends CreateException
Class Inheritance

The DuplicateKeyException exception is thrown if an entity EJB object or EJB local object cannot be created because an object with the same key already exists. This exception is thrown by the create methods defined in an entity bean's home or local home interface.

Note

Support for entity beans is optional as of EJB 3.2

Since
EJB 1.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
DuplicateKeyException()

Constructs a DuplicateKeyException with no detail message.

public
DuplicateKeyException(String message)

Constructs a DuplicateKeyException with the specified detail message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.ejb.CreateException.serialVersionUID.

Constructor Detail

DuplicateKeyExceptionback to summary
public DuplicateKeyException()

Constructs a DuplicateKeyException with no detail message.

DuplicateKeyExceptionback to summary
public DuplicateKeyException(String message)

Constructs a DuplicateKeyException with the specified detail message.