Top Description Fields Constructors Methods
org.hsqldb.util

public Class Transfer

extends Panel
implements WindowListener, ActionListener, ItemListener, Traceable
Class Inheritance
All Implemented Interfaces
org.hsqldb.util.Traceable, java.awt.event.ItemListener, java.util.EventListener, java.awt.event.ActionListener, java.awt.event.WindowListener
Imports
java.util.Enumeration, .Vector, java.awt.BorderLayout, .Button, .Checkbox, .Component, .Dimension, .FileDialog, .Font, .Frame, .GridLayout, .Image, .ItemSelectable, .Label, .Menu, .MenuBar, .MenuItem, .Panel, .SystemColor, .TextField, .Toolkit, java.awt.event.ActionEvent, .ActionListener, .ItemEvent, .ItemListener, .WindowEvent, .WindowListener, java.awt.image.MemoryImageSource

Utility program (or applet) for transferring tables between different databases via JDBC. Understands HSQLDB database particularly well.
Author
Thomas Mueller (Hypersonic SQL Group)
Since
Hypersonic SQL
Version
2.5.0

Field Summary

Modifier and TypeField and Description
pack-priv Button
pack-priv static boolean
pack-priv Button
pack-priv Checkbox
pack-priv Checkbox
pack-priv Checkbox
pack-priv Checkbox
pack-priv Checkbox
pack-priv Checkbox
pack-priv Checkbox
pack-priv Checkbox
pack-priv Checkbox
pack-priv Checkbox
pack-priv int
pack-priv int
pack-priv Frame
pack-priv int
pack-priv Image
pack-priv int
pack-priv int
pack-priv List
pack-priv String
pack-priv String
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv DataAccessPoint
pack-priv String
pack-priv String[]
private static final String
pack-priv DataAccessPoint
pack-priv TransferTable
pack-priv TextField
pack-priv TextField
pack-priv TextField
pack-priv TextField
pack-priv TextField
pack-priv TextField
pack-priv TextField
pack-priv TextField
pack-priv TextField
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv TextField
pack-priv TextField
pack-priv Vector<E>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
_main(String[] arg)

public void
actionPerformed(ActionEvent ev)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

private void
private boolean
private void
private Panel
private Label
private void
protected void
exit()

public void
init()

private void
public void
itemStateChanged(ItemEvent e)

Implements java.awt.event.ItemListener.itemStateChanged.

Invoked when an item has been selected or deselected by the user.

private void
public static void
main(String[] arg)

private void
private void
private void
private void
saveTable()

Method declaration

private boolean
public void
private void
private void
updateEnabled(boolean and)

public void
windowActivated(WindowEvent e)

Implements java.awt.event.WindowListener.windowActivated.

Invoked when the Window is set to be the active Window.

public void
windowClosed(WindowEvent e)

Implements java.awt.event.WindowListener.windowClosed.

Invoked when a window has been closed as the result of calling dispose on the window.

public void
windowClosing(WindowEvent ev)

Implements java.awt.event.WindowListener.windowClosing.

Invoked when the user attempts to close the window from the window's system menu.

public void
windowDeactivated(WindowEvent e)

Implements java.awt.event.WindowListener.windowDeactivated.

Invoked when a Window is no longer the active Window.

public void
windowDeiconified(WindowEvent e)

Implements java.awt.event.WindowListener.windowDeiconified.

Invoked when a window is changed from a minimized to a normal state.

public void
windowIconified(WindowEvent e)

Implements java.awt.event.WindowListener.windowIconified.

Invoked when a window is changed from a normal to a minimized state.

public void
windowOpened(WindowEvent e)

Implements java.awt.event.WindowListener.windowOpened.

Invoked the first time a window is made visible.

public static void
work(String[] arg)

Inherited from java.awt.Panel:
addNotifygetAccessibleContext

Field Detail

bContinueback to summary
pack-priv Button bContinue
bMustExitback to summary
pack-priv static boolean bMustExit
bStartback to summary
pack-priv Button bStart
cAlterback to summary
pack-priv Checkbox cAlter
cCreateback to summary
pack-priv Checkbox cCreate
cCreateIndexback to summary
pack-priv Checkbox cCreateIndex
cDeleteback to summary
pack-priv Checkbox cDelete
cDropback to summary
pack-priv Checkbox cDrop
cDropIndexback to summary
pack-priv Checkbox cDropIndex
cFKForcedback to summary
pack-priv Checkbox cFKForced
cIdxForcedback to summary
pack-priv Checkbox cIdxForced
cInsertback to summary
pack-priv Checkbox cInsert
cTransferback to summary
pack-priv Checkbox cTransfer
CurrentAlterback to summary
pack-priv int CurrentAlter
CurrentTransferback to summary
pack-priv int CurrentTransfer
fMainback to summary
pack-priv Frame fMain
iMaxRowsback to summary
pack-priv int iMaxRows
imgEmptyback to summary
pack-priv Image imgEmpty
iSelectionStepback to summary
pack-priv int iSelectionStep
iTransferModeback to summary
pack-priv int iTransferMode
lTableback to summary
pack-priv List lTable
sDestCatalogback to summary
pack-priv String sDestCatalog
sDestSchemaback to summary
pack-priv String sDestSchema
SELECT_DEST_CATALOGback to summary
pack-priv static final int SELECT_DEST_CATALOG
SELECT_DEST_SCHEMAback to summary
pack-priv static final int SELECT_DEST_SCHEMA
SELECT_SOURCE_CATALOGback to summary
pack-priv static final int SELECT_SOURCE_CATALOG
SELECT_SOURCE_SCHEMAback to summary
pack-priv static final int SELECT_SOURCE_SCHEMA
SELECT_SOURCE_TABLESback to summary
pack-priv static final int SELECT_SOURCE_TABLES
sourceDbback to summary
pack-priv DataAccessPoint sourceDb
sSourceCatalogback to summary
pack-priv String sSourceCatalog
sSourceSchemasback to summary
pack-priv String[] sSourceSchemas
SYNTAX_MSGback to summary
private static final String SYNTAX_MSG
targetDbback to summary
pack-priv DataAccessPoint targetDb
tCurrentback to summary
pack-priv TransferTable tCurrent
tDestAlterback to summary
pack-priv TextField tDestAlter
tDestCreateback to summary
pack-priv TextField tDestCreate
tDestCreateIndexback to summary
pack-priv TextField tDestCreateIndex
tDestDeleteback to summary
pack-priv TextField tDestDelete
tDestDropback to summary
pack-priv TextField tDestDrop
tDestDropIndexback to summary
pack-priv TextField tDestDropIndex
tDestInsertback to summary
pack-priv TextField tDestInsert
tDestTableback to summary
pack-priv TextField tDestTable
tMessageback to summary
pack-priv TextField tMessage
TRFM_DUMPback to summary
pack-priv static final int TRFM_DUMP
TRFM_RESTOREback to summary
pack-priv static final int TRFM_RESTORE
TRFM_TRANSFERback to summary
pack-priv static final int TRFM_TRANSFER
tSourceSelectback to summary
pack-priv TextField tSourceSelect
tSourceTableback to summary
pack-priv TextField tSourceTable
tTableback to summary
pack-priv Vector<E> tTable

Constructor Detail

Transferback to summary
public Transfer()

Method Detail

_mainback to summary
pack-priv void _main(String[] arg)
Exceptions
IllegalArgumentException:
for the obvious reason
actionPerformedback to summary
public void actionPerformed(ActionEvent ev)

Implements java.awt.event.ActionListener.actionPerformed.

Doc from java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

addMenuItemsback to summary
private void addMenuItems(Menu f, String[] m)
CatalogToSelectback to summary
private boolean CatalogToSelect()
cleanupback to summary
private void cleanup()
createBorderPanelback to summary
private Panel createBorderPanel(Component center)
createLabelback to summary
private Label createLabel(String s)
displayTableback to summary
private void displayTable(TransferTable t)
exitback to summary
protected void exit()
initback to summary
public void init()
initGUIback to summary
private void initGUI()
itemStateChangedback to summary
public void itemStateChanged(ItemEvent e)

Implements java.awt.event.ItemListener.itemStateChanged.

Doc from java.awt.event.ItemListener.itemStateChanged.

Invoked when an item has been selected or deselected by the user. The code written for this method performs the operations that need to occur when an item is selected (or deselected).

LoadPrefsback to summary
private void LoadPrefs(String f)
mainback to summary
public static void main(String[] arg)
ProcessNextStepback to summary
private void ProcessNextStep()
RefreshMainDisplayback to summary
private void RefreshMainDisplay()
SavePrefsback to summary
private void SavePrefs(String f)
saveTableback to summary
private void saveTable()

Method declaration

SchemaToSelectback to summary
private boolean SchemaToSelect()
traceback to summary
public void trace(String s)

Implements org.hsqldb.util.Traceable.trace.

transferback to summary
private void transfer()
updateEnabledback to summary
private void updateEnabled(boolean and)
windowActivatedback to summary
public void windowActivated(WindowEvent e)

Implements java.awt.event.WindowListener.windowActivated.

Doc from java.awt.event.WindowListener.windowActivated.

Invoked when the Window is set to be the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.

windowClosedback to summary
public void windowClosed(WindowEvent e)

Implements java.awt.event.WindowListener.windowClosed.

Doc from java.awt.event.WindowListener.windowClosed.

Invoked when a window has been closed as the result of calling dispose on the window.

windowClosingback to summary
public void windowClosing(WindowEvent ev)

Implements java.awt.event.WindowListener.windowClosing.

Doc from java.awt.event.WindowListener.windowClosing.

Invoked when the user attempts to close the window from the window's system menu.

windowDeactivatedback to summary
public void windowDeactivated(WindowEvent e)

Implements java.awt.event.WindowListener.windowDeactivated.

Doc from java.awt.event.WindowListener.windowDeactivated.

Invoked when a Window is no longer the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.

windowDeiconifiedback to summary
public void windowDeiconified(WindowEvent e)

Implements java.awt.event.WindowListener.windowDeiconified.

Doc from java.awt.event.WindowListener.windowDeiconified.

Invoked when a window is changed from a minimized to a normal state.

windowIconifiedback to summary
public void windowIconified(WindowEvent e)

Implements java.awt.event.WindowListener.windowIconified.

Doc from java.awt.event.WindowListener.windowIconified.

Invoked when a window is changed from a normal to a minimized state. For many platforms, a minimized window is displayed as the icon specified in the window's iconImage property.

windowOpenedback to summary
public void windowOpened(WindowEvent e)

Implements java.awt.event.WindowListener.windowOpened.

Doc from java.awt.event.WindowListener.windowOpened.

Invoked the first time a window is made visible.

workback to summary
public static void work(String[] arg)