|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.jdo.jpa.info.FieldInfo
public class FieldInfo
This class holds the necessary information so that Castor can properly map a JPA annotated classes member to the database.
| Constructor Summary | |
|---|---|
FieldInfo(ClassInfo declaringClassInfo,
Class<?> fieldType,
String fieldName,
Method getterMethod,
Method setterMethod)
Creates a FieldInfo associated to the given ClassInfo, describing
the given a field with the given name using method (property) access. |
|
| Method Summary | |
|---|---|
void |
addNature(String nature)
|
ClassInfo |
getDeclaringClassInfo()
Returns the declaring ClassInfo this FieldInfo is
associated with. |
String |
getFieldName()
Indicates the name of the field described by this FieldInfo. |
Class<?> |
getFieldType()
Indicates the type of the field described by this FieldInfo. |
Method |
getGetterMethod()
Indicates the getter access method of the field. |
Object |
getProperty(String name)
|
Method |
getSetterMethod()
Indicates the setter access method of the field. |
boolean |
hasNature(String nature)
|
void |
setDeclaringClassInfo(ClassInfo classInfo)
Sets the reference to the declaring ClassInfo this
FieldInfo is associated with. |
void |
setFieldName(String fieldName)
Sets the name of the field described by this FieldInfo. |
void |
setFieldType(Class<?> fieldType)
Sets the type of the field described by this FieldInfo. |
void |
setGetterMethod(Method getterMethod)
Sets the getter access method of the field. |
void |
setProperty(String name,
Object value)
|
void |
setSetterMethod(Method setterMethod)
Sets the setter access method of the field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldInfo(ClassInfo declaringClassInfo,
Class<?> fieldType,
String fieldName,
Method getterMethod,
Method setterMethod)
ClassInfo, describing
the given a field with the given name using method (property) access.
declaringClassInfo - The ClassInfo this FieldInfo is associated with.fieldType - The type of the described field.fieldName - The name of the described field.getterMethod - The reference to the getter method of the Field.setterMethod - The reference to the setter method of the Field.| Method Detail |
|---|
public void addNature(String nature)
addNature in interface NatureExtendableNatureExtendable.addNature(java.lang.String)public boolean hasNature(String nature)
hasNature in interface NatureExtendableNatureExtendable.hasNature(java.lang.String)public Object getProperty(String name)
getProperty in interface PropertyHolderPropertyHolder.getProperty(java.lang.String)
public void setProperty(String name,
Object value)
setProperty in interface PropertyHolderPropertyHolder.setProperty(java.lang.String,
java.lang.Object)public ClassInfo getDeclaringClassInfo()
ClassInfo this FieldInfo is
associated with.
ClassInfo this FieldInfo is
associated with.public void setDeclaringClassInfo(ClassInfo classInfo)
ClassInfo this
FieldInfo is associated with.
classInfo - The ClassInfo this FieldInfo is associated with.public String getFieldName()
FieldInfo.
FieldInfo.public void setFieldName(String fieldName)
FieldInfo.
fieldName - set the name of the field described by this FieldInfo.public Class<?> getFieldType()
FieldInfo.
public void setFieldType(Class<?> fieldType)
FieldInfo.
fieldType - The Type of the field.public Method getGetterMethod()
public void setGetterMethod(Method getterMethod)
getterMethod - the getter method reference.public Method getSetterMethod()
public void setSetterMethod(Method setterMethod)
setterMethod - the setter method reference.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||