Class FieldDesc

    • Field Detail

      • PROP_IN_CONCURRENCY_CHECK

        public static final int PROP_IN_CONCURRENCY_CHECK
        This field is used for concurrency check
        See Also:
        Constant Field Values
      • PROP_LOG_ON_UPDATE

        public static final int PROP_LOG_ON_UPDATE
        Update before image when this field is updated. This property is always set
        See Also:
        Constant Field Values
      • PROP_READ_ONLY

        public static final int PROP_READ_ONLY
        This field is read only
        See Also:
        Constant Field Values
      • PROP_RECORD_ON_UPDATE

        public static final int PROP_RECORD_ON_UPDATE
        Record updates on this field to DB. This property is always set for primitive fields.
        See Also:
        Constant Field Values
      • PROP_REF_INTEGRITY_UPDATES

        public static final int PROP_REF_INTEGRITY_UPDATES
        Relationship updates are processed from the side containing this field.
        See Also:
        Constant Field Values
      • PROP_TRACK_RELATIONSHIP_FIELD

        public static final int PROP_TRACK_RELATIONSHIP_FIELD
        This field tracks a relationship field. Only primitive fields can have this property set.
        See Also:
        Constant Field Values
      • PROP_PRIMARY_KEY_FIELD

        public static final int PROP_PRIMARY_KEY_FIELD
        This field is part of a primary key.
        See Also:
        Constant Field Values
      • PROP_VERSION_FIELD

        public static final int PROP_VERSION_FIELD
        This field is used for version consistency validation.
        See Also:
        Constant Field Values
      • PROP_FOREIGN_KEY_FIELD

        public static final int PROP_FOREIGN_KEY_FIELD
        This field is part of a foreign key.
        See Also:
        Constant Field Values
      • absoluteID

        public int absoluteID
      • fetchGroup

        public int fetchGroup
      • concurrencyGroup

        public int concurrencyGroup
      • sqlProperties

        public int sqlProperties
      • classDesc

        protected final ClassDesc classDesc
        Back pointer to declaring class descriptor.
      • logger

        protected static final Logger logger
        The logger.
      • messages

        protected static final ResourceBundle messages
        I18N message handler.
    • Method Detail

      • getComponentType

        public Class getComponentType()
      • getDeclaringClass

        public Class getDeclaringClass()
      • getType

        public Class getType()
      • getEnumType

        public int getEnumType()
      • getName

        public String getName()
      • getTrackedFields

        public ArrayList getTrackedFields()
      • isKeyField

        public boolean isKeyField()
        Returns true if this field is a primary key field.
      • isForeignKeyField

        public boolean isForeignKeyField()
        Returns true if this field is a foreign key field.
      • isRelationshipField

        public boolean isRelationshipField()
        Returns true if this field is a relationship field.
      • createSCO

        public Object createSCO​(Object value,
                                StateManager sm)
        Creates a new SCO instance. Therefore checks if PersistenceManager settings require SCO creation. SCOs will typically be created in a non managed environment.
        Parameters:
        value - Value being converted.
        sm - StateManager of the persistent object being bound.
        Returns:
        New SCO instance according to enumFieldType of this field. Returns null if no SCO was created.
      • getCharFromString

        public static Character getCharFromString​(String str)
      • setupDesc

        protected void setupDesc​(Field f)
      • addTrackedField

        protected void addTrackedField​(FieldDesc f)