|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.jdeveloper.db.adapter.DatabaseProvider
public class DatabaseProvider
Connection Provider implementation for Database Connections.
| Field Summary | |
|---|---|
static java.lang.String |
ALL_SCHEMAS_REFTYPEDeprecated. with no replacement. |
static java.lang.String |
CUSTOM_URL_CLASS_REFTYPEThe URL for the database connection. |
static java.lang.String |
DEPLOY_PASSWORD_CLASS_REFTYPEWhether to deploy the password to the runtime with the rest of the connection details. |
static java.lang.String |
DRIVER_CLASS_REFTYPEThe JDBC driver class. |
static java.lang.String |
DSN_CLASS_REFTYPEThe source name of the database. |
static java.lang.String |
HOSTNAME_CLASS_REFTYPEThe hostname of the database machine. |
static java.lang.String |
INSTANCE_CLASS_REFTYPEThe instance name of the database. |
static java.lang.String |
PARAMETERS_CLASS_REFTYPEExtra parameters for the JDBC driver. |
static java.lang.String |
PASSWORD_CLASS_REFTYPEThe database password. |
static java.lang.String |
PORT_CLASS_REFTYPEThe network port the database is running on. |
static java.lang.String |
ROLE_CLASS_REFTYPEThe database roles to associated with the connection session. |
static java.lang.String |
SAVE_PASSWORD_CLASS_REFTYPEWhether to persist the password with the connection details. |
static java.lang.String |
SERVICENAME_CLASS_REFTYPEThe service name of the database (Oracle). |
static java.lang.String |
SID_CLASS_REFTYPEThe SID name of the database (Oracle). |
static java.lang.String |
SUBTYPE_CLASS_REFTYPEThe subtype of the dataabase connection. |
static java.lang.String |
USERNAME_CLASS_REFTYPEThe database username. |
| Constructor Summary | |
|---|---|
DatabaseProvider()Creates an empty DatabaseProvider. |
|
DatabaseProvider(java.util.Properties props)Creates a new DatabaseProvider using the given properties. |
|
DatabaseProvider(java.lang.String name, java.util.Properties props)Creates a new DatabaseProvider using the given properties and with the given name. |
|
| Method Summary | ||
|---|---|---|
void |
disconnect()Notifies this provider that the connection(s) associated with it have been closed. |
|
boolean |
equals(java.lang.Object obj) |
|
javax.naming.directory.Attributes |
getAttributes() |
|
java.sql.Connection |
getConnection() |
|
java.sql.Connection |
getConnection(java.lang.String username, java.lang.String password) |
|
java.lang.String |
getConnectionURL() |
|
java.lang.String |
getDriverClassName() |
|
int |
getLoginTimeout() |
|
java.io.PrintWriter |
getLogWriter() |
|
java.util.Properties |
getProperties()Returns a copy of the underlying properties for this provider. |
|
java.lang.String |
getProperty(java.lang.String name)Returns the value for the specified property on this provider. |
|
javax.naming.Reference |
getReference() |
|
int |
hashCode() |
|
boolean |
isWrapperFor(java.lang.Class<?> iface) |
|
static void |
registerConnectionCreator(java.lang.String subtype, ConnectionCreator creator)Registers a ConnectionCreator implementation for a new connection subtype. |
|
static void |
setClassLoaderFactory(DatabaseProviderClassLoaderFactory factory) |
|
void |
setLoginTimeout(int seconds) |
|
void |
setLogWriter(java.io.PrintWriter out) |
|
void |
setProperty(java.lang.String name, java.lang.String value)Sets the given property on this provider. |
|
|
unwrap(java.lang.Class<T> iface) |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SUBTYPE_CLASS_REFTYPE
public static final java.lang.String CUSTOM_URL_CLASS_REFTYPE
public static final java.lang.String DRIVER_CLASS_REFTYPE
public static final java.lang.String USERNAME_CLASS_REFTYPE
public static final java.lang.String PASSWORD_CLASS_REFTYPE
public static final java.lang.String ROLE_CLASS_REFTYPE
public static final java.lang.String HOSTNAME_CLASS_REFTYPE
public static final java.lang.String PORT_CLASS_REFTYPE
public static final java.lang.String SID_CLASS_REFTYPE
service name.
public static final java.lang.String DSN_CLASS_REFTYPE
public static final java.lang.String INSTANCE_CLASS_REFTYPE
public static final java.lang.String PARAMETERS_CLASS_REFTYPE
public static final java.lang.String SERVICENAME_CLASS_REFTYPE
SID.
public static final java.lang.String SAVE_PASSWORD_CLASS_REFTYPE
public static final java.lang.String DEPLOY_PASSWORD_CLASS_REFTYPE
@Deprecated
public static final java.lang.String ALL_SCHEMAS_REFTYPE
| Constructor Detail |
|---|
public DatabaseProvider()
public DatabaseProvider(java.util.Properties props)
public DatabaseProvider(java.lang.String name,
java.util.Properties props)
| Method Detail |
|---|
public javax.naming.Reference getReference()
getReference in interface javax.naming.Referenceable
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLException
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLException
public java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLException
public void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
setLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLException
public int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLException
public void setLoginTimeout(int seconds)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLException
public <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLExceptionpublic java.lang.String getProperty(java.lang.String name)
public java.util.Properties getProperties()
public void setProperty(java.lang.String name,
java.lang.String value)
public void disconnect()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
public java.lang.String getConnectionURL()
throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getDriverClassName()
throws java.sql.SQLException
java.sql.SQLExceptionpublic javax.naming.directory.Attributes getAttributes()
public static void setClassLoaderFactory(DatabaseProviderClassLoaderFactory factory)
public static void registerConnectionCreator(java.lang.String subtype,
ConnectionCreator creator)
subtype - the subtype for the connectioncreator - the creator responsible for creating connections of the given subtype.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||