public abstract class AbstractFieldInfo extends Object implements FieldInfoIF
| Modifier and Type | Field and Description |
|---|---|
protected int |
cardinality |
protected FieldDescriptor |
field |
protected Method |
getter |
protected int |
index |
protected boolean |
is_collection |
protected String |
name |
protected ClassInfoIF |
parent_cinfo |
protected boolean |
readonly |
protected Method |
setter |
protected Class<?> |
value_class |
MANY_TO_MANY, ONE_TO_MANY, ONE_TO_ONE| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFieldInfo(ClassInfoIF parent_cinfo,
String name,
int index,
Class<?> value_class,
boolean is_collection,
int cardinality,
boolean readonly) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCardinality()
INTERNAL: Gets the field cardinality.
|
FieldDescriptor |
getDescriptor()
INTERNAL: Returns the underlying FieldDescriptor instance if one
exists.
|
protected Method |
getGetterMethod() |
int |
getIndex()
INTERNAL: Gets the value field index of this field.
|
String[] |
getJoinKeys()
INTERNAL: Gets the columns in the join table that contains the
keys of the referencing object.
|
String |
getJoinTable()
INTERNAL: Gets the name of the table which needs to be joined to
order to access the field value from the master table.
|
String[] |
getManyKeys()
INTERNAL: Gets the columns in the join table that contains the
keys of the referenced object.
|
String |
getName()
INTERNAL: Gets the field name.
|
ClassInfoIF |
getParentClassInfo()
INTERNAL: Gets the class info for the field's object type.
|
protected Method |
getSetterMethod() |
String |
getTable()
INTERNAL: Gets the table in which the field value is stored (aka
the master table).
|
Object |
getValue(Object object)
INTERNAL: Gets the field value from the given object.
|
Class<?> |
getValueClass()
INTERNAL: Gets the field value class.
|
boolean |
isAggregateField()
INTERNAL: Returns true if the field is an aggregate field.
|
boolean |
isCollectionField()
INTERNAL: Returns true if the field is a collection field (has a
cardinality of 1:1 or 1:M).
|
boolean |
isPrimitiveField()
INTERNAL: Returns true if the field is a primitive field.
|
boolean |
isReadOnly()
INTERNAL: Returns true if this field is read-only field.
|
boolean |
isReferenceField()
INTERNAL: Returns true if the field is a reference field.
|
void |
setValue(Object object,
Object value)
INTERNAL: Sets the field value for the given object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValueClassInfo, getValueColumnsbind, getColumnCount, isIdentityField, load, retrieveFieldValues, retrieveSQLValuesprotected String name
protected int index
protected int cardinality
protected boolean readonly
protected boolean is_collection
protected ClassInfoIF parent_cinfo
protected Class<?> value_class
protected FieldDescriptor field
protected Method getter
protected Method setter
protected AbstractFieldInfo(ClassInfoIF parent_cinfo, String name, int index, Class<?> value_class, boolean is_collection, int cardinality, boolean readonly)
public String getName()
FieldInfoIFgetName in interface FieldInfoIFpublic int getIndex()
FieldInfoIFgetIndex in interface FieldInfoIFpublic boolean isReadOnly()
FieldInfoIFisReadOnly in interface FieldInfoIFpublic int getCardinality()
FieldInfoIFgetCardinality in interface FieldInfoIFpublic boolean isCollectionField()
FieldInfoIFisCollectionField in interface FieldInfoIFpublic boolean isPrimitiveField()
FieldInfoIFisPrimitiveField in interface FieldInfoIFpublic boolean isReferenceField()
FieldInfoIFisReferenceField in interface FieldInfoIFpublic boolean isAggregateField()
FieldInfoIFisAggregateField in interface FieldInfoIFpublic ClassInfoIF getParentClassInfo()
FieldInfoIFgetParentClassInfo in interface FieldInfoIFpublic Class<?> getValueClass()
FieldInfoIFgetValueClass in interface FieldInfoIFpublic String getTable()
FieldInfoIFgetTable in interface FieldInfoIFpublic Object getValue(Object object) throws Exception
FieldInfoIFgetValue in interface FieldInfoIFExceptionpublic void setValue(Object object, Object value) throws Exception
FieldInfoIFsetValue in interface FieldInfoIFExceptionprotected Method getGetterMethod()
protected Method getSetterMethod()
public String getJoinTable()
FieldInfoIFgetJoinTable in interface FieldInfoIFpublic String[] getJoinKeys()
FieldInfoIFgetJoinKeys in interface FieldInfoIFpublic String[] getManyKeys()
FieldInfoIFgetManyKeys in interface FieldInfoIFpublic FieldDescriptor getDescriptor()