|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.db.adapter.AbstractConnectionCreator oracle.jdeveloper.db.adapter.MySQLConnectionCreator
public class MySQLConnectionCreator
Field Summary | |
---|---|
static java.lang.String |
MYSQL_DRIVER_CLASS
|
static java.lang.String |
SUBTYPE_MYSQL
|
Constructor Summary | |
---|---|
MySQLConnectionCreator()
|
Method Summary | |
---|---|
protected boolean |
allowNullPassword()
Returns false by default. |
java.sql.Connection |
getConnection(java.util.Properties props)
Creates a Connection from the given Properties. |
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, 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 |
---|
public static final java.lang.String MYSQL_DRIVER_CLASS
public static final java.lang.String SUBTYPE_MYSQL
Constructor Detail |
---|
public MySQLConnectionCreator()
Method Detail |
---|
protected boolean allowNullPassword()
AbstractConnectionCreator
allowNullPassword
in class AbstractConnectionCreator
public java.sql.Connection getConnection(java.util.Properties props) throws java.sql.SQLException
ConnectionCreator
getConnection
in interface ConnectionCreator
getConnection
in class AbstractConnectionCreator
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.public java.lang.String getDriverClassName(java.util.Properties props) throws java.sql.SQLException
AbstractConnectionCreator
getDriverClassName
in interface ConnectionCreator
getDriverClassName
in class AbstractConnectionCreator
java.sql.SQLException
public java.lang.String getConnectionURL(java.util.Properties props) throws java.sql.SQLException
AbstractConnectionCreator
getConnectionURL
in interface ConnectionCreator
getConnectionURL
in class AbstractConnectionCreator
java.sql.SQLException
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |