public class ODBCConnectionCreator extends AbstractConnectionCreator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ODBC_DRIVER_CLASS |
static java.lang.String |
SUBTYPE_ODBC_BRIDGE |
| Constructor and Description |
|---|
ODBCConnectionCreator() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.util.Collection<java.lang.String> |
listAllowedProperties()
Gets a list of the properties that are relevant to this creator.
|
getBundle, getConnection, getInvalidURLMessage, getPropertyOrThrow, hasLength, setCustomProperties, shouldEncrypt, shouldPromptForPasswordpublic static final java.lang.String ODBC_DRIVER_CLASS
public static final java.lang.String SUBTYPE_ODBC_BRIDGE
public java.lang.String getConnectionURL(java.util.Properties props)
throws java.sql.SQLException
AbstractConnectionCreatorgetConnectionURL in interface ConnectionCreatorgetConnectionURL in class AbstractConnectionCreatorjava.sql.SQLException
public java.lang.String getDriverClassName(java.util.Properties props)
throws java.sql.SQLException
AbstractConnectionCreatorgetDriverClassName in interface ConnectionCreatorgetDriverClassName in class AbstractConnectionCreatorjava.sql.SQLExceptionprotected boolean allowNullPassword()
allowNullPassword in class AbstractConnectionCreatorAbstractConnectionCreator.listAllowedProperties()public java.util.Collection<java.lang.String> listAllowedProperties()
ConnectionCreatorlistAllowedProperties in interface ConnectionCreatorlistAllowedProperties in class AbstractConnectionCreator