Package de.chojo.sqlutil.jdbc
Class MySQLJdbc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> MySQLJdbcaddParameter(String key, V value) Add a new parameter to the urlconnectTimeout(int millis) The connect timeout value, in milliseconds, or zero for no timeout.protected StringReturns the full path of the driver classdriver()Returns the driver name of the jdbc urlMethods inherited from class de.chojo.sqlutil.jdbc.RemoteJdbcConfig
baseUrl, database, host, ipv4, ipv6, localhost, login, password, port, port, userMethods inherited from class de.chojo.sqlutil.jdbc.JdbcConfig
driverClass, jdbcUrl, parameter, self, setDriverClass, setDriverClass, setDriverClass
-
Constructor Details
-
MySQLJdbc
public MySQLJdbc()
-
-
Method Details
-
driver
Description copied from class:JdbcConfigReturns the driver name of the jdbc url- Specified by:
driverin classJdbcConfig<MySQLJdbc>- Returns:
- driver
-
connectTimeout
The connect timeout value, in milliseconds, or zero for no timeout. Default: 0.- Parameters:
millis- milliseconds- Returns:
- builder instance
-
defaultDriverClass
Description copied from class:JdbcConfigReturns the full path of the driver class- Specified by:
defaultDriverClassin classJdbcConfig<MySQLJdbc>- Returns:
- driver class
-
addParameter
Add a new parameter to the url- Overrides:
addParameterin classJdbcConfig<MySQLJdbc>- Type Parameters:
V- value type- Parameters:
key- keyvalue- value- Returns:
- builder instance
- See Also:
-