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

java.lang.Object
  extended byorg.objectweb.jorm.mapper.rdb.adapter.RdbAdapterFactory

public class RdbAdapterFactory
extends java.lang.Object

This factory permits to create new instances of RdbAdapter.

Author:
S. Chassande-Barrioz

Field Summary
static java.lang.String DATABASE_NAME_JDBC
          This constant represents the data base name for a standard jdbc database
private static java.util.Properties product2adapter
          Map between DatabaseProductName to adapter class name
 
Constructor Summary
RdbAdapterFactory()
           
 
Method Summary
static java.util.Map getProductName2Adapter()
           
static RdbAdapter getTypeConverter(javax.sql.DataSource ds)
           
static RdbAdapter getTypeConverter(java.lang.String dbn)
          This first possibility permits to specify the name for which a RdbAdapter 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

See Also:
Constant Field Values

product2adapter

private static java.util.Properties product2adapter
Map between DatabaseProductName to adapter class name

Constructor Detail

RdbAdapterFactory

public RdbAdapterFactory()
Method Detail

getProductName2Adapter

public static java.util.Map getProductName2Adapter()

getTypeConverter

public static RdbAdapter getTypeConverter(java.lang.String dbn)
                                   throws RdbAdapterException
This first possibility permits to specify the name for which a RdbAdapter is needed.

Parameters:
dbn - : the data base name
Returns:
: the type converter linked to the data base name is associated to the name, a PException is throwing.
Throws:
RdbAdapterException

getTypeConverter

public static RdbAdapter getTypeConverter(javax.sql.DataSource ds)
                                   throws RdbAdapterException
Throws:
RdbAdapterException