public class CustomConnectionCreator extends AbstractConnectionCreator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SUBTYPE_THIRD_PARTY |
| Constructor and Description |
|---|
CustomConnectionCreator() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getBundle, getConnection, getInvalidURLMessage, getPropertyOrThrow, hasLength, listAllowedProperties, setCustomProperties, shouldEncrypt, shouldPromptForPasswordpublic static final java.lang.String SUBTYPE_THIRD_PARTY
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()