All Packages Class Hierarchy This Package Previous Next Index
Class w3c.pics.db.SimpleJDBC
java.lang.Object
|
+----w3c.pics.db.SimpleJDBC
- public class SimpleJDBC
- extends Object
A database implementation. It uses JDBC and the JDBC-ODBC bridge to
communicate with a SQL server.
-
SimpleJDBC()
-
-
main(String[])
- Creates and runs a SimpleJDBC database.
SimpleJDBC
public SimpleJDBC()
main
public static void main(String args[])
- Creates and runs a SimpleJDBC database.
It takes the following command-line arguments:
- -ratfile -- When the -ratfile flag is present, the next argument will
be read as the full pathname to a .rat file. This ratfile will be used
to generate sample labels and profiles for use by the database.
- -basename -- When the -basename flag is present, the next argument
will be read as a string. It will be used as the base name for the
profiles that are generated for use by the database.
- -rulzcount -- When the -rulzcount flag is present, the next argument
will be read as an integer. This number will be used as the number of
random profiles to generate and store in the database.
- -labelcount -- When the -labelcount flag is present, the next
argument will be read as an integer. This number will be used as the
number of random labels to generate and run against the database.
- -quiet -- This flag will suppress most debugging output, except for
output that has its own flags (see below).
- -listconnects -- When the -listconnects flag is present, a message
will be printed out every time the program sends an SQL command.
- -warn -- When this flag is present, SQL warnings will be printed out.
- -showodbc -- When this flag is present, ODBC messages will be printed
out.
- -disptype -- When the disptype flag is present, the types of returned
data from the SQL server will be printed out.
- -showprof -- When the -showprof flag is present, the list of
profiles that potentially match a label will be printed as the list is
constructed and trimmed down.
- -showchecks -- When the -showchecks flag is present, output is
generated while the labels are being checked against the profiles.
- -nobatch -- When the -nobatch flag is present queries will be sent
serially to the SQL server rather than in batches.
- -showfailpass -- When this flag is present, whenever a profile
passes/fails a label because of its pass/fail URL lists, a special output
message will appear.
- -skipinit -- When the -skipinit flag is present, no random labels or
random profiles will be created, and no database actions will be taken
before the program's command prompt appears.
- -skippush -- When the -skippush flag is present, no HTML files
will be generated with the results of the label/profile comparisions.
- -newmode -- When this flag is present, the newmode code will be
used instead of the normal database code. Newmode used multiple
FilterTables to process labels against profiles rather than processing
them on the Java side.
- -nouseall -- When this flag is present, the profiles and labels
created and used by the SimpleJDBC will not necessarily use every
category from every service. Categories may be omitted.
- -newparser -- When the -newparser flag is present, the javacc
generated parsers for PICSRulz will be used rather than the hand-made
parsers.
- -multirat -- When the -multirat flag is present, the next argument
will be read as a comma-seperated list of full pathnames for .rat files.
These ratfiles will be used in the generated profiles and labels.
Once the program has started it will build a database and, depending on
the command-line arguments, run it against an initial label set. After
this, the command prompt will appear. The following commands are
available (this information is identical to what appears when the help
command is issued):
- add labels: Runs more labels against the database
- add profiles: Adds more profiles to the database
- help: Shows this help info
- print VCS: prints out the VCS table
- purge all: Resets the entire push queue
- purge user: Resets a user's push queue
- push user: Pushes an HTML file for a single user
- quit: Quits the program
All Packages Class Hierarchy This Package Previous Next Index