Package org.apache.openjpa.persistence
Class AnnotationBuilder
- java.lang.Object
-
- org.apache.openjpa.persistence.AnnotationBuilder
-
public class AnnotationBuilder extends java.lang.Object
Helper class to stringify annotation declarations.- Since:
- 1.0.0
- Author:
- Gokhan Ergul
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AnnotationBuilder(java.lang.Class<? extends java.lang.annotation.Annotation> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationBuilder
add(java.lang.String key, boolean val)
AnnotationBuilder
add(java.lang.String key, int val)
AnnotationBuilder
add(java.lang.String key, java.lang.Class val)
AnnotationBuilder
add(java.lang.String key, java.lang.Enum val)
AnnotationBuilder
add(java.lang.String key, java.lang.String val)
AnnotationBuilder
add(java.lang.String key, java.util.EnumSet val)
AnnotationBuilder
add(java.lang.String key, AnnotationBuilder val)
java.lang.Class<? extends java.lang.annotation.Annotation>
getType()
boolean
hasComponents()
java.lang.String
toString()
protected void
toString(java.lang.StringBuilder sb)
-
-
-
Method Detail
-
getType
public java.lang.Class<? extends java.lang.annotation.Annotation> getType()
-
add
public AnnotationBuilder add(java.lang.String key, java.lang.String val)
-
add
public AnnotationBuilder add(java.lang.String key, boolean val)
-
add
public AnnotationBuilder add(java.lang.String key, int val)
-
add
public AnnotationBuilder add(java.lang.String key, java.lang.Class val)
-
add
public AnnotationBuilder add(java.lang.String key, java.util.EnumSet val)
-
add
public AnnotationBuilder add(java.lang.String key, java.lang.Enum val)
-
add
public AnnotationBuilder add(java.lang.String key, AnnotationBuilder val)
-
hasComponents
public boolean hasComponents()
-
toString
protected void toString(java.lang.StringBuilder sb)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-