Skip navigation links 
 
oracle.jdeveloper.db.adapter
Class MySQLConnectionCreator
java.lang.Object
   oracle.jdeveloper.db.adapter.AbstractConnectionCreator
oracle.jdeveloper.db.adapter.AbstractConnectionCreator
       oracle.jdeveloper.db.adapter.MySQLConnectionCreator
oracle.jdeveloper.db.adapter.MySQLConnectionCreator
- All Implemented Interfaces:
- ConnectionCreator
- 
public class MySQLConnectionCreator
 
- extends AbstractConnectionCreator
 
  
 
  
 
| 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 java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
MYSQL_DRIVER_CLASS
public static final java.lang.String MYSQL_DRIVER_CLASS
- 
- See Also:
- Constant Field Values
 
SUBTYPE_MYSQL
public static final java.lang.String SUBTYPE_MYSQL
- 
- See Also:
- Constant Field Values
 
MySQLConnectionCreator
public MySQLConnectionCreator()
allowNullPassword
protected boolean allowNullPassword()
- Description copied from class: AbstractConnectionCreator
- Returns false by default. If overridden will allow a null password to be accepted for a connection.
- 
- Overrides:
- allowNullPasswordin class- AbstractConnectionCreator
 
getConnection
public java.sql.Connection getConnection(java.util.Properties props)
                                  throws java.sql.SQLException
- Description copied from interface: ConnectionCreator
- Creates a Connection from the given Properties. The Properties contains key/value pairs for the information required to create the connection.
- 
- Specified by:
- getConnectionin interface- ConnectionCreator
- Overrides:
- getConnectionin class- AbstractConnectionCreator
 
- 
- Parameters:
- props- the Properties containing the connection data
- Returns:
- a JDBC Connection to a database
- Throws:
- java.sql.SQLException- if the connection cannot be created because the data is wrong or the database is down.
 
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:
- getDriverClassNamein interface- ConnectionCreator
- Overrides:
- getDriverClassNamein class- AbstractConnectionCreator
 
- 
- Throws:
- java.sql.SQLException
 
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:
- getConnectionURLin interface- ConnectionCreator
- Overrides:
- getConnectionURLin class- AbstractConnectionCreator
 
- 
- Throws:
- java.sql.SQLException
 
Skip navigation links 
 
Copyright © 1997, 2015, Oracle. All rights reserved.