Class FieldInfo
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.sqlstore.query.util.type.FieldInfo
-
public class FieldInfo extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassTypeclassTypeThe corresponding classType object.protected FieldfieldThe reflection representation of the field.protected static ResourceBundlemessagesI18N supportprotected StringnameThe name of the field.protected PersistenceFieldElementpfeJDO model representation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypegetAssociatedClass()FieldgetField()intgetFieldNumber()Return the field number in the case of a field of a persistence capable class.StringgetName()TypegetType()Returns the Type representation of the type of the field.booleanisPersistent()Checks whether this field is defined as persistent field.booleanisPublic()Checks whether this field is defined with the public modifier.booleanisRelationship()booleanisStatic()Checks whether this field is defined with the static modifier.
-
-
-
Field Detail
-
name
protected String name
The name of the field.
-
classType
protected ClassType classType
The corresponding classType object.
-
field
protected Field field
The reflection representation of the field.
-
pfe
protected PersistenceFieldElement pfe
JDO model representation
-
messages
protected static final ResourceBundle messages
I18N support
-
-
Method Detail
-
isPersistent
public boolean isPersistent()
Checks whether this field is defined as persistent field.- Returns:
- true if the field is defined as persistent; false otherwise.
-
isPublic
public boolean isPublic()
Checks whether this field is defined with the public modifier.- Returns:
- true if the field is defined as public; false otherwise.
-
isStatic
public boolean isStatic()
Checks whether this field is defined with the static modifier.- Returns:
- true if the field is defined as static; false otherwise.
-
getField
public Field getField()
-
getName
public String getName()
-
getType
public Type getType()
Returns the Type representation of the type of the field.- Returns:
- field type
-
getFieldNumber
public int getFieldNumber()
Return the field number in the case of a field of a persistence capable class.
-
isRelationship
public boolean isRelationship()
- Returns:
- true if the field is a relationship field
-
getAssociatedClass
public Type getAssociatedClass()
- Returns:
- the associated class (meaning the "other side") of the relationship; or null if this does not denote a relationship field.
-
-