Uses of Class
org.drasyl.node.plugin.groups.manager.database.DatabaseException
Package
Description
Contains a backend (e.g.
Adapter to connect the groups manager with a JDBC-compliant database.
-
Uses of DatabaseException in org.drasyl.node.plugin.groups.manager.database
Modifier and TypeMethodDescriptionstatic void
DatabaseAdapterManager.addAdapter
(String scheme, ThrowingFunction<URI, DatabaseAdapter, DatabaseException> adapter) Modifier and TypeMethodDescriptionboolean
Adds a group to the database if it doesn't exist already.boolean
DatabaseAdapter.addGroupMember
(Membership membership) Adds or updates the givengroupMember#member
to the givengroupMember#group
.void
DatabaseAdapter.close()
Closes the connection to the database.boolean
DatabaseAdapter.deleteGroup
(String name) Deleted the group with the specifiedname
.DatabaseAdapter.deleteStaleMemberships()
Deletes all stale memberships from all groups and returns the deleted members.Returns the group with the specifiedname
ornull
if it could not be found.DatabaseAdapter.getGroupMembers
(String name) Returns the members of the groupname
as set.DatabaseAdapter.getGroups()
Lists all groups.static DatabaseAdapter
DatabaseAdapterManager.initAdapter
(URI uri) boolean
DatabaseAdapter.removeGroupMember
(IdentityPublicKey member, String groupName) Removes themember
from the givengroup
.boolean
DatabaseAdapter.updateGroup
(Group group) Updates the specifiedgroup
. -
Uses of DatabaseException in org.drasyl.node.plugin.groups.manager.database.jdbc
Modifier and TypeMethodDescriptionboolean
boolean
JDBCDatabaseAdapter.addGroupMember
(Membership membership) void
JDBCDatabaseAdapter.close()
boolean
JDBCDatabaseAdapter.deleteGroup
(String name) JDBCDatabaseAdapter.deleteStaleMemberships()
JDBCDatabaseAdapter.getGroupMembers
(String name) JDBCDatabaseAdapter.getGroups()
boolean
JDBCDatabaseAdapter.removeGroupMember
(IdentityPublicKey member, String groupName) boolean
JDBCDatabaseAdapter.updateGroup
(Group group)