FriendshipSQLRepository

SQL implementation of the FriendshipRepository.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun close()

Close the connection to the database.

Link copied to clipboard
abstract fun connect(host: String, port: String, dbName: String, username: String, password: String)
Link copied to clipboard

Delete a friendship by its ID.

Link copied to clipboard
open override fun findAll(): Array<Friendship>

Find all friendships.

Link copied to clipboard
open override fun findAllFriendsOf(userID: User.UserID): Iterable<User>

Find all friendships of a user.

Link copied to clipboard

Find a friendship by its ID.

Link copied to clipboard
open override fun save(entity: Friendship)

Save a friendship.

Link copied to clipboard
open override fun update(entity: Friendship)

Update a friendship.