| com.bm.ejb3metadata.annotations.analyzer.JavaxPersistencePersistenceUnitVisitor
JavaxPersistencePersistenceUnitVisitor | public class JavaxPersistencePersistenceUnitVisitor extends AbsAnnotationVisitor implements AnnotationType(Code) | | This class manages the handling of @
javax.persistence.PersistenceUnit annotation.
< Parameters: T - > An implementation of IPersistenceUnit interface. author: Daniel Wiese |
Field Summary | |
final public static String | TYPE Type of annotation. |
TYPE | final public static String TYPE(Code) | | Type of annotation.
|
JavaxPersistencePersistenceUnitVisitor | public JavaxPersistencePersistenceUnitVisitor(T annotationMetadata)(Code) | | Constructor.
Parameters: annotationMetadata - linked to a class or method or field metadata |
getJavaxPersistenceUnit | protected JavaxPersistenceUnit getJavaxPersistenceUnit()(Code) | | Internal object used representing @javax.persistence.PersistenceUnit annotation. |
getType | public String getType()(Code) | | type of the annotation (its description) |
setjavaxPersistenceUnit | protected void setjavaxPersistenceUnit(JavaxPersistenceUnit javaxPersistenceUnit)(Code) | | Sets the javaxPersistenceUnit object.
Parameters: javaxPersistenceUnit - the object which replaced the previous one. |
visit | public void visit(String name, Object value)(Code) | | Visits a primitive value of the annotation.
Parameters: name - the value name. Parameters: value - the actual value, whose type must be Byte,Boolean, Character, Short,Integer, Long, Float, Double,String or org.ejb3unit.asm.Type. |
visitEnd | public void visitEnd()(Code) | | Visits the end of the annotation.
Creates the object and store it.
|
|
|