|
||||||||||
| 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.forum.DBForum
This class handles the queries to the Database. It is ment to be used for Forum.
| Constructor Summary | |
DBForum(DBConHandler handler)
The constructor for this object |
|
| Method Summary | |
int |
addForum(Forum forum)
Adding one Forum to the database. |
int |
deleteForum(Forum forum)
Deleting one Forum from the database. |
Forum[] |
getForumFromDBM(DBMatrix dbm)
Returns an array of fetched Objects from the database. |
Forum[] |
getForums()
Fetch an array of Topic from the database. |
Forum[] |
getForums(Forum forum)
Fetch an array of Forum from the database, with the same value as each variable in forum has. |
int |
updateForum(Forum forum)
Update one object in the database. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DBForum(DBConHandler handler)
handler - The handler to use for SQL-queries| Method Detail |
public Forum[] getForumFromDBM(DBMatrix dbm)
dbm - The DBMatrixpublic int addForum(Forum forum)
Adding one Forum to the database.
forum - A Forumpublic int deleteForum(Forum forum)
Deleting one Forum from the database.
forum - A Forumpublic int updateForum(Forum forum)
Update one object in the database.
forum - A Forumpublic Forum[] getForums()
Fetch an array of Topic from the database.
public Forum[] getForums(Forum forum)
Fetch an array of Forum from the database, with the same value as each variable in forum has.
forum - A Topic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||