org.jpox.store.mapping
Class MappingFactory

java.lang.Object
  extended byorg.jpox.store.mapping.MappingFactory

public final class MappingFactory
extends java.lang.Object

Factory class for creating Mapping instances. This is called to generate field mappings for the classes to be persisted.

Version:
$Revision: 1.13 $

Method Summary
static JavaTypeMapping createMapping(java.lang.Class mappingClass, DatastoreAdapter dba, AbstractPropertyMetaData fmd, DatastoreContainerObject datastoreContainer, ClassLoaderResolver clr)
          Get a new instance of the Mapping using the the DBA, field metadata, and the table managing the field.
static JavaTypeMapping createMapping(java.lang.Class mappingClass, DatastoreAdapter dba, java.lang.String type)
          Get a new instance of the Mapping using the DBA and type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createMapping

public static JavaTypeMapping createMapping(java.lang.Class mappingClass,
                                            DatastoreAdapter dba,
                                            java.lang.String type)
Get a new instance of the Mapping using the DBA and type.

Parameters:
mappingClass - the Mapping class to be created
dba - The Database Adapter
type - The type
Returns:
The Mapping

createMapping

public static JavaTypeMapping createMapping(java.lang.Class mappingClass,
                                            DatastoreAdapter dba,
                                            AbstractPropertyMetaData fmd,
                                            DatastoreContainerObject datastoreContainer,
                                            ClassLoaderResolver clr)
Get a new instance of the Mapping using the the DBA, field metadata, and the table managing the field.

Parameters:
mappingClass - the Mapping class to be created
dba - Datastore Adapter
fmd - FieldMetaData for the field to be mapped
datastoreContainer - The Table
clr - The ClassLoaderResolver
Returns:
The Mapping


Copyright © -2007 . All Rights Reserved.