Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.jdeveloper.db.adapter
Class CustomConnectionCreator

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

public class CustomConnectionCreator
extends AbstractConnectionCreator

ConnectionCreator implementation for Custom / Third Part database connections. A "custom connection" requires the URL and driver class to be set.


Field Summary
static java.lang.String SUBTYPE_THIRD_PARTY
           
 
Constructor Summary
CustomConnectionCreator()
           
 
Method Summary
protected  boolean allowNullPassword()
          Third party connections should allow null passwords as this is valid for drivers like PostGresSQL
 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, listAllowedProperties, setCustomProperties, shouldEncrypt, shouldPromptForPassword
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUBTYPE_THIRD_PARTY

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

CustomConnectionCreator

public CustomConnectionCreator()
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()
Third party connections should allow null passwords as this is valid for drivers like PostGresSQL

Overrides:
allowNullPassword in class AbstractConnectionCreator

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

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