|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.tmaj.servlet.request.impl.InitDatabaseRequest
public final class InitDatabaseRequest
This class allows the user to fill the database with sample data and a default user account when they are setting up the application for the first time, rather than having to run a platform-dependent database script separately. The exact INSERT statements are hard-coded, and only executed if the table they run on is empty at the time the request is made.
Constructor Summary | |
---|---|
InitDatabaseRequest()
|
Method Summary | |
---|---|
CommandResponse |
executeCommand()
Executes code on the server side that queries the database, and returns a ServerResponse. |
java.lang.String |
getPassword()
This method should not be needed for this request. |
java.lang.String |
getUsername()
This method should not be needed for this request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InitDatabaseRequest()
Method Detail |
---|
public CommandResponse executeCommand()
CommandRequest
executeCommand
in interface CommandRequest
public final java.lang.String getUsername()
getUsername
in interface CommandRequest
public final java.lang.String getPassword()
getPassword
in interface CommandRequest
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |