|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JpaServices
A container should implement this interface to allow the Web Beans RI to resolve JPA persistence units and discover entities
Method Summary | |
---|---|
javax.persistence.EntityManager |
resolvePersistenceContext(InjectionPoint injectionPoint)
Resolve the value for the given @PersistenceContext injection point |
javax.persistence.EntityManager |
resolvePersistenceContext(java.lang.String unitName)
Resolve a persistence context for a given persistence unit name |
javax.persistence.EntityManagerFactory |
resolvePersistenceUnit(java.lang.String unitName)
Resolve a persistence unit for a given persistence unit name |
Method Detail |
---|
javax.persistence.EntityManager resolvePersistenceContext(InjectionPoint injectionPoint)
injectionPoint
- the injection point metadata
java.lang.IllegalArgumentException
- if the injection point is not annotated with
java.lang.IllegalStateException
- if no suitable persistence units can be resolved for injectionjavax.persistence.EntityManager resolvePersistenceContext(java.lang.String unitName)
unitName
- the unit name
java.lang.IllegalStateException
- if no suitable persistence units can be resolved for injectionjavax.persistence.EntityManagerFactory resolvePersistenceUnit(java.lang.String unitName)
unitName
- the unit name
java.lang.IllegalStateException
- if no suitable persistence units can be resolved for injection
java.lang.IllegalArgumentException
- if unitName is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |