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 ClassesNested 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
applicationDependencyManager, config, driverClassLoader, errorLogger, files, locale, logger, runnableFactoryFields inherited from class com.djrapitops.plan.storage.database.AbstractDatabase
accessLock -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleangetNewConnection(File dbFile) getType()Used to get theDBTypeof the DatabaseinthashCode()voidreturnToPool(Connection connection) voidSet up the source for connections.Methods inherited from class com.djrapitops.plan.storage.database.SQLDB
attemptToCloseTransactionExecutor, downloadDriver, executeTransaction, forceCloseTransactionExecutor, getLocale, getLogger, getRunnableFactory, getServerUUIDSupplier, getTransactionOrigin, getTransactionQueueSize, init, query, queryWithinTransaction, setDownloadDriver, setTransactionExecutorServiceProvider, shouldDropUnimportantTransactions, unloadDriverClassloaderMethods inherited from class com.djrapitops.plan.storage.database.AbstractDatabase
assumeNoMoreHeavyLoad, getHeavyLoadDelayMs, getState, increaseHeavyLoadDelay, isUnderHeavyLoad, setStateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.djrapitops.plan.storage.database.Database
getSql, queryCollection, queryList, queryMap, queryMap, queryOptional, querySet
-
Method Details
-
getDependencyResource
- Specified by:
getDependencyResourcein classSQLDB
-
setupDataSource
public void setupDataSource()Description copied from class:SQLDBSet up the source for connections.- Specified by:
setupDataSourcein classSQLDB
-
getNewConnection
- Throws:
SQLException
-
getType
Description copied from interface:DatabaseUsed to get theDBTypeof the Database- Returns:
- the
DBType - See Also:
-
getConnection
- Specified by:
getConnectionin classSQLDB- Throws:
SQLException
-
close
public void close() -
returnToPool
- Specified by:
returnToPoolin classSQLDB
-
equals
-
hashCode
public int hashCode()
-