Package marauroa.server.game.db
Class GameEventDAO
java.lang.Object
marauroa.server.game.db.GameEventDAO
data access object for game events
- Author:
- miguel, hendrik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGameEvent(String source, String event, String... params)
Deprecated.void
addGameEvent(DBTransaction transaction, String source, String event, String... params)
Deprecated.void
addGameEvent(DBTransaction transaction, Timestamp timestamp, String source, String event, String... params)
adds an game event to the logvoid
addGameEvents(DBTransaction transaction, List<GameEvent> gameEvents)
adds an list of game event to the log
-
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 SQLExceptionDeprecated.adds an game event to the log- Parameters:
transaction
- DBTransactionsource
- player nameevent
- event typeparams
- parameters- Throws:
SQLException
- in case of an database error
-
addGameEvent
public void addGameEvent(DBTransaction transaction, Timestamp timestamp, String source, String event, String... params) throws SQLExceptionadds an game event to the log- Parameters:
transaction
- DBTransactiontimestamp
- timestampsource
- player nameevent
- event typeparams
- parameters- Throws:
SQLException
- in case of an database error
-
addGameEvents
public void addGameEvents(DBTransaction transaction, List<GameEvent> gameEvents) throws SQLExceptionadds an list of game event to the log- Parameters:
transaction
- DBTransactiongameEvents
- list of GameEvents- Throws:
SQLException
- in case of an database error
-
addGameEvent
Deprecated.adds an game event to the log- Parameters:
source
- player nameevent
- event typeparams
- parameters
-