[/url] [url=file:///F:/资料/文字资料/j2ee-1.4_doc/apidocs/overview-summary.html]Overview
Class
JavaTM 2 Platform
Ent. Ed. v1.4
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
javax.ejb
Class DuplicateKeyExceptionjava.lang.Object
java.lang.Throwable
java.lang.Exception
javax.ejb.CreateException
javax.ejb.DuplicateKeyException
All Implemented Interfaces: Serializable public class DuplicateKeyException extends CreateExceptionThe 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 FormConstructor Summary
Constructs a DuplicateKeyException with no detail message. 构建一个不含详细信息的DuplicateKeyException。
DuplicateKeyException(String message)
Constructs a DuplicateKeyException with the specified detail message. 构建一个指定详细信息的DuplicateKeyException。
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
DuplicateKeyExceptionpublic DuplicateKeyException()
Constructs a DuplicateKeyException with no detail message. 构建一个不含详细信息的DuplicateKeyException。
DuplicateKeyExceptionpublic DuplicateKeyException(String message)
Constructs a DuplicateKeyException with the specified detail message. 构建一个指定详细信息的DuplicateKeyException。
[/url][url=file:///F:/资料/文字资料/j2ee-1.4_doc/apidocs/overview-summary.html]Overview
Class
JavaTM 2 Platform
Ent. Ed. v1.4
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Submit a bug or feature Copyright 2003 Sun Microsystems, Inc. All rights reserved.