public final class XMLMappingLoader extends AbstractMappingLoader
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
XMLMappingLoader.IdentityConvertor
A special TypeConvertor that simply returns the object
given.
|
AbstractMappingLoader.TypeInfoReferenceNO_DESCRIPTOR| Constructor and Description |
|---|
XMLMappingLoader(java.lang.ClassLoader loader)
Creates a new XMLMappingLoader
|
| Modifier and Type | Method and Description |
|---|---|
protected ClassDescriptor |
createDescriptor(ClassMapping clsMap)
Creates a new descriptor.
|
protected FieldDescriptor |
createFieldDesc(java.lang.Class javaClass,
FieldMapping fieldMap)
Creates a single field descriptor.
|
BindingType |
getBindingType() |
protected TypeInfo |
getTypeInfo(java.lang.Class fieldType,
CollectionHandler colHandler,
FieldMapping fieldMap) |
protected void |
resolveRelations(ClassDescriptor clsDesc) |
void |
setLoadPackageMappings(boolean loadPackageMappings)
Sets whether or not to look for and load package specific
mapping files (".castor.xml" files).
|
createFieldHandler, findAccessor, getIdentityColumnNames, getSourceType, isPrimitive, loadMappingInternal, resolveTypeaddDescriptor, clear, descriptorIterator, getClassLoader, getDescriptor, isAllowRedefinition, loadMapping, setAllowRedefinitions, setClassLoaderpublic XMLMappingLoader(java.lang.ClassLoader loader)
public BindingType getBindingType()
protected void resolveRelations(ClassDescriptor clsDesc)
resolveRelations in class AbstractMappingLoaderprotected ClassDescriptor createDescriptor(ClassMapping clsMap) throws MappingException
AbstractMappingLoaderClassDescriptor. Implementations may extend this class to create a
more suitable descriptor.createDescriptor in class AbstractMappingLoaderclsMap - The class mapping information.MappingException - An exception indicating why mapping for the class cannot
be created.protected FieldDescriptor createFieldDesc(java.lang.Class javaClass, FieldMapping fieldMap) throws MappingException
AbstractMappingLoaderFieldDescriptor. Implementations may extend this class to create a more
suitable descriptor.createFieldDesc in class AbstractMappingLoaderjavaClass - The class to which the field belongs.fieldMap - The field mapping information.MappingException - The field or its accessor methods are not
found, not accessible, not of the specified type, etc.public void setLoadPackageMappings(boolean loadPackageMappings)
loadPackageMappings - a boolean that enables or
disables the loading of package specific mapping filesprotected TypeInfo getTypeInfo(java.lang.Class fieldType, CollectionHandler colHandler, FieldMapping fieldMap) throws MappingException
getTypeInfo in class AbstractMappingLoaderMappingExceptionIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com