Class SqliteConnectionFactory
java.lang.Object
me.lucko.luckperms.common.storage.implementation.sql.connection.file.SqliteConnectionFactory
- All Implemented Interfaces:
ConnectionFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ConnectioncreateConnection(Path file) Creates a connection to the database.getMeta()protected PathGets the path of the file the database driver actually ends up writing to.voidinit(LuckPermsPlugin plugin) protected voidmigrateOldDatabaseFile(String oldName) voidshutdown()
-
Constructor Details
-
SqliteConnectionFactory
-
-
Method Details
-
getImplementationName
-
init
-
createConnection
Creates a connection to the database.- Parameters:
file- the database file- Returns:
- the connection
- Throws:
SQLException- if any error occurs
-
getStatementProcessor
-
getConnection
- Specified by:
getConnectionin interfaceConnectionFactory- Throws:
SQLException
-
shutdown
- Specified by:
shutdownin interfaceConnectionFactory- Throws:
Exception
-
getWriteFile
Gets the path of the file the database driver actually ends up writing to.- Returns:
- the write file
-
migrateOldDatabaseFile
-
getMeta
- Specified by:
getMetain interfaceConnectionFactory
-