|
||||||||||
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.topic.DBTopic
This class handles the queries to the Database. It is ment to be used for Topic.
Constructor Summary | |
DBTopic(DBConHandler handler)
The constructor for this object |
Method Summary | |
int |
addTopic(Topic topic)
Adds one Topic to the database. |
int |
deleteTopic(Topic topic)
Deleting one object from the database. |
Topic[] |
getTopics()
Fetch an array of Topics from the database. |
Topic[] |
getTopics(Topic topic)
Fetch an array of Topics from the database, with the same value as each variable in Topics topic has. |
Topic[] |
getTopicsFromDBM(DBMatrix dbm)
Returns an array of fetched Topics from the database. |
int |
updateTopic(Topic topic)
Updates one Topic to the database. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DBTopic(DBConHandler handler)
handler
- The handler to use for SQL-queriesMethod Detail |
public Topic[] getTopicsFromDBM(DBMatrix dbm)
dbm
- The DBMatrixpublic int addTopic(Topic topic)
Adds one Topic to the database.
topic
- A Topicpublic int deleteTopic(Topic topic)
Deleting one object from the database.
topic
- A Topicpublic int updateTopic(Topic topic)
Updates one Topic to the database.
topic
- A Topicpublic Topic[] getTopics()
Fetch an array of Topics from the database.
public Topic[] getTopics(Topic topic)
Fetch an array of Topics from the database, with the same value as each variable in Topics topic has.
topic
- A Topic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |