public class CreateDBTables extends JApplet
JApplet.AccessibleJApplet
Applet.AccessibleApplet
Panel.AccessibleAWTPanel
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
(package private) static String |
adminEmail |
(package private) static String |
adminEmailURL |
(package private) Connection |
con |
private static String[] |
dbBrandName |
(package private) static int |
dbIndex |
private static String[] |
dbName |
private static String[] |
dbServerName |
private static String[] |
dbServerPort |
private static String[] |
dbURL |
private static String[] |
dbUserId |
private static String[] |
dbUserPassword |
(package private) static boolean |
DEBUG |
(package private) boolean |
dropTable
A flag to specify if the DROP command was specified on the commandline.
|
(package private) boolean |
fileArgFlag
A flag to specify if the f command was specified on the commandline.
|
(package private) static String |
fileErrorMsg |
(package private) FileReader |
fileReader
Input
File to read in the formname/dbtablecolumnname at
runtime. |
(package private) static String[] |
inArgs
Description of the Field
|
(package private) String |
inFileName
The filename that is specified on the commandline in conjunction with the
-f switch
|
(package private) StreamTokenizer |
inputTokens
Tokenized version of the input config file
fileReader |
(package private) static String |
jdbcDriverErrorMsg |
(package private) static String[] |
jdbcDriverName |
(package private) static short |
numColumns |
(package private) static String |
reportErrorMsg |
(package private) static String |
sqlErrorMsg |
(package private) String[][] |
tableColumns |
(package private) String |
tableNm_ |
(package private) String |
testTableName |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
CreateDBTables() |
Modifier and Type | Method and Description |
---|---|
private boolean |
createTable(String table,
String[][] cols,
short numCols) |
String |
getAppletInfo()
the method that return the programmers customized information about this
applet.
|
private short |
getNextTable()
A method to fill the
tableColumns static array with the
column information. |
private boolean |
getNextTableName()
Reads one token from the inputTokens, if it is a StreamTokenizer.TT_WORD
it is assumed to be the next table name and puts it in the class tableNm_
field.
|
String[][] |
getParameterInfo()
the method that returns the information about the possible applet
parameters.
|
void |
init()
Initializes everything needed to start/run this applet.
|
private boolean |
initFileTokens() |
static void |
main(String[] argv)
This method gets called if this applet is envoked as an application.
|
private boolean |
parseSwitches(int numSwitches,
String[][] switchArgs) |
void |
TableCreator(String[] argv)
Constructor.
|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
destroy, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
static int dbIndex
static final String[] jdbcDriverName
private static String[] dbBrandName
private static String[] dbServerName
private static String[] dbServerPort
private static String[] dbUserPassword
static final String adminEmail
static final String adminEmailURL
static final String jdbcDriverErrorMsg
static final String sqlErrorMsg
static final String reportErrorMsg
static final String fileErrorMsg
static short numColumns
String testTableName
String[][] tableColumns
boolean dropTable
boolean fileArgFlag
String inFileName
Connection con
FileReader fileReader
File
to read in the formname/dbtablecolumnname at
runtime.StreamTokenizer inputTokens
fileReader
static boolean DEBUG
public CreateDBTables()
public String getAppletInfo()
getAppletInfo
in class Applet
public String[][] getParameterInfo()
getParameterInfo
in class Applet
public void init()
private boolean parseSwitches(int numSwitches, String[][] switchArgs)
numSwitches
- Description of the ParameterswitchArgs
- Description of the Parameterprivate boolean initFileTokens()
private boolean getNextTableName()
private short getNextTable()
tableColumns
static array with the
column information. This information goes directly into the SQL statement
that is used to create the table.private boolean createTable(String table, String[][] cols, short numCols)
table
- Description of the Parametercols
- Description of the ParameternumCols
- Description of the Parameterpublic void TableCreator(String[] argv)
argv
- Description of the ParameterWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses