Methods Summary |
---|
public Type | getAssociatedClass()
Type associatedClass = null;
if ((pfe != null) && (pfe instanceof RelationshipElement))
{
String className = ((RelationshipElement)pfe).getElementClass();
associatedClass = classType.typetab.checkType(className);
}
return associatedClass;
|
public java.lang.reflect.Field | getField()
return field;
|
public int | getFieldNumber()Return the field number in the case of a field of a persistence capable class.
if (pfe != null)
{
int index = pfe.getFieldNumber();
if (index < 0)
throw new JDOFatalInternalException(I18NHelper.getMessage(
messages, "query.util.type.fieldinfo.getfieldnumber.invalidfieldno", //NO18N
String.valueOf(index), name));
return index;
}
else
{
throw new JDOFatalInternalException(I18NHelper.getMessage(
messages, "query.util.type.fieldinfo.getfieldnumber.missingfieldelement", //NO18N
name));
}
|
public java.lang.String | getName()
return name;
|
public Type | getType()Returns the Type representation of the type of the field.
if (field == null)
return classType.typetab.errorType;
Type ret = classType.typetab.checkType(field.getType());
if (ret == null)
ret = classType.typetab.errorType;
return ret;
|
public boolean | isPersistent()Checks whether this field is defined as persistent field.
if (pfe != null)
{
return pfe.getPersistenceType() == PersistenceFieldElement.PERSISTENT;
}
return false;
|
public boolean | isPublic()Checks whether this field is defined with the public modifier.
return (field != null) && Modifier.isPublic(field.getModifiers());
|
public boolean | isRelationship()
return ((pfe != null) && (pfe instanceof RelationshipElement));
|
public boolean | isStatic()Checks whether this field is defined with the static modifier.
return (field != null) && Modifier.isStatic(field.getModifiers());
|