boolean contains(
Object entity
)
Determine if the given object is a managed entity instance belonging to the current persistence context.
- Parameters:
entity- entity instance
- Return:
- boolean value indicating if entity belongs to the persistence context
- Throws:
- IllegalArgumentException - if not an entity
- Since:
- JPA 1.0