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 ClassType
classType
The corresponding classType object.protected Field
field
The reflection representation of the field.protected static ResourceBundle
messages
I18N supportprotected String
name
The name of the field.protected PersistenceFieldElement
pfe
JDO model representation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Type
getAssociatedClass()
Field
getField()
int
getFieldNumber()
Return the field number in the case of a field of a persistence capable class.String
getName()
Type
getType()
Returns the Type representation of the type of the field.boolean
isPersistent()
Checks whether this field is defined as persistent field.boolean
isPublic()
Checks whether this field is defined with the public modifier.boolean
isRelationship()
boolean
isStatic()
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.
-
-