Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.jdeveloper.db.adapter
Class ODBCConnectionCreator

java.lang.Object
  extended by oracle.jdeveloper.db.adapter.AbstractConnectionCreator
      extended by oracle.jdeveloper.db.adapter.ODBCConnectionCreator
All Implemented Interfaces:
ConnectionCreator

public class ODBCConnectionCreator
extends AbstractConnectionCreator

ConnectionCreator implementation for connections that use the JDBC-ODBC bridge. The DSN name is the only required property.


Field Summary
static java.lang.String ODBC_DRIVER_CLASS
           
static java.lang.String SUBTYPE_ODBC_BRIDGE
           
 
Constructor Summary
ODBCConnectionCreator()
           
 
Method Summary
protected  boolean allowNullPassword()
          ODBC-JDBC connections should allow null passwords as this is valid for drivers like PostGresSQL, and we can't connect to them via the bridge if we force a password.
 java.lang.String getConnectionURL(java.util.Properties props)
          The default implementation on this abstract class return the DatabaseProvider.DRIVER_CLASS_REFTYPE property.
 java.lang.String getDriverClassName(java.util.Properties props)
          The default implementation on this class returns the DatabaseProvider.CUSTOM_URL_CLASS_REFTYPE property.
 
Methods inherited from class oracle.jdeveloper.db.adapter.AbstractConnectionCreator
getBundle, getConnection, getPropertyOrThrow, hasLength, setCustomProperties, shouldEncrypt, shouldPromptForPassword
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ODBC_DRIVER_CLASS

public static final java.lang.String ODBC_DRIVER_CLASS
See Also:
Constant Field Values

SUBTYPE_ODBC_BRIDGE

public static final java.lang.String SUBTYPE_ODBC_BRIDGE
See Also:
Constant Field Values
Constructor Detail

ODBCConnectionCreator

public ODBCConnectionCreator()
Method Detail

getConnectionURL

public java.lang.String getConnectionURL(java.util.Properties props)
                                  throws java.sql.SQLException
Description copied from class: AbstractConnectionCreator
The default implementation on this abstract class return the DatabaseProvider.DRIVER_CLASS_REFTYPE property. Override as appropriate.

Specified by:
getConnectionURL in interface ConnectionCreator
Overrides:
getConnectionURL in class AbstractConnectionCreator
Throws:
java.sql.SQLException

getDriverClassName

public java.lang.String getDriverClassName(java.util.Properties props)
                                    throws java.sql.SQLException
Description copied from class: AbstractConnectionCreator
The default implementation on this class returns the DatabaseProvider.CUSTOM_URL_CLASS_REFTYPE property. Override as appropraite.

Specified by:
getDriverClassName in interface ConnectionCreator
Overrides:
getDriverClassName in class AbstractConnectionCreator
Throws:
java.sql.SQLException

allowNullPassword

protected boolean allowNullPassword()
ODBC-JDBC connections should allow null passwords as this is valid for drivers like PostGresSQL, and we can't connect to them via the bridge if we force a password.

Overrides:
allowNullPassword in class AbstractConnectionCreator

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.