FieldMolder represents a field of a data object class. It is used by
ClassMolder to set and get the value from a field of a data object.
MANY_TO_MANY
public static final short MANY_TO_MANY
ONE_TO_MANY
public static final short ONE_TO_MANY
PERSISTANCECAPABLE
public static final short PERSISTANCECAPABLE
PRIMITIVE
public static final short PRIMITIVE
SERIALIZABLE
public static final short SERIALIZABLE
FieldMolder
public FieldMolder(DatingService ds,
ClassMolder eMold,
FieldMapping fieldMap,
String manyTable,
String[] idSQL,
int[] idType,
TypeConvertor[] idTo,
TypeConvertor[] idFrom,
String[] idParam,
String[] relatedIdSQL,
int[] relatedIdType,
TypeConvertor[] ridTo,
TypeConvertor[] ridFrom,
String[] ridParam)
throws MappingException
Creates a single field descriptor. The field mapping is used to
create a new stock
FieldMolder
. Implementations may
extend this class to create a more suitable descriptor.
fieldMap
- The field mapping information
MappingException
- The field or its accessor methods are not
found, not accessible, not of the specified type, etc
addValue
public void addValue(Object object,
Object value,
ClassLoader loader)
getCollectionType
public Class getCollectionType()
getCollectionType
protected Class getCollectionType(String coll,
boolean lazy)
throws MappingException
getEnclosingClassMolder
public ClassMolder getEnclosingClassMolder()
getFieldClassMolder
public ClassMolder getFieldClassMolder()
getFieldLockEngine
public LockEngine getFieldLockEngine()
getFieldType
public short getFieldType()
getName
public String getName()
getValue
public Object getValue(Object object,
ClassLoader loader)
isAddable
public boolean isAddable()
isCheckDirty
public boolean isCheckDirty()
isDefault
public boolean isDefault(Object value)
Check if the specified value is the default value of the Field
represented by this FieldMolder
isDependent
public boolean isDependent()
isLazy
public boolean isLazy()
isManyToMany
public boolean isManyToMany()
isMulti
public boolean isMulti()
isPersistanceCapable
public boolean isPersistanceCapable()
isReadonly
public boolean isReadonly()
isSerializable
public boolean isSerializable()
isStored
public boolean isStored()
setFieldClassMolder
(package private) void setFieldClassMolder(ClassMolder fMold)
setValue
public void setValue(Object object,
Object value,
ClassLoader loader)
toString
public String toString()