org.objectweb.jorm.runtime.mapper.rdb.adapter.lib
Class RdbAdapterFactory

java.lang.Object
  |
  +--org.objectweb.jorm.runtime.mapper.rdb.adapter.lib.RdbAdapterFactory

public class RdbAdapterFactory
extends java.lang.Object

This factory permits to create new instances of RdbAdpater.

Author:
Field Summary
static java.lang.String DATABASE_NAME_JDBC
          This constant represents the data base name for a standard jdbc database
 
Constructor Summary
RdbAdapterFactory()
           
 
Method Summary
 RdbAdpater getTypeConverter(CompilerParameter cp)
          This first possibility permits to specify a compiler parameter which containsthe all needed information to determine which a RdbAdpater must be returned.
 RdbAdpater getTypeConverter(java.lang.String dbn)
          This first possibility permits to specify the name for which a RdbAdpater is needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATABASE_NAME_JDBC

public static final java.lang.String DATABASE_NAME_JDBC
This constant represents the data base name for a standard jdbc database
Constructor Detail

RdbAdapterFactory

public RdbAdapterFactory()
Method Detail

getTypeConverter

public RdbAdpater getTypeConverter(java.lang.String dbn)
                            throws PException
This first possibility permits to specify the name for which a RdbAdpater is needed.
Returns:
: the type converter linked to the data base name
Throws:
PException - : if the parameter is null or if no RdbAdpater is associated to the name, a PException is throwing.

getTypeConverter

public RdbAdpater getTypeConverter(CompilerParameter cp)
                            throws PException
This first possibility permits to specify a compiler parameter which containsthe all needed information to determine which a RdbAdpater must be returned.
Returns:
: the type converter linked to the compiler parameter
Throws:
PException - : if the parameter is null or if no RdbAdpater is associated to the compiler parameter, a PException is throwing.