01: package simpleorm.simplewebapp.eg.database;
02:
03: import simpleorm.simplewebapp.core.WPage;
04: import simpleorm.simplewebapp.core.WPagelet;
05: import simpleorm.simplewebapp.eg.dbute.WCreateDB;
06: import simpleorm.core.SConstants;
07:
08: /**
09: * The scratch init form that creates the database.
10: */
11: public class WDumpRawPage extends WPage implements SConstants {
12:
13: public final WDumpRawPage.WInitPagelet pagelet = new WDumpRawPage.WInitPagelet(
14: this );
15:
16: public static class WInitPagelet extends WPagelet {
17:
18: public WInitPagelet(WDumpRawPage page) {
19: super (page, "init");
20: }
21:
22: protected void onPreMaybeSubmitted() throws Exception {
23: WCreateDB.dumpRaw(getPage(), "RSA_USER");
24: }
25:
26: }
27: }
|