Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hsqldb.util
Class Transfer  view Transfer download Transfer.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended byorg.hsqldb.util.Transfer
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, java.io.Serializable, Traceable, java.awt.event.WindowListener

public class Transfer
extends java.applet.Applet
implements java.awt.event.WindowListener, java.awt.event.ActionListener, java.awt.event.ItemListener, Traceable

Utility program (or applet) for transferring tables between different databases via JDBC. Understands HSQLDB database particularly well.

Version:
1.7.0

Nested Class Summary
 
Nested classes inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  java.awt.Button bContinue
           
(package private) static boolean bMustExit
           
(package private)  java.awt.Button bStart
           
(package private)  java.awt.Checkbox cAlter
           
(package private)  java.awt.Checkbox cCreate
           
(package private)  java.awt.Checkbox cCreateIndex
           
(package private)  java.awt.Checkbox cDelete
           
(package private)  java.awt.Checkbox cDrop
           
(package private)  java.awt.Checkbox cDropIndex
           
(package private)  java.awt.Checkbox cFKForced
           
(package private)  java.awt.Checkbox cIdxForced
           
(package private)  java.awt.Checkbox cInsert
           
(package private)  java.awt.Checkbox cTransfer
           
(package private)  int CurrentAlter
           
(package private)  int CurrentTransfer
           
(package private)  java.awt.Frame fMain
           
(package private)  int iMaxRows
           
(package private)  java.awt.Image imgEmpty
           
(package private)  int iSelectionStep
           
(package private)  int iTransferMode
           
(package private)  java.awt.List lTable
           
(package private)  java.lang.String sDestCatalog
           
(package private)  java.lang.String sDestSchema
           
(package private) static int SELECT_DEST_CATALOG
           
(package private) static int SELECT_DEST_SCHEMA
           
(package private) static int SELECT_SOURCE_CATALOG
           
(package private) static int SELECT_SOURCE_SCHEMA
           
(package private) static int SELECT_SOURCE_TABLES
           
(package private)  DataAccessPoint sourceDb
           
(package private)  java.lang.String sSourceCatalog
           
(package private)  java.lang.String[] sSourceSchemas
           
(package private)  DataAccessPoint targetDb
           
(package private)  TransferTable tCurrent
           
(package private)  java.awt.TextField tDestAlter
           
(package private)  java.awt.TextField tDestCreate
           
(package private)  java.awt.TextField tDestCreateIndex
           
(package private)  java.awt.TextField tDestDelete
           
(package private)  java.awt.TextField tDestDrop
           
(package private)  java.awt.TextField tDestDropIndex
           
(package private)  java.awt.TextField tDestInsert
           
(package private)  java.awt.TextField tDestTable
           
(package private)  java.awt.TextField tMessage
           
static boolean TRACE
           
(package private) static int TRFM_DUMP
           
(package private) static int TRFM_RESTORE
           
(package private) static int TRFM_TRANSFER
           
(package private)  java.awt.TextField tSourceSelect
           
(package private)  java.awt.TextField tSourceTable
           
(package private)  java.util.Vector tTable
           
 
Fields inherited from class java.applet.Applet
 
Fields inherited from class java.awt.Panel
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Transfer()
           
 
Method Summary
(package private)  void _main(java.lang.String[] arg)
          Method declaration
 void actionPerformed(java.awt.event.ActionEvent ev)
          Method declaration
private  void addMenuItems(java.awt.Menu f, java.lang.String[] m)
          Method declaration
private  boolean CatalogToSelect()
           
private  void cleanup()
           
private  java.awt.Panel createBorderPanel(java.awt.Component center)
          Method declaration
private  java.awt.Label createLabel(java.lang.String s)
          Method declaration
private  void displayTable(TransferTable t)
          Method declaration
protected  void Exit()
           
 void init()
          Method declaration
private  void initGUI()
          Method declaration
 void itemStateChanged(java.awt.event.ItemEvent e)
          Method declaration
private  void LoadPrefs(java.lang.String f)
           
static void main(java.lang.String[] arg)
          Method declaration
private  void ProcessNextStep()
          Method ProcessNextStep
private  void RefreshMainDisplay()
           
private  void SavePrefs(java.lang.String f)
           
private  void saveTable()
          Method declaration
private  boolean SchemaToSelect()
           
 void trace(java.lang.String s)
          Method declaration
private  void transfer()
          Method declaration
private  void updateEnabled(boolean and)
          Method declaration
 void windowActivated(java.awt.event.WindowEvent e)
          Method declaration
 void windowClosed(java.awt.event.WindowEvent e)
          Method declaration
 void windowClosing(java.awt.event.WindowEvent ev)
          Method declaration
 void windowDeactivated(java.awt.event.WindowEvent e)
          Method declaration
 void windowDeiconified(java.awt.event.WindowEvent e)
          Method declaration
 void windowIconified(java.awt.event.WindowEvent e)
          Method declaration
 void windowOpened(java.awt.event.WindowEvent e)
          Method declaration
static void work(java.lang.String[] arg)
          Method declaration
 
Methods inherited from class java.applet.Applet
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
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, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, 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, isOpaque, 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, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fMain

java.awt.Frame fMain

imgEmpty

java.awt.Image imgEmpty

sourceDb

DataAccessPoint sourceDb

targetDb

DataAccessPoint targetDb

tCurrent

TransferTable tCurrent

iMaxRows

int iMaxRows

iSelectionStep

int iSelectionStep

tTable

java.util.Vector tTable

lTable

java.awt.List lTable

sSourceSchemas

java.lang.String[] sSourceSchemas

sSourceCatalog

java.lang.String sSourceCatalog

sDestSchema

java.lang.String sDestSchema

sDestCatalog

java.lang.String sDestCatalog

tSourceTable

java.awt.TextField tSourceTable

tDestTable

java.awt.TextField tDestTable

tDestDropIndex

java.awt.TextField tDestDropIndex

tDestCreateIndex

java.awt.TextField tDestCreateIndex

tDestDrop

java.awt.TextField tDestDrop

tDestCreate

java.awt.TextField tDestCreate

tDestDelete

java.awt.TextField tDestDelete

tDestAlter

java.awt.TextField tDestAlter

tSourceSelect

java.awt.TextField tSourceSelect

tDestInsert

java.awt.TextField tDestInsert

cTransfer

java.awt.Checkbox cTransfer

cDrop

java.awt.Checkbox cDrop

cCreate

java.awt.Checkbox cCreate

cDelete

java.awt.Checkbox cDelete

cInsert

java.awt.Checkbox cInsert

cAlter

java.awt.Checkbox cAlter

cCreateIndex

java.awt.Checkbox cCreateIndex

cDropIndex

java.awt.Checkbox cDropIndex

cFKForced

java.awt.Checkbox cFKForced

cIdxForced

java.awt.Checkbox cIdxForced

bStart

java.awt.Button bStart

bContinue

java.awt.Button bContinue

tMessage

java.awt.TextField tMessage

iTransferMode

int iTransferMode

bMustExit

static boolean bMustExit

CurrentTransfer

int CurrentTransfer

CurrentAlter

int CurrentAlter

SELECT_SOURCE_CATALOG

static final int SELECT_SOURCE_CATALOG
See Also:
Constant Field Values

SELECT_SOURCE_SCHEMA

static final int SELECT_SOURCE_SCHEMA
See Also:
Constant Field Values

SELECT_DEST_CATALOG

static final int SELECT_DEST_CATALOG
See Also:
Constant Field Values

SELECT_DEST_SCHEMA

static final int SELECT_DEST_SCHEMA
See Also:
Constant Field Values

SELECT_SOURCE_TABLES

static final int SELECT_SOURCE_TABLES
See Also:
Constant Field Values

TRFM_TRANSFER

static final int TRFM_TRANSFER
See Also:
Constant Field Values

TRFM_DUMP

static final int TRFM_DUMP
See Also:
Constant Field Values

TRFM_RESTORE

static final int TRFM_RESTORE
See Also:
Constant Field Values

TRACE

public static final boolean TRACE
Constructor Detail

Transfer

public Transfer()
Method Detail

trace

public void trace(java.lang.String s)
Method declaration

Specified by:
trace in interface Traceable

init

public void init()
Method declaration


work

public static void work(java.lang.String[] arg)
Method declaration


main

public static void main(java.lang.String[] arg)
Method declaration


CatalogToSelect

private boolean CatalogToSelect()

SchemaToSelect

private boolean SchemaToSelect()

_main

void _main(java.lang.String[] arg)
Method declaration


RefreshMainDisplay

private void RefreshMainDisplay()

addMenuItems

private void addMenuItems(java.awt.Menu f,
                          java.lang.String[] m)
Method declaration


itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Method declaration

Specified by:
itemStateChanged in interface java.awt.event.ItemListener

saveTable

private void saveTable()
Method declaration


displayTable

private void displayTable(TransferTable t)
Method declaration


updateEnabled

private void updateEnabled(boolean and)
Method declaration


ProcessNextStep

private void ProcessNextStep()
Method ProcessNextStep


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ev)
Method declaration

Specified by:
actionPerformed in interface java.awt.event.ActionListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Method declaration

Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Method declaration

Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Method declaration

Specified by:
windowClosed in interface java.awt.event.WindowListener

cleanup

private void cleanup()

windowClosing

public void windowClosing(java.awt.event.WindowEvent ev)
Method declaration

Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Method declaration

Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Method declaration

Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Method declaration

Specified by:
windowOpened in interface java.awt.event.WindowListener

initGUI

private void initGUI()
Method declaration


createBorderPanel

private java.awt.Panel createBorderPanel(java.awt.Component center)
Method declaration


createLabel

private java.awt.Label createLabel(java.lang.String s)
Method declaration


SavePrefs

private void SavePrefs(java.lang.String f)

LoadPrefs

private void LoadPrefs(java.lang.String f)

transfer

private void transfer()
Method declaration


Exit

protected void Exit()