|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--util.sql.test.TestClient
Test driver to test all functionality of the framework.
Usage: java util.sql.test.TestClient -cp ./sqlFramework.jar;./log4j.jar;./yourDbDriver.jar get | getAll | update | updateAll | failTransaction
Assumes: a USERS table with columns:
Constructor Summary | |
TestClient()
|
Method Summary | |
static User[] |
getAllUsers()
Get all users |
static User |
getUser(int userId)
Get a user with the given user id. |
static void |
main(java.lang.String[] args)
The test driver for the sql processor. |
static void |
updateUser(User user)
Get all users |
static void |
updateUsers(User[] users)
Update all these users. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TestClient()
Method Detail |
public static void main(java.lang.String[] args)
args
- the test commandpublic static User getUser(int userId)
userId
- the id of the user to getpublic static User[] getAllUsers()
public static void updateUser(User user)
public static void updateUsers(User[] users)
users
- the array of users to update
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |