public interface IJdbcConnectionProvider2 extends IJdbcConnectionProvider
IJdbcConnectionProvider which allows more
control on connection provider settings.| Modifier and Type | Method and Description |
|---|---|
String |
getAdditionalArgument(int index,
String s)
Returns the additional argument to be used for URL construction.
|
int |
getAdditionalArgumentCount()
Returns the number of additional arguments this provider knows about.
|
String |
getAdditionalArgumentName(int index)
Returns the name of the additional argument.
|
String[] |
getAdditionalArgumentNames()
Returns the names of additional arguments.
|
String |
getDbLogin(String s)
Returns the DB login argument to be used for URL construction.
|
String |
getDbName(String s)
Returns the DB name argument to be used for URL construction.
|
String |
getDbPassword(String s)
Returns the DB password argument to be used for URL construction.
|
String |
getDefaultAdditionalArgument(int index)
Returns the default additional argument to be used when it is disabled or actual value is empty.
|
String |
getDefaultDbLogin()
Returns the default DB login argument to be used when DB login argument is disabled or actual value is empty.
|
String |
getDefaultDbName()
Returns the default DB name argument to be used when DB name argument is disabled or actual value is empty.
|
String |
getDefaultDbPassword()
Returns the default DB password argument to be used when DB password argument is disabled or actual value is empty.
|
String |
getDefaultHost()
Returns the default host argument to be used when host argument is disabled or actual value is empty.
|
String |
getDefaultPort()
Returns the default port argument to be used when port argument is disabled or actual value is empty.
|
String |
getHost(String s)
Returns the host argument to be used for URL construction.
|
String |
getPort(String s)
Returns the port argument to be used for URL construction.
|
boolean |
isAdditionalArgumentEnabled(int index)
Returns whether additional argument is enabled.
|
boolean |
isDbLoginEnabled()
Returns whether DB login argument is enabled.
|
boolean |
isDbNameEnabled()
Returns whether DB name argument is enabled.
|
boolean |
isDbPasswordEnabled()
Returns whether DB password argument is enabled.
|
boolean |
isHostEnabled()
Returns whether host argument is enabled.
|
boolean |
isPortEnabled()
Returns whether port argument is enabled.
|
void |
setAdditionalArgument(int index,
String name,
boolean enabled,
String defaultValue)
|
void |
setAdditionalArgumentEnabled(int index,
boolean b)
Sets whether additional argument is enabled.
|
void |
setAdditionalArgumentName(int index,
String s)
Sets the name of the additional argument.
|
void |
setDbLogin(boolean enabled,
String defaultValue)
A shortcut method for
setDbLoginEnabled(boolean) and setDefaultDbLogin(String). |
void |
setDbLoginEnabled(boolean b)
Sets whether DB login argument is enabled.
|
void |
setDbName(boolean enabled,
String defaultValue)
A shortcut method for
setDbNameEnabled(boolean) and setDefaultDbName(String). |
void |
setDbNameEnabled(boolean b)
Sets whether DB name argument is enabled.
|
void |
setDbPassword(boolean enabled,
String defaultValue)
A shortcut method for
setDbPasswordEnabled(boolean) and setDefaultDbPassword(String). |
void |
setDbPasswordEnabled(boolean b)
Sets whether DB password argument is enabled.
|
void |
setDefaultAdditionalArgument(int index,
String s)
Sets the default additional argument to be used when it is disabled or actual value is empty.
|
void |
setDefaultDbLogin(String s)
Sets the default DB login argument to be used when DB login argument is disabled or actual value is empty.
|
void |
setDefaultDbName(String s)
Sets the default DB name argument to be used when DB name argument is disabled or actual value is empty.
|
void |
setDefaultDbPassword(String s)
Sets the default DB password argument to be used when DB password argument is disabled or actual value is empty.
|
void |
setDefaultHost(String s)
Sets the default host argument to be used when host argument is disabled or actual value is empty.
|
void |
setDefaultPort(String s)
Sets the default port argument to be used when port argument is disabled or actual value is empty.
|
void |
setHost(boolean enabled,
String defaultValue)
A shortcut method for
setHostEnabled(boolean) and setDefaultHost(String). |
void |
setHostEnabled(boolean b)
Sets whether host argument is enabled.
|
void |
setPort(boolean enabled,
String defaultValue)
A shortcut method for
setPortEnabled(boolean) and setDefaultPort(String). |
void |
setPortEnabled(boolean b)
Sets whether port argument is enabled.
|
getConnection, getDriverUrlString getHost(String s)
s - the string containing an actual host argumentisHostEnabled(),
setHostEnabled(boolean),
getDefaultHost(),
setDefaultHost(String)boolean isHostEnabled()
true when host argument can be passed to IJdbcConnectionProvider.getConnection(String, String, String, String, String, String...)void setHostEnabled(boolean b)
b - true when host argument can be passed to IJdbcConnectionProvider.getConnection(String, String, String, String, String, String...)void setHost(boolean enabled,
String defaultValue)
setHostEnabled(boolean) and setDefaultHost(String).enabled - whether to enable host argumentdefaultValue - the default valueString getDefaultHost()
void setDefaultHost(String s)
s - default valueString getPort(String s)
s - the string containing an actual port argumentisPortEnabled(),
setPortEnabled(boolean),
getDefaultPort(),
setDefaultPort(String)boolean isPortEnabled()
true when port argument can be passed to IJdbcConnectionProvider.getConnection(String, String, String, String, String, String...)void setPortEnabled(boolean b)
b - true when port argument can be passed to IJdbcConnectionProvider.getConnection(String, String, String, String, String, String...)void setPort(boolean enabled,
String defaultValue)
setPortEnabled(boolean) and setDefaultPort(String).enabled - whether to enable port argumentdefaultValue - the default valueString getDefaultPort()
void setDefaultPort(String s)
s - default valueString getDbName(String s)
s - the string containing an actual DB name argumentisDbNameEnabled(),
setDbNameEnabled(boolean),
getDefaultDbName(),
setDefaultDbName(String)boolean isDbNameEnabled()
true when dbName argument can be passed to IJdbcConnectionProvider.getConnection(String, String, String, String, String, String...)void setDbNameEnabled(boolean b)
b - true when dbName argument can be passed to IJdbcConnectionProvider.getConnection(String, String, String, String, String, String...)void setDbName(boolean enabled,
String defaultValue)
setDbNameEnabled(boolean) and setDefaultDbName(String).enabled - whether to enable DB name argumentdefaultValue - the default valueString getDefaultDbName()
void setDefaultDbName(String s)
s - default valueString getDbLogin(String s)
s - the string containing an actual DB login argumentisDbLoginEnabled(),
setDbLoginEnabled(boolean),
getDefaultDbLogin(),
setDefaultDbLogin(String)boolean isDbLoginEnabled()
true when dbLogin argument can be passed to IJdbcConnectionProvider.getConnection(String, String, String, String, String, String...)void setDbLoginEnabled(boolean b)
b - true when dbLogin argument can be passed to IJdbcConnectionProvider.getConnection(String, String, String, String, String, String...)void setDbLogin(boolean enabled,
String defaultValue)
setDbLoginEnabled(boolean) and setDefaultDbLogin(String).enabled - whether to enable DB login argumentdefaultValue - the default valueString getDefaultDbLogin()
void setDefaultDbLogin(String s)
s - default valueString getDbPassword(String s)
s - the string containing an actual DB password argumentisDbPasswordEnabled(),
setDbPasswordEnabled(boolean),
getDefaultDbPassword(),
setDefaultDbPassword(String)boolean isDbPasswordEnabled()
true when dbPassword argument can be passed to IJdbcConnectionProvider.getConnection(String, String, String, String, String, String...)void setDbPasswordEnabled(boolean b)
b - true when dbPassword argument can be passed to IJdbcConnectionProvider.getConnection(String, String, String, String, String, String...)void setDbPassword(boolean enabled,
String defaultValue)
setDbPasswordEnabled(boolean) and setDefaultDbPassword(String).enabled - whether to enable DB password argumentdefaultValue - the default valueString getDefaultDbPassword()
void setDefaultDbPassword(String s)
s - default valueString getAdditionalArgument(int index, String s)
index - index of additional arguments - the string containing an actual additional argumentisAdditionalArgumentEnabled(int),
setAdditionalArgumentEnabled(int, boolean),
getDefaultAdditionalArgument(int),
setDefaultAdditionalArgument(int, String)boolean isAdditionalArgumentEnabled(int index)
index - index of additional argumenttrue when additional argument can be passed to IJdbcConnectionProvider.getConnection(String, String, String, String, String, String...)void setAdditionalArgumentEnabled(int index,
boolean b)
index - index of additional argumentb - true when additional argument can be passed to IJdbcConnectionProvider.getConnection(String, String, String, String, String, String...)void setAdditionalArgument(int index,
String name,
boolean enabled,
String defaultValue)
setAdditionalArgumentEnabled(int, boolean), setAdditionalArgumentName(int, String)
and setDefaultAdditionalArgument(int, String).index - index of additional argumentenabled - whether to enable additional argumentname - name of additional argumentdefaultValue - the default valueString getDefaultAdditionalArgument(int index)
void setDefaultAdditionalArgument(int index,
String s)
s - default valueString getAdditionalArgumentName(int index)
index - index of argumentvoid setAdditionalArgumentName(int index,
String s)
index - index of arguments - name of argumentString[] getAdditionalArgumentNames()
int getAdditionalArgumentCount()
Copyright © 2014. All rights reserved.