FileDocCategorySizeDatePackage
EntityNotFoundException.javaAPI DocGlassfish v2 API3104Fri May 04 22:34:06 BST 2007javax.persistence

EntityNotFoundException

public class EntityNotFoundException extends PersistenceException
Thrown by the persistence provider when an entity reference obtained by {@link EntityManager#getReference EntityManager.getReference(Class,Object)} is accessed but the entity does not exist. Also thrown when {@link EntityManager#refresh EntityManager.refresh(Object)} is called and the object no longer exists in the database. The current transaction, if one is active, will be marked for rollback.
see
javax.persistence.EntityManager#getReference(Class,Object)
see
javax.persistence.EntityManager#refresh(Object)
since
Java Persistence 1.0

Fields Summary
Constructors Summary
public EntityNotFoundException()
Constructs a new EntityNotFoundException exception with null as its detail message.

		super();
	
public EntityNotFoundException(String message)
Constructs a new EntityNotFoundException exception with the specified detail message.

param
message the detail message.

		super(message);
	
Methods Summary