Class GameEventDAO

java.lang.Object
marauroa.server.game.db.GameEventDAO

public class GameEventDAO extends Object
data access object for game events
Author:
miguel, hendrik
  • Constructor Details

    • GameEventDAO

      protected GameEventDAO()
      Creates a new GameEventDAO
  • Method Details

    • addGameEvent

      @Deprecated public void addGameEvent(DBTransaction transaction, String source, String event, String... params) throws SQLException
      Deprecated.
      adds an game event to the log
      Parameters:
      transaction - DBTransaction
      source - player name
      event - event type
      params - parameters
      Throws:
      SQLException - in case of an database error
    • addGameEvent

      public void addGameEvent(DBTransaction transaction, Timestamp timestamp, String source, String event, String... params) throws SQLException
      adds an game event to the log
      Parameters:
      transaction - DBTransaction
      timestamp - timestamp
      source - player name
      event - event type
      params - parameters
      Throws:
      SQLException - in case of an database error
    • addGameEvents

      public void addGameEvents(DBTransaction transaction, List<GameEvent> gameEvents) throws SQLException
      adds an list of game event to the log
      Parameters:
      transaction - DBTransaction
      gameEvents - list of GameEvents
      Throws:
      SQLException - in case of an database error
    • addGameEvent

      @Deprecated public void addGameEvent(String source, String event, String... params)
      Deprecated.
      adds an game event to the log
      Parameters:
      source - player name
      event - event type
      params - parameters