Class SqlStorage
java.lang.Object
me.lucko.luckperms.common.storage.implementation.sql.SqlStorage
- All Implemented Interfaces:
StorageImplementation
-
Constructor Summary
ConstructorsConstructorDescriptionSqlStorage(LuckPermsPlugin plugin, ConnectionFactory connectionFactory, String tablePrefix) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyBulkUpdate(BulkUpdate bulkUpdate) createAndLoadGroup(String name) createAndLoadTrack(String name) voiddeleteGroup(Group group) voiddeletePlayerData(UUID uniqueId) voiddeleteTrack(Track track) getLog()getMeta()getPlayerName(UUID uniqueId) getPlayerUniqueId(String username) voidinit()voidvoidvoidlogAction(net.luckperms.api.actionlog.Action entry) voidnet.luckperms.api.model.PlayerSaveResultsavePlayerData(UUID uniqueId, String username) voidvoidsearchGroupNodes(ConstraintNodeMatcher<N> constraint) searchUserNodes(ConstraintNodeMatcher<N> constraint) voidshutdown()
-
Constructor Details
-
SqlStorage
-
-
Method Details
-
getPlugin
- Specified by:
getPluginin interfaceStorageImplementation
-
getImplementationName
- Specified by:
getImplementationNamein interfaceStorageImplementation
-
getConnectionFactory
-
getStatementProcessor
-
init
- Specified by:
initin interfaceStorageImplementation- Throws:
Exception
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceStorageImplementation
-
getMeta
- Specified by:
getMetain interfaceStorageImplementation
-
logAction
- Specified by:
logActionin interfaceStorageImplementation- Throws:
SQLException
-
getLog
- Specified by:
getLogin interfaceStorageImplementation- Throws:
SQLException
-
applyBulkUpdate
- Specified by:
applyBulkUpdatein interfaceStorageImplementation- Throws:
SQLException
-
loadUser
- Specified by:
loadUserin interfaceStorageImplementation- Throws:
SQLException
-
loadUsers
- Specified by:
loadUsersin interfaceStorageImplementation- Throws:
Exception
-
saveUser
- Specified by:
saveUserin interfaceStorageImplementation- Throws:
SQLException
-
getUniqueUsers
- Specified by:
getUniqueUsersin interfaceStorageImplementation- Throws:
SQLException
-
searchUserNodes
public <N extends net.luckperms.api.node.Node> List<NodeEntry<UUID,N>> searchUserNodes(ConstraintNodeMatcher<N> constraint) throws SQLException - Specified by:
searchUserNodesin interfaceStorageImplementation- Throws:
SQLException
-
createAndLoadGroup
- Specified by:
createAndLoadGroupin interfaceStorageImplementation- Throws:
SQLException
-
loadGroup
- Specified by:
loadGroupin interfaceStorageImplementation- Throws:
SQLException
-
loadAllGroups
- Specified by:
loadAllGroupsin interfaceStorageImplementation- Throws:
SQLException
-
saveGroup
- Specified by:
saveGroupin interfaceStorageImplementation- Throws:
SQLException
-
deleteGroup
- Specified by:
deleteGroupin interfaceStorageImplementation- Throws:
SQLException
-
searchGroupNodes
public <N extends net.luckperms.api.node.Node> List<NodeEntry<String,N>> searchGroupNodes(ConstraintNodeMatcher<N> constraint) throws SQLException - Specified by:
searchGroupNodesin interfaceStorageImplementation- Throws:
SQLException
-
createAndLoadTrack
- Specified by:
createAndLoadTrackin interfaceStorageImplementation- Throws:
SQLException
-
loadTrack
- Specified by:
loadTrackin interfaceStorageImplementation- Throws:
SQLException
-
loadAllTracks
- Specified by:
loadAllTracksin interfaceStorageImplementation- Throws:
SQLException
-
saveTrack
- Specified by:
saveTrackin interfaceStorageImplementation- Throws:
SQLException
-
deleteTrack
- Specified by:
deleteTrackin interfaceStorageImplementation- Throws:
SQLException
-
savePlayerData
public net.luckperms.api.model.PlayerSaveResult savePlayerData(UUID uniqueId, String username) throws SQLException - Specified by:
savePlayerDatain interfaceStorageImplementation- Throws:
SQLException
-
deletePlayerData
- Specified by:
deletePlayerDatain interfaceStorageImplementation- Throws:
SQLException
-
getPlayerUniqueId
- Specified by:
getPlayerUniqueIdin interfaceStorageImplementation- Throws:
SQLException
-
getPlayerName
- Specified by:
getPlayerNamein interfaceStorageImplementation- Throws:
SQLException
-