Class FieldInfo


  • public class FieldInfo
    extends Object
    • 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.
      • messages

        protected static final ResourceBundle messages
        I18N support
    • Constructor Detail

    • 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.