public class FieldMolder
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
FieldMolder.CollectionInfo |
Constructor | Description |
---|---|
FieldMolder(DatingService datingService,
ClassMolder enclosingClassMolder,
FieldDescriptor fieldDescriptor) |
|
FieldMolder(DatingService ds,
ClassMolder eMold,
FieldDescriptor fieldDescriptor,
SQLRelationLoader loader) |
Creates a single field descriptor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addValue(java.lang.Object object,
java.lang.Object value,
java.lang.ClassLoader loader) |
|
static java.lang.reflect.Method |
findAccessor(java.lang.Class<?> javaClass,
java.lang.String methodName,
java.lang.Class<?> fieldType,
boolean getMethod) |
Returns the named accessor.
|
java.util.EnumSet<CascadingType> |
getCascading() |
Returns the 'cascading operations' defined for this field.
|
java.lang.Class<?> |
getCollectionType() |
|
protected java.lang.Class<?> |
getCollectionType(java.lang.String coll,
boolean lazy) |
|
java.lang.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() |
|
java.lang.String |
getName() |
|
SQLRelationLoader |
getRelationLoader() |
|
java.lang.Object |
getValue(java.lang.Object object,
java.lang.ClassLoader loader) |
|
boolean |
isAddable() |
|
boolean |
isCheckDirty() |
|
boolean |
isDefault(java.lang.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() |
|
(package private) void |
setFieldClassMolder(ClassMolder fMold) |
|
void |
setValue(java.lang.Object object,
java.lang.Object value,
java.lang.ClassLoader loader) |
|
java.lang.String |
toString() |
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 belongsfieldMapping
- The field mapping informationMappingException
- The field or its accessor methods are not
found, not accessible, not of the specified type, etcpublic FieldMolder(DatingService datingService, ClassMolder enclosingClassMolder, FieldDescriptor fieldDescriptor) throws MappingException
MappingException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
public java.lang.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()
void setFieldClassMolder(ClassMolder fMold)
public ClassMolder getEnclosingClassMolder()
public ClassMolder getFieldClassMolder()
public LockEngine getFieldLockEngine()
public boolean isReadonly()
public java.lang.Class<?> getCollectionType()
public java.util.EnumSet<CascadingType> getCascading()
public java.lang.Object getValue(java.lang.Object object, java.lang.ClassLoader loader)
public void addValue(java.lang.Object object, java.lang.Object value, java.lang.ClassLoader loader)
public void setValue(java.lang.Object object, java.lang.Object value, java.lang.ClassLoader loader)
public boolean isDefault(java.lang.Object value)
protected java.lang.Class<?> getCollectionType(java.lang.String coll, boolean lazy)
public static final java.lang.reflect.Method findAccessor(java.lang.Class<?> javaClass, java.lang.String methodName, java.lang.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.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com