|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.peter.db.DBAccess | +--com.peter.message.DBMessage
This class handles the queries to the Database. It is ment to be used for Message.
Constructor Summary | |
DBMessage(DBConHandler handler)
The constructor for this object |
Method Summary | |
int |
addMessage(Message message)
Adds one Message to the database. |
int |
deleteMessage(Message message)
Deleting one object from the database. |
Message[] |
getMessageFromDBM(DBMatrix dbm)
Returns an array of fetched Message from the database. |
Message[] |
getMessages()
Fetch an array of Message from the database. |
Message[] |
getMessages(Message message)
Fetch an array of Message from the database, with the same value as each variable in message has. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DBMessage(DBConHandler handler)
handler
- The handler to use for SQL-queriesMethod Detail |
public Message[] getMessageFromDBM(DBMatrix dbm)
dbm
- The DBMatrixpublic int addMessage(Message message)
Adds one Message to the database.
message
- A Messagepublic int deleteMessage(Message message)
Deleting one object from the database.
message
- A Messagepublic Message[] getMessages()
Fetch an array of Message from the database.
public Message[] getMessages(Message message)
Fetch an array of Message from the database, with the same value as each variable in message has.
message
- A Message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |