|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionCreator
Creator for the DatabaseProvider to create a Connection given the key/value pairs accessible through the Properties class. A ConnectionCreator can be registered against the DatabaseProvider to provide support for more than the default set of jdbc connection types.
Method Summary | |
---|---|
java.sql.Connection |
getConnection(java.util.Properties props)
Creates a Connection from the given Properties. |
java.lang.String |
getConnectionURL(java.util.Properties props)
Returns the URL for the connection. |
java.lang.String |
getDriverClassName(java.util.Properties props)
Returns the driver class for the connection. |
boolean |
shouldEncrypt(java.lang.String propName)
Indicates to the core getReference() logic whether a given property name should be encrypted when persisting or not. |
boolean |
shouldPromptForPassword(java.util.Properties props)
Indicates wether the password prompter should be invoked (when available) for the given connection properties. |
Method Detail |
---|
java.sql.Connection getConnection(java.util.Properties props) throws java.sql.SQLException
props
- the Properties containing the connection data
java.sql.SQLException
- if the connection cannot be created because the data
is wrong or the database is down.java.lang.String getConnectionURL(java.util.Properties props) throws java.sql.SQLException
java.sql.SQLException
java.lang.String getDriverClassName(java.util.Properties props) throws java.sql.SQLException
java.sql.SQLException
boolean shouldEncrypt(java.lang.String propName)
boolean shouldPromptForPassword(java.util.Properties props)
props
- the connection details that might need a password prompted for
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |