Class StendhalItemDAO

java.lang.Object
games.stendhal.server.core.engine.db.StendhalItemDAO

public class StendhalItemDAO extends Object
data access object for items
Author:
hendrik
  • Field Details

  • Constructor Details

    • StendhalItemDAO

      public StendhalItemDAO()
  • Method Details

    • itemLogAssignIDIfNotPresent

      public void itemLogAssignIDIfNotPresent(DBTransaction transaction, RPObject item, Timestamp timestamp) throws SQLException
      Assigns the next logid to the specified item in case it does not already have one.
      Parameters:
      transaction - database transaction
      item - item
      timestamp - timestamp
      Throws:
      SQLException - in case of a database error
    • itemLogWriteEntry

      public void itemLogWriteEntry(DBTransaction transaction, Timestamp timestamp, RPObject item, RPEntity player, String event, String param1, String param2, String param3, String param4) throws SQLException
      writes a log entry
      Parameters:
      transaction - DBTransaction
      timestamp - timestamp
      item - item
      player - player object
      event - name of event
      param1 - param 1
      param2 - param 2
      param3 - param 3
      param4 - param 4
      Throws:
      SQLException - in case of an database error
    • itemLogWriteEntry

      public void itemLogWriteEntry(DBTransaction transaction, Timestamp timestamp, int itemid, RPEntity player, String event, String param1, String param2, String param3, String param4) throws SQLException
      writes a log entry
      Parameters:
      transaction - DBTransaction
      timestamp - timestamp
      itemid - itemid of item
      player - player object
      event - name of event
      param1 - param 1
      param2 - param 2
      param3 - param 3
      param4 - param 4
      Throws:
      SQLException - in case of an database error