org.apache.openjpa.persistence
Class AnnotationBuilder
java.lang.Object
org.apache.openjpa.persistence.AnnotationBuilder
public class AnnotationBuilder
- extends Object
Helper class to stringify annotation declarations.
- Since:
- 1.0.0
- Author:
- Gokhan Ergul
AnnotationBuilder
protected AnnotationBuilder(Class<? extends Annotation> type)
getType
public Class<? extends Annotation> getType()
add
public AnnotationBuilder add(String key,
String val)
add
public AnnotationBuilder add(String key,
boolean val)
add
public AnnotationBuilder add(String key,
int val)
add
public AnnotationBuilder add(String key,
Class val)
add
public AnnotationBuilder add(String key,
EnumSet val)
add
public AnnotationBuilder add(String key,
Enum val)
add
public AnnotationBuilder add(String key,
AnnotationBuilder val)
hasComponents
public boolean hasComponents()
toString
protected void toString(StringBuilder sb)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.