Package com.abavilla.fpi.login.repo
Class SessionRepo
java.lang.Object
com.abavilla.fpi.fw.repo.AbsMongoRepo<Session>
com.abavilla.fpi.login.repo.SessionRepo
- All Implemented Interfaces:
com.abavilla.fpi.fw.repo.IMongoRepo<Session>,io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoRepository<Session>,io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoRepositoryBase<Session,org.bson.types.ObjectId>
Repository layer for managing the session table in DB.
- Author:
- Vince Villamora
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindByUsername(String username) Finds an existing active session by usernameMethods inherited from class com.abavilla.fpi.fw.repo.AbsMongoRepo
byId, byPageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoRepositoryBase
count, count, count, count, count, delete, delete, delete, delete, delete, deleteAll, deleteById, find, find, find, find, find, find, find, find, findAll, findAll, findById, findByIdOptional, list, list, list, list, list, list, list, list, listAll, listAll, mongoCollection, mongoDatabase, persist, persist, persist, persist, persistOrUpdate, persistOrUpdate, persistOrUpdate, persistOrUpdate, stream, stream, stream, stream, stream, stream, stream, stream, streamAll, streamAll, update, update, update, update, update, update, update, update
-
Constructor Details
-
SessionRepo
public SessionRepo()
-
-
Method Details
-
findByUsername
Finds an existing active session by username- Parameters:
username- Username to find- Returns:
- Session found
-