Class EventsRepository
java.lang.Object
it.polimi.ingsw.server.repository.EventsRepository
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Connectionprivate static final io.github.cdimascio.dotenv.Dotenvprivate static EventsRepository -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidgenerateSnapshot(Aggregate aggregate) getAggregateType(UUID uuid) static EventsRepositorygetSnapshot(UUID aggregateID) voidvoidstoreAggregate(UUID uuid, String aggregateClass)
-
Field Details
-
c
-
instance
-
dotenv
private static final io.github.cdimascio.dotenv.Dotenv dotenv
-
-
Constructor Details
-
EventsRepository
- Throws:
DBNotFoundException
-
-
Method Details
-
getInstance
- Throws:
DBNotFoundException
-
rollback
- Throws:
DBQueryException
-
storeAggregate
- Throws:
SQLException
-
generateSnapshot
- Throws:
DBQueryException
-
getAggregateType
- Throws:
DBQueryException
-
addEvent
- Throws:
DBQueryException
-
getEvents
- Throws:
DBQueryException
-
getSnapshot
- Throws:
DBQueryException
-