|
||||||||||
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.user.DBUser
This class handles the queries to the Database. It is ment to be used for Message.
Constructor Summary | |
DBUser(DBConHandler handler)
The constructor for this object |
Method Summary | |
int |
addUser(User user)
Adds one User to the database. |
int |
deleteUser(User user)
Deleting one object from the database. |
User[] |
getUserFromDBM(DBMatrix dbm)
Returns an array of fetched User from the database. |
User[] |
getUsers()
Fetch an array of User from the database. |
User[] |
getUsers(User user)
Fetch an array of User from the database, with the same value as each variable in user has. |
int |
updateUser(User user)
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 DBUser(DBConHandler handler)
handler
- The handler to use for SQL-queriesMethod Detail |
public User[] getUserFromDBM(DBMatrix dbm)
dbm
- The DBMatrixpublic int addUser(User user)
Adds one User to the database.
user
- A Userpublic int deleteUser(User user)
Deleting one object from the database.
user
- A Userpublic int updateUser(User user)
Update one object in the database.
user
- A Userpublic User[] getUsers()
Fetch an array of User from the database.
public User[] getUsers(User user)
Fetch an array of User from the database, with the same value as each variable in user has.
user
- A User
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |