public abstract class FieldDesc extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
int |
absoluteID |
protected ClassDesc |
classDesc
Back pointer to declaring class descriptor.
|
int |
concurrencyGroup |
int |
fetchGroup |
static int |
GROUP_DEFAULT |
static int |
GROUP_NONE |
protected static Logger |
logger
The logger.
|
protected static ResourceBundle |
messages
I18N message handler.
|
static int |
PROP_FOREIGN_KEY_FIELD
This field is part of a foreign key.
|
static int |
PROP_IN_CONCURRENCY_CHECK
This field is used for concurrency check
|
static int |
PROP_LOG_ON_UPDATE
Update before image when this field is updated.
|
static int |
PROP_PRIMARY_KEY_FIELD
This field is part of a primary key.
|
static int |
PROP_PRIMARY_TRACKED_FIELD
This field is the primary tracked field.
|
static int |
PROP_READ_ONLY
This field is read only
|
static int |
PROP_RECORD_ON_UPDATE
Record updates on this field to DB.
|
static int |
PROP_REF_INTEGRITY_UPDATES
Relationship updates are processed from the side containing this field.
|
static int |
PROP_SECONDARY_TRACKED_FIELD
This field is a secondary tracked field.
|
static int |
PROP_TRACK_RELATIONSHIP_FIELD
This field tracks a relationship field.
|
static int |
PROP_VERSION_FIELD
This field is used for version consistency validation.
|
int |
sqlProperties |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTrackedField(FieldDesc f) |
Object |
convertValue(Object value,
StateManager sm) |
Object |
createSCO(Object value,
StateManager sm)
Creates a new SCO instance.
|
static Character |
getCharFromString(String str) |
Class |
getComponentType() |
Class |
getDeclaringClass() |
int |
getEnumType() |
String |
getName() |
ArrayList |
getTrackedFields() |
Class |
getType() |
Object |
getValue(StateManager sm) |
boolean |
isForeignKeyField()
Returns true if this field is a foreign key field.
|
boolean |
isKeyField()
Returns true if this field is a primary key field.
|
boolean |
isRelationshipField()
Returns true if this field is a relationship field.
|
protected void |
setupDesc(Field f) |
void |
setValue(StateManager sm,
Object value) |
String |
toString() |
public static final int GROUP_DEFAULT
public static final int GROUP_NONE
public static final int PROP_IN_CONCURRENCY_CHECK
public static final int PROP_LOG_ON_UPDATE
public static final int PROP_READ_ONLY
public static final int PROP_RECORD_ON_UPDATE
public static final int PROP_REF_INTEGRITY_UPDATES
public static final int PROP_PRIMARY_TRACKED_FIELD
Primitive fields track each other if they are mapped to same columns. One of them is made the primary tracked field as per precedence rules on the field types. This field is used to bind values to columns while updating the database.
RESOLVE: Investigate the runtime behaviour for relationship fields marked primary.
public static final int PROP_SECONDARY_TRACKED_FIELD
Seconday tracked primitive fields are not used for updates to the database or for concurrency checking.
RESOLVE: Investigate the runtime behaviour for secondary tracked relationship fields.
public static final int PROP_TRACK_RELATIONSHIP_FIELD
public static final int PROP_PRIMARY_KEY_FIELD
public static final int PROP_VERSION_FIELD
public static final int PROP_FOREIGN_KEY_FIELD
public int absoluteID
public int fetchGroup
public int concurrencyGroup
public int sqlProperties
protected final ClassDesc classDesc
protected static final Logger logger
protected static final ResourceBundle messages
public Class getComponentType()
public Class getDeclaringClass()
public Class getType()
public int getEnumType()
public String getName()
public Object getValue(StateManager sm)
public void setValue(StateManager sm, Object value)
public ArrayList getTrackedFields()
public boolean isKeyField()
public boolean isForeignKeyField()
public boolean isRelationshipField()
public Object convertValue(Object value, StateManager sm)
public Object createSCO(Object value, StateManager sm)
value - Value being converted.sm - StateManager of the persistent object being bound.enumFieldType
of this field. Returns null if no SCO was created.protected void setupDesc(Field f)
protected void addTrackedField(FieldDesc f)
Copyright © 2019. All rights reserved.