org.ow2.util.ee.metadata.common.api.interfaces
Interface IPersistenceUnit
- All Superinterfaces:
- Serializable
- All Known Subinterfaces:
- ICommonClassMetadata<C,M,F>, ICommonFieldMetadata<C,M,F>, ICommonMethodMetadata<C,M,F>, IEnvironmentRefAccessor, ISharedMetadata
public interface IPersistenceUnit
- extends Serializable
This interface represents methods which can be call on
ClassAnnotationMetadata, MethodAnnotationMetadata and FieldAnnotationMetadata.
It manages @PersistenceUnit annotation.
- Author:
- Florent Benoit
isPersistenceUnit
boolean isPersistenceUnit()
- Returns:
- true if this field is used as a persistence unit.
getJavaxPersistenceUnit
IJavaxPersistenceUnit getJavaxPersistenceUnit()
- Returns:
- the persistence unit infos.
setJavaxPersistenceUnit
void setJavaxPersistenceUnit(IJavaxPersistenceUnit javaxPersistenceUnit)
- Sets the persistence unit info on this field.
- Parameters:
javaxPersistenceUnit - information on persistence unit.
Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.