|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.persist.FieldMolder
public class FieldMolder
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.
| Nested Class Summary | |
|---|---|
static class |
FieldMolder.CollectionInfo
|
| Constructor Summary | |
|---|---|
FieldMolder(DatingService datingService,
ClassMolder enclosingClassMolder,
FieldDescriptor fieldDescriptor)
|
|
FieldMolder(DatingService ds,
ClassMolder eMold,
FieldDescriptor fieldDescriptor,
SQLRelationLoader loader)
Creates a single field descriptor. |
|
| Method Summary | |
|---|---|
void |
addValue(Object object,
Object value,
ClassLoader loader)
|
static Method |
findAccessor(Class<?> javaClass,
String methodName,
Class<?> fieldType,
boolean getMethod)
Returns the named accessor. |
EnumSet<CascadingType> |
getCascading()
Returns the 'cascading operations' defined for this field. |
Class<?> |
getCollectionType()
|
protected Class<?> |
getCollectionType(String coll,
boolean lazy)
|
String |
getComparator()
Returns the java.util.Comparator instance to be used with SortedSets; null, if not specified. |
ClassMolder |
getEnclosingClassMolder()
|
ClassMolder |
getFieldClassMolder()
|
LockEngine |
getFieldLockEngine()
|
FieldPersistenceType |
getFieldPertsistenceType()
|
String |
getName()
|
SQLRelationLoader |
getRelationLoader()
|
Object |
getValue(Object object,
ClassLoader loader)
|
boolean |
isAddable()
|
boolean |
isCheckDirty()
|
boolean |
isDefault(Object value)
Check if the specified value is the default value of the Field represented by this FieldMolder. |
boolean |
isDependent()
|
boolean |
isLazy()
|
boolean |
isManyToMany()
|
boolean |
isMulti()
|
boolean |
isPersistanceCapable()
|
boolean |
isReadonly()
|
boolean |
isSerializable()
|
boolean |
isStored()
|
boolean |
isTransient()
|
void |
setValue(Object object,
Object value,
ClassLoader loader)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FieldMolder(DatingService ds,
ClassMolder eMold,
FieldDescriptor fieldDescriptor,
SQLRelationLoader loader)
throws MappingException
FieldMolder. Implementations may
extend this class to create a more suitable descriptor.
eMold - The ClassMolder to which the field belongs
MappingException - The field or its accessor methods are not
found, not accessible, not of the specified type, etc
public FieldMolder(DatingService datingService,
ClassMolder enclosingClassMolder,
FieldDescriptor fieldDescriptor)
throws MappingException
MappingException| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getName()
public String getComparator()
public FieldPersistenceType getFieldPertsistenceType()
public SQLRelationLoader getRelationLoader()
public boolean isStored()
public boolean isManyToMany()
public boolean isDependent()
public boolean isMulti()
public boolean isPersistanceCapable()
public boolean isSerializable()
public boolean isCheckDirty()
public boolean isLazy()
public boolean isAddable()
public boolean isTransient()
public ClassMolder getEnclosingClassMolder()
public ClassMolder getFieldClassMolder()
public LockEngine getFieldLockEngine()
public boolean isReadonly()
public Class<?> getCollectionType()
public EnumSet<CascadingType> getCascading()
public Object getValue(Object object,
ClassLoader loader)
public void addValue(Object object,
Object value,
ClassLoader loader)
public void setValue(Object object,
Object value,
ClassLoader loader)
public boolean isDefault(Object value)
protected Class<?> getCollectionType(String coll,
boolean lazy)
public static final Method findAccessor(Class<?> javaClass,
String methodName,
Class<?> fieldType,
boolean getMethod)
throws MappingException
javaClass - The class to which the field belongs.methodName - The name of the accessor method.fieldType - The type of the field if known, or null.getMethod - True if get method, false if set method.
MappingException - The method is not accessible or is not of the
specified type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||