Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.jdeveloper.db.adapter
Class DatabaseProvider

java.lang.Object
  extended by oracle.jdeveloper.db.adapter.DatabaseProvider
All Implemented Interfaces:
oracle.adfnmc.javax.naming.Referenceable

public class DatabaseProvider
extends java.lang.Object
implements oracle.adfnmc.javax.naming.Referenceable

Connection Provider implementation for Database Connections.

Author:
jmcginni, Mark Warner (mark.warner@oracle.com)

Field Summary
static java.lang.String ALL_SCHEMAS_REFTYPE
          Deprecated. with no replacement.
static java.lang.Class CLASS_INSTANCE
           
static java.lang.String CUSTOM_URL_CLASS_REFTYPE
          The URL for the database connection.
static java.lang.String DEPLOY_PASSWORD_CLASS_REFTYPE
          Deprecated. with no replacement.
static java.lang.String DRIVER_CLASS_REFTYPE
          The JDBC driver class.
static java.lang.String DSN_CLASS_REFTYPE
          The source name of the database.
static java.lang.String HOSTNAME_CLASS_REFTYPE
          The hostname of the database machine.
static java.lang.String INSTANCE_CLASS_REFTYPE
          Deprecated. - moved to SQLServerConnectionCreator#INSTANCE_CLASS_REFTYPE. Database specific keys belong on the appropriate ConnectionCreator subclasses.
static java.lang.String PARAMETERS_CLASS_REFTYPE
          Extra parameters for the JDBC driver.
static java.lang.String PASSWORD_CLASS_REFTYPE
          The database password.
static java.lang.String PORT_CLASS_REFTYPE
          The network port the database is running on.
static java.lang.String ROLE_CLASS_REFTYPE
          The database roles to associated with the connection session.
static java.lang.String SAVE_PASSWORD_CLASS_REFTYPE
          Whether to persist the password with the connection details.
static java.lang.String SERVICENAME_CLASS_REFTYPE
          The service name of the database (Oracle).
static java.lang.String SID_CLASS_REFTYPE
          The SID name of the database (Oracle).
static java.lang.String SUBTYPE_CLASS_REFTYPE
          The subtype of the database connection.
static java.lang.String USERNAME_CLASS_REFTYPE
          The database username.
 
Constructor Summary
DatabaseProvider(oracle.adfnmc.javax.naming.Reference ref)
          Creates an empty DatabaseProvider.
DatabaseProvider(java.lang.String name, oracle.adfnmc.javax.naming.Reference ref)
          Creates a new DatabaseProvider using the given properties and with the given name.
 
Method Summary
 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.
 oracle.adfnmc.javax.naming.Reference getReference()
           
 void setProperty(java.lang.String name, java.lang.String value)
          Sets the given property on this provider.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_INSTANCE

public static final java.lang.Class CLASS_INSTANCE

SUBTYPE_CLASS_REFTYPE

public static final java.lang.String SUBTYPE_CLASS_REFTYPE
The subtype of the database connection.

See Also:
Constant Field Values

CUSTOM_URL_CLASS_REFTYPE

public static final java.lang.String CUSTOM_URL_CLASS_REFTYPE
The URL for the database connection. If set, this overrides all other properties like hostname.

See Also:
Constant Field Values

DRIVER_CLASS_REFTYPE

public static final java.lang.String DRIVER_CLASS_REFTYPE
The JDBC driver class. Some connections do not require this to be set because it is implicity from the connection subtype (e.g. Oracle)

See Also:
Constant Field Values

USERNAME_CLASS_REFTYPE

public static final java.lang.String USERNAME_CLASS_REFTYPE
The database username.

See Also:
Constant Field Values

PASSWORD_CLASS_REFTYPE

public static final java.lang.String PASSWORD_CLASS_REFTYPE
The database password.

See Also:
Constant Field Values

ROLE_CLASS_REFTYPE

public static final java.lang.String ROLE_CLASS_REFTYPE
The database roles to associated with the connection session.

See Also:
Constant Field Values

HOSTNAME_CLASS_REFTYPE

public static final java.lang.String HOSTNAME_CLASS_REFTYPE
The hostname of the database machine.

See Also:
Constant Field Values

PORT_CLASS_REFTYPE

public static final java.lang.String PORT_CLASS_REFTYPE
The network port the database is running on.

See Also:
Constant Field Values

SID_CLASS_REFTYPE

public static final java.lang.String SID_CLASS_REFTYPE
The SID name of the database (Oracle). Alternative to setting the service name.

See Also:
Constant Field Values

DSN_CLASS_REFTYPE

public static final java.lang.String DSN_CLASS_REFTYPE
The source name of the database.

See Also:
Constant Field Values

INSTANCE_CLASS_REFTYPE

public static final java.lang.String INSTANCE_CLASS_REFTYPE
Deprecated. - moved to SQLServerConnectionCreator#INSTANCE_CLASS_REFTYPE. Database specific keys belong on the appropriate ConnectionCreator subclasses.
The instance name of the database. ( Used by SQLServer )

See Also:
Constant Field Values

PARAMETERS_CLASS_REFTYPE

public static final java.lang.String PARAMETERS_CLASS_REFTYPE
Extra parameters for the JDBC driver.

See Also:
Constant Field Values

SERVICENAME_CLASS_REFTYPE

public static final java.lang.String SERVICENAME_CLASS_REFTYPE
The service name of the database (Oracle). Alternative to setting the SID.

See Also:
Constant Field Values

SAVE_PASSWORD_CLASS_REFTYPE

public static final java.lang.String SAVE_PASSWORD_CLASS_REFTYPE
Whether to persist the password with the connection details. If false a password prompter will be used to prompt for the password (DT only).

See Also:
Constant Field Values

DEPLOY_PASSWORD_CLASS_REFTYPE

public static final java.lang.String DEPLOY_PASSWORD_CLASS_REFTYPE
Deprecated. with no replacement.
Whether to deploy the password to the runtime with the rest of the connection details.

See Also:
Constant Field Values

ALL_SCHEMAS_REFTYPE

public static final java.lang.String ALL_SCHEMAS_REFTYPE
Deprecated. with no replacement.
Want to get rid of this property. Multiple schemas should be treated in the same way as all the other navs.

See Also:
Constant Field Values
Constructor Detail

DatabaseProvider

public DatabaseProvider(oracle.adfnmc.javax.naming.Reference ref)
Creates an empty DatabaseProvider.


DatabaseProvider

public DatabaseProvider(java.lang.String name,
                        oracle.adfnmc.javax.naming.Reference ref)
Creates a new DatabaseProvider using the given properties and with the given name.

Method Detail

getReference

public oracle.adfnmc.javax.naming.Reference getReference()
Specified by:
getReference in interface oracle.adfnmc.javax.naming.Referenceable

getProperty

public java.lang.String getProperty(java.lang.String name)
Returns the value for the specified property on this provider.


getProperties

public Properties getProperties()
Returns a copy of the underlying properties for this provider.


setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Sets the given property on this provider.


Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.