Interface IgnoreSQL

All Superinterfaces:
SQL
All Known Subinterfaces:
IgnoreH2, IgnoreMariaDB, IgnoreMySQL, IgnorePostgreSQL, IgnoreSQLite

public interface IgnoreSQL extends SQL
SQL interface for ignore data operations in FlectonePulse. Defines database queries for managing player ignore relationships.
Since:
0.9.0
  • Method Summary

    Modifier and Type
    Method
    Description
    findByInitiator(int initiatorId)
    Finds all active ignores by an initiator.
    findByInitiatorAndTarget(int initiatorId, int targetId)
    Finds a specific ignore relationship.
    void
    invalidate(int id)
    Invalidates an ignore relationship.
    default void
    upsert(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

      List<Ignore> findByInitiator(int initiatorId)
      Finds all active ignores by an initiator.
      Parameters:
      initiatorId - the ID of the player who is ignoring
      Returns:
      list of ignore records
    • findByInitiatorAndTarget

      Optional<Ignore> findByInitiatorAndTarget(int initiatorId, int targetId)
      Finds a specific ignore relationship.
      Parameters:
      initiatorId - the ID of the player who is ignoring
      targetId - the ID of the player being ignored
      Returns:
      optional containing the ignore record if found
    • upsert

      default void upsert(long date, int initiatorId, int targetId)
      Inserts a new ignore or reactivates an existing one.
      Parameters:
      date - the timestamp
      initiatorId - the ID of the player who is ignoring
      targetId - the ID of the player being ignored
      Throws:
      UnsupportedDatabaseOperationException - if not overridden