|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.persistence.proxy.AbstractFieldInfo
public abstract class AbstractFieldInfo
INTERNAL: An abstract field info class containing the common behaviour for FieldInfoIFs.
| Field Summary | |
|---|---|
protected int |
cardinality
|
protected FieldDescriptor |
field
|
protected java.lang.reflect.Method |
getter
|
protected int |
index
|
protected boolean |
is_collection
|
protected java.lang.String |
name
|
protected ClassInfoIF |
parent_cinfo
|
protected boolean |
readonly
|
protected java.lang.reflect.Method |
setter
|
protected java.lang.Class |
value_class
|
| Fields inherited from interface net.ontopia.persistence.proxy.FieldInfoIF |
|---|
MANY_TO_MANY, ONE_TO_MANY, ONE_TO_ONE |
| Constructor Summary | |
|---|---|
protected |
AbstractFieldInfo(ClassInfoIF parent_cinfo,
java.lang.String name,
int index,
java.lang.Class value_class,
boolean is_collection,
int cardinality,
boolean readonly)
|
| Method Summary | |
|---|---|
int |
getCardinality()
INTERNAL: Gets the field cardinality. |
FieldDescriptor |
getDescriptor()
INTERNAL: Returns the underlying FieldDescriptor instance if one exists. |
protected java.lang.reflect.Method |
getGetterMethod()
|
int |
getIndex()
INTERNAL: Gets the value field index of this field. |
java.lang.String[] |
getJoinKeys()
INTERNAL: Gets the columns in the join table that contains the keys of the referencing object. |
java.lang.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. |
java.lang.String[] |
getManyKeys()
INTERNAL: Gets the columns in the join table that contains the keys of the referenced object. |
java.lang.String |
getName()
INTERNAL: Gets the field name. |
ClassInfoIF |
getParentClassInfo()
INTERNAL: Gets the class info for the field's object type. |
protected java.lang.reflect.Method |
getSetterMethod()
|
java.lang.String |
getTable()
INTERNAL: Gets the table in which the field value is stored (aka the master table). |
java.lang.Object |
getValue(java.lang.Object object)
INTERNAL: Gets the field value from the given object. |
java.lang.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(java.lang.Object object,
java.lang.Object value)
INTERNAL: Sets the field value for the given object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.ontopia.persistence.proxy.FieldInfoIF |
|---|
getValueClassInfo, getValueColumns |
| Methods inherited from interface net.ontopia.persistence.proxy.FieldHandlerIF |
|---|
bind, getColumnCount, isIdentityField, load, retrieveFieldValues, retrieveSQLValues |
| Field Detail |
|---|
protected java.lang.String name
protected int index
protected int cardinality
protected boolean readonly
protected boolean is_collection
protected ClassInfoIF parent_cinfo
protected java.lang.Class value_class
protected FieldDescriptor field
protected java.lang.reflect.Method getter
protected java.lang.reflect.Method setter
| Constructor Detail |
|---|
protected AbstractFieldInfo(ClassInfoIF parent_cinfo,
java.lang.String name,
int index,
java.lang.Class value_class,
boolean is_collection,
int cardinality,
boolean readonly)
| Method Detail |
|---|
public java.lang.String getName()
FieldInfoIF
getName in interface FieldInfoIFpublic int getIndex()
FieldInfoIF
getIndex in interface FieldInfoIFpublic boolean isReadOnly()
FieldInfoIF
isReadOnly in interface FieldInfoIFpublic int getCardinality()
FieldInfoIF
getCardinality in interface FieldInfoIFpublic boolean isCollectionField()
FieldInfoIF
isCollectionField in interface FieldInfoIFpublic boolean isPrimitiveField()
FieldInfoIF
isPrimitiveField in interface FieldInfoIFpublic boolean isReferenceField()
FieldInfoIF
isReferenceField in interface FieldInfoIFpublic boolean isAggregateField()
FieldInfoIF
isAggregateField in interface FieldInfoIFpublic ClassInfoIF getParentClassInfo()
FieldInfoIF
getParentClassInfo in interface FieldInfoIFpublic java.lang.Class getValueClass()
FieldInfoIF
getValueClass in interface FieldInfoIFpublic java.lang.String getTable()
FieldInfoIF
getTable in interface FieldInfoIF
public java.lang.Object getValue(java.lang.Object object)
throws java.lang.Exception
FieldInfoIF
getValue in interface FieldInfoIFjava.lang.Exception
public void setValue(java.lang.Object object,
java.lang.Object value)
throws java.lang.Exception
FieldInfoIF
setValue in interface FieldInfoIFjava.lang.Exceptionprotected java.lang.reflect.Method getGetterMethod()
protected java.lang.reflect.Method getSetterMethod()
public java.lang.String getJoinTable()
FieldInfoIF
getJoinTable in interface FieldInfoIFpublic java.lang.String[] getJoinKeys()
FieldInfoIF
getJoinKeys in interface FieldInfoIFpublic java.lang.String[] getManyKeys()
FieldInfoIF
getManyKeys in interface FieldInfoIFpublic FieldDescriptor getDescriptor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||