2.17.2: 2011-06-17

net.sf.basedb.info
Class AnnotationInfo

java.lang.Object
  extended by net.sf.basedb.info.AnnotationInfo
All Implemented Interfaces:
Serializable, Transferable

public class AnnotationInfo
extends Object
implements Serializable, Transferable

An information class that holds information about annotation values for a given annotation type.

Version:
2.5
Author:
Nicklas
See Also:
Serialized Form

Field Summary
private  int annotationTypeId
           
private static long serialVersionUID
           
private  String[] values
           
private  String valueType
           
 
Constructor Summary
AnnotationInfo()
          Creates information object with no properties set.
 
Method Summary
 int getAnnotationTypeId()
           
 String[] getValues()
           
 String getValueType()
           
 void setAnnotationTypeId(int annotationTypeId)
           
 void setValues(String[] values)
           
 void setValueType(String valueType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

annotationTypeId

private int annotationTypeId

valueType

private String valueType

values

private String[] values
Constructor Detail

AnnotationInfo

public AnnotationInfo()
Creates information object with no properties set.

Method Detail

getValues

public String[] getValues()
Returns:
Returns the annotation values as strings

setValues

public void setValues(String[] values)
Parameters:
values - Change the annotation values

getAnnotationTypeId

public int getAnnotationTypeId()
Returns:
The external ID of the annotation type or null

setAnnotationTypeId

public void setAnnotationTypeId(int annotationTypeId)
Parameters:
annotationTypeId - The annotationTypeId to set

getValueType

public String getValueType()
Returns:
The class of values that can be used for annotations. The value is the string representation of one of the options in Type, ie. STRING, INT, LONG

setValueType

public void setValueType(String valueType)
Parameters:
valueType - The class of values that can be used for annotations.
See Also:
getValueType()

2.17.2: 2011-06-17