Class StendhalItemDAO
java.lang.Object
games.stendhal.server.core.engine.db.StendhalItemDAO
data access object for items
- Author:
- hendrik
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
itemLogAssignIDIfNotPresent(DBTransaction transaction, RPObject item, Timestamp timestamp)
Assigns the next logid to the specified item in case it does not already have one.void
itemLogWriteEntry(DBTransaction transaction, Timestamp timestamp, int itemid, RPEntity player, String event, String param1, String param2, String param3, String param4)
writes a log entryvoid
itemLogWriteEntry(DBTransaction transaction, Timestamp timestamp, RPObject item, RPEntity player, String event, String param1, String param2, String param3, String param4)
writes a log entry
-
Field Details
-
ATTR_ITEM_LOGID
attribute name of itemid- See Also:
- Constant Field Values
-
-
Constructor Details
-
StendhalItemDAO
public StendhalItemDAO()
-
-
Method Details
-
itemLogAssignIDIfNotPresent
public void itemLogAssignIDIfNotPresent(DBTransaction transaction, RPObject item, Timestamp timestamp) throws SQLExceptionAssigns the next logid to the specified item in case it does not already have one.- Parameters:
transaction
- database transactionitem
- itemtimestamp
- 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 SQLExceptionwrites a log entry- Parameters:
transaction
- DBTransactiontimestamp
- timestampitem
- itemplayer
- player objectevent
- name of eventparam1
- param 1param2
- param 2param3
- param 3param4
- 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 SQLExceptionwrites a log entry- Parameters:
transaction
- DBTransactiontimestamp
- timestampitemid
- itemid of itemplayer
- player objectevent
- name of eventparam1
- param 1param2
- param 2param3
- param 3param4
- param 4- Throws:
SQLException
- in case of an database error
-