Admin runs with JDK 1.7 or higher.
As well as you need a RDBMS and a JDBC-Driver, see the Tested with section.
You need to add the following libraries to your CLASSPATH
The windows you seen in Admin mostly are able to run standalone. This classes will display the requested
paramters, so they can be launched as standalone. What they always need is HOST, USER, PASSWORD and DATABASE
and you can give a SCHEMA over, if not it is handled as %.
There are some classes asking for parameters being told to you by calling without parameters. So if needed,
you will get a screen like this:
hulmen% java gpl.fredy.generate.GenerateXML Fredy's Generate XML -------------------- Generates a XML-file out of the MetaData of a Database The primary use of this XML-file is to generate Java-Code Just feed this file into the GenerateForm to get all of it. Syntax: GenerateXML -h host [default: localhost] -u user [default: afs] -p password -s schema [default: %] -d database -t table [default: %] -f file [default: /export/home/afs/database.xml] -v verbose -help this screen
This file is generated automatically at the first start of admin. It is placed in the
directory read from the system-properties user.home. So you are able to change it by
changine this property by passing over the parameter -Duser.home=
-Dadmin.work=
This file is pretty much the same as admin.props, but only contains the DB-related information as it is needed for the t_connect.class that creates the connection to the DB. There are the same parameters valid as for admin.props. So if you generate a application with admin, you only need to have t_connect.props for launching this application.
This file only contains one line to tell the selection-tool where to find its files
This file is specific for admin only. It has to exist for the log-in dialog, because the JDBC-Driver-ComboBox is generated out of it and it contains the JDBC-Driver information. So best place to have this is the directory where admin is located. If this file is not found or not existing, admin will present a error-message.
Store this file under gpl/fredy/share
rdbms.dat is used to make the selection of different JDBC-Drivers easier and its structure
is as follows:
Best thing is, to create a own directory, let's name it ./java. Then unpack admin in this directory.
It will create the tree:
If all is set, you launch it by java gpl.fredy.admin.Admin...
There is two parameters you can add to the JVM while starting admin:
user.home | The directory admin uses to read/write its config files admin.props and t_connect.props |
admin.image | Where admin is going to fetch its images from. This can be at three generic places
|
Standard Form | java gpl.fredy.admin.Admin |
Different Images Directory | java -Dadmin.image=/export/home/java/images gpl.fredy.admin.Admin |
Images via http from other place | java -Dadmin.image=http://gotzenwil.eidberg.ch/admin/images gpl.fredy.admin.Admin |
The purpose of the data selection tool is, to provide a simple data drilling tool. Find the description of this tool here.
To run the Code Generator you must have JDOM in a minimal of beta 8 in your CLASSPATH and if yo uplan to use the XML-Editor you need to add as well Martin Newstead's MSeries to the CLASSPATH.
Have a closer look at the documentation or get first a quick introduction here:
This generator does three files:
The name of that class is
As well as there is a searchAll-method. These searchXXX-methods are of type xxxRow. All
searchBy{FieldName}-mathods are as follows:
public String searchBy(String,boolean)
Where String is the searchpattern and the boolean is to do a search as follows:
true = exact search (e.g. search * from table where field =
false= use wildcards (e.g. search * from table where field like
The name of that class is
java -Duser.home={userhome} applications.{DB-Name}.{TableName}Formd -h host -u user -p password
The name of this class is
To generate the code first there is to build a XML-file containing all the information for the
code-generator. This XML-File can be customized to create the Swing-GUI of a table other than standard.
The file-dependencies are as follows:
Wrapperfile | Swing GUI |
applications.[DATABASENAME].[TABLENAME]Row.java | applications.[DATABASENAME].[TABLENAME]Form.java |
applications.basics.BasicWrapper.java | applications.basics.BasicGrid.java |
JTableModel |   |
applications.basics.GenericTableModel.java | |
applications.[DATABASENAME].[TABLENAME]TableModel.java |
The XMLEditor is to edit the XML-File for the Swing-GUI. You need to have Martin Newstead's MSeries into your CLASSPATH. Be aware of the two different versions that exist now, one for JDK below 1.4 and one for JDK 1.4 and higher.
The SQL-output always allows to export the result into a csv-file, see the SQL-Monitor and the guided query.
So this file can easily be imported into other DBMS or into a spreadsheet like StarCalc from StarOffice.
Admin as well allows to import such a file under [Tools][Import Delimiter File]. If you tick the use Header
Check-box the insertion will be done according the fields of the header.
Admin offers a dynamic form (AutoForm.class), that allows dynamic entry of data into a table. It does not verify the input. If a entry is rejected by the RDBMS, this will result into a error-box. The find-button lists the content of the table and it can be transfered into the grid by clicking on a row.
The guided query (Qbe.class) can be used to generate a SQL-statement over a table. You select the desired table by a double click in the table tab, as Qbe needs to gatter meta-data-info of the table to construct the other tabs, this will take a moment. Qbe indicates its readiness by displaying the name of the requested table in the status line. In the columns tab you select the columns to be displayed within the query result. In the conditions tab you can enter the conditions of each row of the table As this is done, proceed to the query-tab and press the generate query button. Then the only thing to be done is to execute the generated query.
Send me a an Email.
You need to have the following libraries into your CLASSPATH
Be careful while selecting the SCHEMA. A wrong schema setting will end into either not finding any table or finding a lot. As example for the scott/tiger internal example I made best experience with SCOTT as a schema-name. but I'm absolutely not a ORACLE-specialist, so any hint into this direction is highly welcome.
-GUI | displays logrecord in a GUI and to the Log as defined in logging.properties default is not set |
-GUIONLY | sets GUI and only logs to the GUI, this value is not set by default |
-p | the port SLS is listening, default value is 5237 |
-c value | this is the number of lines maximum displayed
within the GUI. if this number exceeds, the upper half of the log is deleted default value is 4096 |
handlers= java.util.logging.SocketHandler .level= ALL java.util.logging.SocketHandler.formatter = java.util.logging.FxmlFormatter java.util.logging.SocketHandler.level = ALL java.util.logging.SocketHandler.host = localhost java.util.logging.SocketHandler.port = 5237