|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.cm.ds.db.DatabaseFactory
DatabaseFactory
classes are responsible for creating new
instances of the Database
interface.
Constructor Summary | |
protected |
DatabaseFactory()
|
Method Summary | |
static Database |
createDatabase(java.sql.Connection conn)
Creates an instance of Database for the
specified Connection . |
static Database |
createDatabase(java.lang.String connName)
|
static Database |
createDatabase(java.lang.String connName,
java.sql.Connection conn)
|
protected abstract Database |
createDatabaseImpl(java.lang.String connName,
java.sql.Connection conn)
Creates a new Database instance. |
static java.sql.Connection |
getConnection(java.lang.String connName)
Resolves a connection name into a Connection. |
static void |
registerDatabaseFactory(DatabaseFactory factory)
Registers a new DatabaseFactory instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected DatabaseFactory()
Method Detail |
protected abstract Database createDatabaseImpl(java.lang.String connName, java.sql.Connection conn)
Database
instance.
connName
- a String containing the ConnectionManager name for
the connectionconn
- the connection to the database
null
if this DatabaseFactory does not support the connectionpublic static final void registerDatabaseFactory(DatabaseFactory factory)
factory
- the DatabaseFactory instance to register.public static final Database createDatabase(java.sql.Connection conn) throws CMException
Database
for the
specified Connection
.
conn
- The Connection
used when creating a
Database
wrapper class
null
if one can not
be created
CMException
public static final Database createDatabase(java.lang.String connName) throws CMException
CMException
public static final Database createDatabase(java.lang.String connName, java.sql.Connection conn) throws CMException
CMException
public static final java.sql.Connection getConnection(java.lang.String connName) throws CMException
connName
- The name of the connection
CMException
- if an error is encountered creating the connection
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.