Class AbstractLogItemEventCommand
java.lang.Object
marauroa.server.db.command.AbstractDBCommand
games.stendhal.server.core.engine.dbcommand.AbstractLogItemEventCommand
- All Implemented Interfaces:
DBCommand
- Direct Known Subclasses:
LogMergeItemEventCommand
,LogSimpleItemEventCommand
,LogSplitItemEventCommand
base class for item logging
- Author:
- hendrik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute(DBTransaction transaction)
processes the database request.protected String
getQuantity(RPObject item)
gets the quantity from an item; correctly handles non stackable itemsprotected abstract void
log(DBTransaction transaction)
logs the event to the database.Methods inherited from class marauroa.server.db.command.AbstractDBCommand
getEnqueueTime, getException, setEnqueueTime, setException
-
Constructor Details
-
AbstractLogItemEventCommand
public AbstractLogItemEventCommand()
-
-
Method Details
-
execute
Description copied from class:AbstractDBCommand
processes the database request.- Specified by:
execute
in interfaceDBCommand
- Specified by:
execute
in classAbstractDBCommand
- Parameters:
transaction
- DBTransaction- Throws:
SQLException
- in case of an database error
-
log
logs the event to the database.- Parameters:
transaction
- DBTransaction- Throws:
SQLException
- in case of an database error
-
getQuantity
gets the quantity from an item; correctly handles non stackable items- Parameters:
item
- Item- Returns:
- quantity
-