Class SQLiteDB
java.lang.Object
com.djrapitops.plan.storage.database.AbstractDatabase
com.djrapitops.plan.storage.database.SQLDB
com.djrapitops.plan.storage.database.SQLiteDB
- All Implemented Interfaces:
Database
-
Nested Class Summary
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, driverClassLoader, errorLogger, files, locale, logger, runnableFactory
Fields inherited from class com.djrapitops.plan.storage.database.AbstractDatabase
accessLock
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
getNewConnection(File dbFile)
getType()
Used to get theDBType
of the Databaseint
hashCode()
void
returnToPool(Connection connection)
void
Set up the source for connections.Methods inherited from class com.djrapitops.plan.storage.database.SQLDB
downloadDriver, executeTransaction, getLocale, getLogger, getRunnableFactory, getServerUUIDSupplier, init, query, setDownloadDriver, setTransactionExecutorServiceProvider, shouldDropUnimportantTransactions
Methods inherited from class com.djrapitops.plan.storage.database.AbstractDatabase
assumeNoMoreHeavyLoad, getHeavyLoadDelayMs, getState, increaseHeavyLoadDelay, isUnderHeavyLoad, setState
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.djrapitops.plan.storage.database.Database
getSql, queryCollection, queryList, queryMap, queryMap, queryOptional, querySet
-
Method Details
-
getDependencyResource
- Specified by:
getDependencyResource
in classSQLDB
-
setupDataSource
public void setupDataSource()Description copied from class:SQLDB
Set up the source for connections.- Specified by:
setupDataSource
in classSQLDB
-
getNewConnection
- Throws:
SQLException
-
getType
Description copied from interface:Database
Used to get theDBType
of the Database- Returns:
- the
DBType
- See Also:
DBType
-
getConnection
- Specified by:
getConnection
in classSQLDB
- Throws:
SQLException
-
close
public void close() -
returnToPool
- Specified by:
returnToPool
in classSQLDB
-
equals
-
hashCode
public int hashCode()
-