Interface IgnoreSQL
- All Superinterfaces:
SQL
- All Known Subinterfaces:
IgnoreH2, IgnoreMariaDB, IgnoreMySQL, IgnorePostgreSQL, IgnoreSQLite
SQL interface for ignore data operations in FlectonePulse.
Defines database queries for managing player ignore relationships.
- Since:
- 0.9.0
-
Method Summary
Modifier and TypeMethodDescriptionfindByInitiator(int initiatorId) Finds all active ignores by an initiator.findByInitiatorAndTarget(int initiatorId, int targetId) Finds a specific ignore relationship.voidinvalidate(int id) Invalidates an ignore relationship.default voidupsert(long date, int initiatorId, int targetId) Inserts a new ignore or reactivates an existing one.
-
Method Details
-
invalidate
void invalidate(int id) Invalidates an ignore relationship.- Parameters:
id- the ignore ID
-
findByInitiator
-
findByInitiatorAndTarget
-
upsert
default void upsert(long date, int initiatorId, int targetId) Inserts a new ignore or reactivates an existing one.- Parameters:
date- the timestampinitiatorId- the ID of the player who is ignoringtargetId- the ID of the player being ignored- Throws:
UnsupportedDatabaseOperationException- if not overridden
-