org.objectweb.jorm.mapper.rdb.adapter
Class RdbAdapterFactory
java.lang.Object
org.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
RdbAdapterFactory
public RdbAdapterFactory()
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