The DuplicateKeyException exception is thrown if an entity EJB 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 interface. 如果实体EJB对象因为要创建的EJB对象与现有的对象key相同而失败,则抛出DuplicateKeyException 异常。该异常由实体Bean home接口定义的create方法抛出。
See Also:
Serialized Form
<!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- -->
Constructor Summary
DuplicateKeyException() Constructs a DuplicateKeyException with no detail message. 构建一个不含详细信息的DuplicateKeyException。
DuplicateKeyException(Stringmessage) Constructs a DuplicateKeyException with the specified detail message. 构建一个指定详细信息的DuplicateKeyException。