public final class JDOMappingLoader extends AbstractMappingLoader
AbstractMappingLoader.TypeInfoReferenceEMPTY_ARGS, NO_DESCRIPTOR, STRING_ARG, VALUE_OF| Constructor and Description |
|---|
JDOMappingLoader(java.lang.ClassLoader loader) |
| 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.
|
static java.lang.String |
definition2param(java.lang.String sqlTypeDef)
Extracts parameter for type convertor from the SQL type definition of the
form "SQL_TYPE_NAME[PARAMETER]".
|
static java.lang.String |
definition2type(java.lang.String sqlTypeDef)
Extracts SQL type name from the the SQL type definition of the form
"SQL_TYPE_NAME[PARAMETER]".
|
BindingType |
getBindingType() |
protected java.lang.String[] |
getSqlTypes(FieldMapping fieldMap)
Parse the sql type attribute to build an
array of types, needed to support whitespace inside
parameterized types (see Bug 1045)
|
protected TypeInfo |
getTypeInfo(java.lang.Class fieldType,
CollectionHandler colHandler,
FieldMapping fieldMap) |
protected void |
loadMappingInternal(MappingRoot mapping,
java.lang.Object param)
Loads the mapping from the specified mapping object.
|
createFieldHandler, findAccessor, getIdentityColumnNames, getSourceType, isPrimitive, resolveRelations, resolveTypeaddDescriptor, clear, descriptorIterator, getClassLoader, getDescriptor, isAllowRedefinition, loadMapping, setAllowRedefinitions, setClassLoaderpublic static java.lang.String definition2param(java.lang.String sqlTypeDef)
sqlTypeDef - SQL type definition (e.g. char[01]).public static java.lang.String definition2type(java.lang.String sqlTypeDef)
sqlTypeDef - SQL type definition (e.g. char[01]).public BindingType getBindingType()
protected 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 java.lang.String[] getSqlTypes(FieldMapping fieldMap)
protected TypeInfo getTypeInfo(java.lang.Class fieldType, CollectionHandler colHandler, FieldMapping fieldMap) throws MappingException
getTypeInfo in class AbstractMappingLoaderMappingExceptionprotected 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.protected void loadMappingInternal(MappingRoot mapping, java.lang.Object param) throws MappingException
AbstractMappingLoader#createDescriptor to
create each descriptor and AbstractMappingLoader2.addDescriptor(org.exolab.castor.mapping.ClassDescriptor) to store it. Also loads all the included
mapping files.loadMappingInternal in class AbstractMappingLoadermapping - The mapping information.param - Arbitrary parameter that can be used by subclasses.MappingException - The mapping file is invalid.Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com