Class SQLiteDB
- java.lang.Object
-
- com.djrapitops.plan.storage.database.AbstractDatabase
-
- com.djrapitops.plan.storage.database.SQLDB
-
- com.djrapitops.plan.storage.database.SQLiteDB
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SQLiteDB.Factory
-
Nested classes/interfaces inherited from interface com.djrapitops.plan.storage.database.Database
Database.State
-
-
Field Summary
-
Fields inherited from class com.djrapitops.plan.storage.database.SQLDB
config, errorLogger, locale, logger, runnableFactory
-
Fields inherited from class com.djrapitops.plan.storage.database.AbstractDatabase
accessLock
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
equals(java.lang.Object o)
java.sql.Connection
getConnection()
java.sql.Connection
getNewConnection(java.io.File dbFile)
DBType
getType()
Used to get theDBType
of the Databaseint
hashCode()
void
returnToPool(java.sql.Connection connection)
void
setupDataSource()
Set up the source for connections.-
Methods inherited from class com.djrapitops.plan.storage.database.SQLDB
executeTransaction, getLogger, getRunnableFactory, getServerUUIDSupplier, init, query, setTransactionExecutorServiceProvider
-
Methods inherited from class com.djrapitops.plan.storage.database.AbstractDatabase
assumeNoMoreHeavyLoad, getHeavyLoadDelayMs, getState, increaseHeavyLoadDelay, isUnderHeavyLoad, setState
-
-
-
-
Method Detail
-
setupDataSource
public void setupDataSource()
Description copied from class:SQLDB
Set up the source for connections.- Specified by:
setupDataSource
in classSQLDB
-
getNewConnection
public java.sql.Connection getNewConnection(java.io.File dbFile) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getType
public DBType getType()
Description copied from interface:Database
Used to get theDBType
of the Database- Returns:
- the
DBType
- See Also:
DBType
-
getConnection
public java.sql.Connection getConnection() throws java.sql.SQLException
- Specified by:
getConnection
in classSQLDB
- Throws:
java.sql.SQLException
-
returnToPool
public void returnToPool(java.sql.Connection connection)
- Specified by:
returnToPool
in classSQLDB
-
-