01: package com.bm.ejb3metadata.annotations.metadata.interfaces;
02:
03: import com.bm.ejb3metadata.annotations.impl.JavaxPersistenceContext;
04:
05: /**
06: * This interface represents methods which can be call on
07: * ClassAnnotationMetadata, MethodAnnotationMetadata and FieldAnnotationMetadata.<br>
08: * It manages @{@link javax.persistence.PersistenceContext} annotation.
09: * @author Daniel Wiese
10: */
11: public interface IPersistenceContext {
12: /**
13: * @return true if this field is used as a persistence context.
14: */
15: boolean isPersistenceContext();
16:
17: /**
18: * @return the persistence context infos.
19: */
20: JavaxPersistenceContext getJavaxPersistenceContext();
21:
22: /**
23: * Sets the persistence context info on this field.
24: * @param javaxPersistenceContext information on persistence context.
25: */
26: void setJavaxPersistenceContext(
27: JavaxPersistenceContext javaxPersistenceContext);
28: }
|