Package de.chojo.sqlutil.jdbc
Class SqLiteJdbc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> SqLiteJdbcaddParameter(String key, V value) Add a new parameter to the urlprotected StringbaseUrl()Returns the base url without parameterprotected StringReturns the full path of the driver classdriver()Returns the driver name of the jdbc urlmemory()Sets the database to in-memory mode.Set the path of the db fileSet the path of the db fileSet the path of the db fileMethods inherited from class de.chojo.sqlutil.jdbc.JdbcConfig
driverClass, jdbcUrl, parameter, self, setDriverClass, setDriverClass, setDriverClass
-
Constructor Details
-
SqLiteJdbc
public SqLiteJdbc()
-
-
Method Details
-
memory
Sets the database to in-memory mode.This is the default setting.
- Returns:
- builder instance
-
path
Set the path of the db file- Parameters:
file- file- Returns:
- builder instance
-
path
Set the path of the db file- Parameters:
path- path- Returns:
- builder instance
-
path
Set the path of the db file- Parameters:
path- path- Returns:
- builder instance
-
defaultDriverClass
Description copied from class:JdbcConfigReturns the full path of the driver class- Specified by:
defaultDriverClassin classJdbcConfig<SqLiteJdbc>- Returns:
- driver class
-
driver
Description copied from class:JdbcConfigReturns the driver name of the jdbc url- Specified by:
driverin classJdbcConfig<SqLiteJdbc>- Returns:
- driver
-
addParameter
Add a new parameter to the url- Overrides:
addParameterin classJdbcConfig<SqLiteJdbc>- Type Parameters:
V- value type- Parameters:
key- keyvalue- value- Returns:
- builder instance
- See Also:
-
baseUrl
Description copied from class:JdbcConfigReturns the base url without parameter- Specified by:
baseUrlin classJdbcConfig<SqLiteJdbc>- Returns:
- base url
-