Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


oracle.jdeveloper.panels
Class SelectDatabaseObjectsPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by oracle.ide.panels.DefaultTraversablePanel
                      extended by oracle.jdeveloper.panels.SelectDatabaseObjectsPanel

All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.DocumentListener, javax.swing.event.ListSelectionListener, oracle.bali.ewt.shuttle.ShuttleListener, GridBagConstants, Traversable

public abstract class SelectDatabaseObjectsPanel
extends DefaultTraversablePanel
implements GridBagConstants, java.awt.event.ActionListener, javax.swing.event.DocumentListener, javax.swing.event.ListSelectionListener, oracle.bali.ewt.shuttle.ShuttleListener, java.awt.event.FocusListener

Base panel for selecting database objects using a shuttle control, typically for conversion into a Java object such as an EJB, an ordinary Java class, or a BC4J Entity object.

Users may optionally filter their selection by schema name and/or db object name match string.

See Also:
Serialized Form

Nested Class Summary

 

Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel

 

Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent

 

Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer

 

Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy

 

Field Summary
protected  oracle.bali.ewt.shuttle.ListPicker _availableTablesPicker
           
protected  boolean _canSelectSynonyms
           
protected  boolean _canSelectViews
           
protected  java.util.Set _chosenTablesSet
           
protected  java.lang.String _connectionUrl
           
protected  SwingWorker _connWorker
           
protected  java.lang.String _currSchema
           
protected  java.lang.String _currTableFilter
           
protected  javax.swing.JPanel _dbObjQueryAlertPanel
           
protected  boolean _entityFieldIncluded
           
protected  boolean _includeEntityField
           
protected  boolean _includeSnapshotsCheck
           
protected  boolean _initialized
           
protected  Namespace _namespace
           
protected  java.util.ArrayList _queriedTablesList
           
protected  SwingWorker _schemaWorker
           
protected  oracle.bali.ewt.shuttle.Shuttle _shuttle
           
protected  boolean _snapshotsIncluded
           
protected  boolean _synonymSelectIncluded
           
protected  SwingWorker _tableWorker
           
protected  boolean _viewSelectIncluded
           
protected  WizardCallbacks _wizardCallbacks
           
static java.lang.String AUTO_QUERY_CHECK_NAME
           
protected  javax.swing.JCheckBox autoQueryCheck
           
static java.lang.String AVAILABLE_TABLES_LIST_NAME
           
protected  javax.swing.JList availableTablesList
           
protected  javax.swing.DefaultListModel availableTablesModel
           
static java.lang.String CHOSEN_TABLES
           
static java.lang.String CHOSEN_TABLES_LIST_NAME
           
protected  javax.swing.JList chosenTablesList
           
protected  javax.swing.DefaultListModel chosenTablesModel
           
static java.lang.String CURR_CONN_NAME
           
static java.lang.String DATABASE_METADATA
           
protected  javax.swing.JPanel dbObjPanel
           
static java.lang.String ENTITY_FIELD_NAME
           
protected  javax.swing.JTextField entityNameField
           
protected  javax.swing.JLabel entityNameLabel
           
static java.lang.String FILTER_FIELD_NAME
           
protected  javax.swing.JTextField filterField
           
static java.lang.String QUERY_BUTTON_NAME
           
protected  javax.swing.JButton queryButton
           
static java.lang.String SCHEMA_COMBO_NAME
           
protected  javax.swing.JComboBox schemaCombo
           
static java.lang.String SELECT_DB_OBJECTS_SETTINGS_KEY
           
static java.lang.String SETTINGS_AUTO_QUERY_KEY
           
static java.lang.String SETTINGS_QUERY_SNAPSHOTS_KEY
           
static java.lang.String SETTINGS_QUERY_SYNONYMS_KEY
           
static java.lang.String SETTINGS_QUERY_TABLES_KEY
           
static java.lang.String SETTINGS_QUERY_VIEWS_KEY
           
static java.lang.String SNAPSHOTS_CHECK_NAME
           
protected  javax.swing.JCheckBox snapshotsCheck
           
static java.lang.String SYNONYMS_CHECK_NAME
           
protected  javax.swing.JCheckBox synonymsCheck
           
protected static java.awt.datatransfer.DataFlavor TABLE_FLAVOR
           
static java.lang.String TABLES_CHECK_NAME
           
protected  javax.swing.JCheckBox tablesCheck
           
protected static int VERTICAL_SPACE_SIZE
           
static java.lang.String VIEWS_CHECK_NAME
           
protected  javax.swing.JCheckBox viewsCheck
           

 

Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW

 

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT

 

Fields inherited from interface oracle.ide.controls.GridBagConstants
ANCHOR_C, ANCHOR_E, ANCHOR_N, ANCHOR_NE, ANCHOR_NW, ANCHOR_S, ANCHOR_SE, ANCHOR_SW, ANCHOR_W, FILL_NONE, FILL_X, FILL_XY, FILL_Y

 

Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH

 

Constructor Summary
SelectDatabaseObjectsPanel()
          Constructs a new instance.

 

Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected abstract  java.lang.Object addSelectedObjects(java.awt.datatransfer.Transferable[] selectedItems)
           
protected  void assignComponentNames()
           
 void changedUpdate(javax.swing.event.DocumentEvent e)
           
 void closeConnection()
           
protected  java.awt.datatransfer.Transferable[] convertSelectedAvailableItems(java.awt.datatransfer.Transferable[] selectedItems)
          Hook for subclasses to convert Transferable items selected in the From picker to the item type known to the To picker.
protected  java.util.ArrayList doQuerySchemas()
           
protected  java.util.ArrayList doQueryTables(java.lang.String filterName)
          Subclasses can override this method to perform their own custom queries, instead of relying on DatabaseMetaData behavior.
protected  void doSetConnection(java.lang.String connName)
          Invokes a thread to get the DatabaseMetaData object for this connection, then fires off separate threads to query the tables and schemas
protected  void filterQueriedTables(java.util.ArrayList queriedTables)
          Hook for subclasses to remove items from the queried tables list that have already been chosen.
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
protected  boolean forceUppercaseSchema()
          Return true if schema names should be converted to uppercase before being stored in the schema.table list in the namespace.
static java.lang.String getCurrConnName(Namespace namespace)
           
protected  boolean getIncludeSynonymsCheck()
          Returns the checked status of the include synonyms check box.
protected  boolean getIncludeTablesCheck()
          Returns the checked status of the include tables check box.
protected  boolean getIncludeViewsCheck()
          Returns the checked status of the include views check box.
protected  javax.swing.JComponent getListControl()
           
protected  int getShuttleMode()
          Allow subclasses to override the Shuttle's copy/move mode.
protected  javax.swing.JCheckBox getSnapshotsCheck()
           
protected  javax.swing.JCheckBox getSynonymsCheck()
           
protected  javax.swing.JCheckBox getTablesCheck()
           
protected  int getVerticalSpaceSize()
           
protected  javax.swing.JCheckBox getViewsCheck()
           
 void insertUpdate(javax.swing.event.DocumentEvent e)
           
protected  void loadSettings()
          Load the default IDE settings for this panel.
protected  void loadSettings(java.lang.String key)
          Load the IDE settings from a (dialog/wizard)-specific key.
 void onEntry(TraversableContext tc)
          Does nothing by default.
 void onExit(TraversableContext tc)
          Upon leaving this panel, save the _metaData object and the chosen tables list out to the traversable context.
protected  void querySchemas()
           
protected  void queryTables()
           
protected abstract  void removeSelectedObjects(java.awt.datatransfer.Transferable[] selectedItems)
           
 void removeUpdate(javax.swing.event.DocumentEvent e)
           
protected abstract  void savePendingEntityNameChanges()
           
protected  void saveSettings()
          Save the default IDE settings for this panel.
protected  void saveSettings(java.lang.String key)
          Save the IDE settings from a (dialog/wizard)-specific key.
protected  void setCanSelectSynonyms(boolean boo)
          Sets whether or not to include the check box for selecting synonyms.
protected  void setCanSelectViews(boolean boo)
          Sets whether or not to include the check box for selecting views.
static void setCurrConnName(java.lang.String currConnName, Namespace namespace)
           
protected  void setIncludeEntityField(boolean include)
           
protected  void setIncludeSnapshotsCheck(boolean include)
           
 void shuttleItemsMoved(oracle.bali.ewt.shuttle.ShuttleEvent event)
           
 void shuttleItemsRemoved(oracle.bali.ewt.shuttle.ShuttleEvent event)
           
 void shuttleItemsReordered(oracle.bali.ewt.shuttle.ShuttleEvent event)
           
 void valueChanged(javax.swing.event.ListSelectionEvent e)
          Save pending entity name changes back to its state object, and respond to list selection changes by enabling/disabling the entity name field and assigning/clearing its data.

 

Methods inherited from class oracle.ide.panels.DefaultTraversablePanel
gbc, gbc, getComponent, getDefaultTitle, getExitTransition, getHelpID, getText, setDefaultTitle, setHelpID

 

Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI

 

Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update

 

Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

dbObjPanel

protected javax.swing.JPanel dbObjPanel

filterField

protected final javax.swing.JTextField filterField

FILTER_FIELD_NAME

public static final java.lang.String FILTER_FIELD_NAME
See Also:
Constant Field Values

autoQueryCheck

protected final javax.swing.JCheckBox autoQueryCheck

AUTO_QUERY_CHECK_NAME

public static final java.lang.String AUTO_QUERY_CHECK_NAME
See Also:
Constant Field Values

schemaCombo

protected final javax.swing.JComboBox schemaCombo

SCHEMA_COMBO_NAME

public static final java.lang.String SCHEMA_COMBO_NAME
See Also:
Constant Field Values

queryButton

protected final javax.swing.JButton queryButton

QUERY_BUTTON_NAME

public static final java.lang.String QUERY_BUTTON_NAME
See Also:
Constant Field Values

tablesCheck

protected final javax.swing.JCheckBox tablesCheck

TABLES_CHECK_NAME

public static final java.lang.String TABLES_CHECK_NAME
See Also:
Constant Field Values

viewsCheck

protected final javax.swing.JCheckBox viewsCheck

VIEWS_CHECK_NAME

public static final java.lang.String VIEWS_CHECK_NAME
See Also:
Constant Field Values

synonymsCheck

protected final javax.swing.JCheckBox synonymsCheck

SYNONYMS_CHECK_NAME

public static final java.lang.String SYNONYMS_CHECK_NAME
See Also:
Constant Field Values

snapshotsCheck

protected final javax.swing.JCheckBox snapshotsCheck

SNAPSHOTS_CHECK_NAME

public static final java.lang.String SNAPSHOTS_CHECK_NAME
See Also:
Constant Field Values

_shuttle

protected oracle.bali.ewt.shuttle.Shuttle _shuttle

_availableTablesPicker

protected oracle.bali.ewt.shuttle.ListPicker _availableTablesPicker

_dbObjQueryAlertPanel

protected javax.swing.JPanel _dbObjQueryAlertPanel

availableTablesModel

protected final javax.swing.DefaultListModel availableTablesModel

availableTablesList

protected final javax.swing.JList availableTablesList

AVAILABLE_TABLES_LIST_NAME

public static final java.lang.String AVAILABLE_TABLES_LIST_NAME
See Also:
Constant Field Values

chosenTablesModel

protected final javax.swing.DefaultListModel chosenTablesModel

chosenTablesList

protected final javax.swing.JList chosenTablesList

CHOSEN_TABLES_LIST_NAME

public static final java.lang.String CHOSEN_TABLES_LIST_NAME
See Also:
Constant Field Values

entityNameLabel

protected final javax.swing.JLabel entityNameLabel

entityNameField

protected final javax.swing.JTextField entityNameField

ENTITY_FIELD_NAME

public static final java.lang.String ENTITY_FIELD_NAME
See Also:
Constant Field Values

_initialized

protected boolean _initialized

_connectionUrl

protected java.lang.String _connectionUrl

_wizardCallbacks

protected WizardCallbacks _wizardCallbacks

_namespace

protected Namespace _namespace

_connWorker

protected SwingWorker _connWorker

_schemaWorker

protected SwingWorker _schemaWorker

_tableWorker

protected SwingWorker _tableWorker

_currSchema

protected java.lang.String _currSchema

_currTableFilter

protected java.lang.String _currTableFilter

_queriedTablesList

protected java.util.ArrayList _queriedTablesList

_chosenTablesSet

protected java.util.Set _chosenTablesSet

_includeSnapshotsCheck

protected boolean _includeSnapshotsCheck

_snapshotsIncluded

protected boolean _snapshotsIncluded

_includeEntityField

protected boolean _includeEntityField

_entityFieldIncluded

protected boolean _entityFieldIncluded

_canSelectViews

protected boolean _canSelectViews

_viewSelectIncluded

protected boolean _viewSelectIncluded

_canSelectSynonyms

protected boolean _canSelectSynonyms

_synonymSelectIncluded

protected boolean _synonymSelectIncluded

TABLE_FLAVOR

protected static final java.awt.datatransfer.DataFlavor TABLE_FLAVOR

DATABASE_METADATA

public static final java.lang.String DATABASE_METADATA
See Also:
Constant Field Values

CURR_CONN_NAME

public static final java.lang.String CURR_CONN_NAME
See Also:
Constant Field Values

CHOSEN_TABLES

public static final java.lang.String CHOSEN_TABLES
See Also:
Constant Field Values

SELECT_DB_OBJECTS_SETTINGS_KEY

public static final java.lang.String SELECT_DB_OBJECTS_SETTINGS_KEY
See Also:
Constant Field Values

SETTINGS_AUTO_QUERY_KEY

public static final java.lang.String SETTINGS_AUTO_QUERY_KEY
See Also:
Constant Field Values

SETTINGS_QUERY_TABLES_KEY

public static final java.lang.String SETTINGS_QUERY_TABLES_KEY
See Also:
Constant Field Values

SETTINGS_QUERY_VIEWS_KEY

public static final java.lang.String SETTINGS_QUERY_VIEWS_KEY
See Also:
Constant Field Values

SETTINGS_QUERY_SYNONYMS_KEY

public static final java.lang.String SETTINGS_QUERY_SYNONYMS_KEY
See Also:
Constant Field Values

SETTINGS_QUERY_SNAPSHOTS_KEY

public static final java.lang.String SETTINGS_QUERY_SNAPSHOTS_KEY
See Also:
Constant Field Values

VERTICAL_SPACE_SIZE

protected static final int VERTICAL_SPACE_SIZE
See Also:
Constant Field Values

Constructor Detail

SelectDatabaseObjectsPanel

public SelectDatabaseObjectsPanel()
Constructs a new instance.

Method Detail

assignComponentNames

protected void assignComponentNames()

getListControl

protected javax.swing.JComponent getListControl()

getShuttleMode

protected int getShuttleMode()
Allow subclasses to override the Shuttle's copy/move mode.

convertSelectedAvailableItems

protected java.awt.datatransfer.Transferable[] convertSelectedAvailableItems(java.awt.datatransfer.Transferable[] selectedItems)
Hook for subclasses to convert Transferable items selected in the From picker to the item type known to the To picker.

filterQueriedTables

protected void filterQueriedTables(java.util.ArrayList queriedTables)
Hook for subclasses to remove items from the queried tables list that have already been chosen. After this call, the (possibly modified) list is assigned to the From picker.

getVerticalSpaceSize

protected int getVerticalSpaceSize()

setIncludeSnapshotsCheck

protected void setIncludeSnapshotsCheck(boolean include)

setIncludeEntityField

protected void setIncludeEntityField(boolean include)

getIncludeTablesCheck

protected boolean getIncludeTablesCheck()
Returns the checked status of the include tables check box.

getIncludeViewsCheck

protected boolean getIncludeViewsCheck()
Returns the checked status of the include views check box.

getIncludeSynonymsCheck

protected boolean getIncludeSynonymsCheck()
Returns the checked status of the include synonyms check box.

setCanSelectViews

protected void setCanSelectViews(boolean boo)
Sets whether or not to include the check box for selecting views. If set to false the user cannot select views.

setCanSelectSynonyms

protected void setCanSelectSynonyms(boolean boo)
Sets whether or not to include the check box for selecting synonyms. If set to false the user cannot select synonyms.

onEntry

public void onEntry(TraversableContext tc)
Description copied from class: DefaultTraversablePanel
Does nothing by default.
Specified by:
onEntry in interface Traversable
Overrides:
onEntry in class DefaultTraversablePanel
Parameters:
tc - The data wrapper where the Traversable locates the data that it needs to populate the UI.
See Also:
Traversable.onEntry(TraversableContext)

getCurrConnName

public static java.lang.String getCurrConnName(Namespace namespace)

setCurrConnName

public static void setCurrConnName(java.lang.String currConnName,
                                   Namespace namespace)

loadSettings

protected void loadSettings()
Load the default IDE settings for this panel.

loadSettings

protected void loadSettings(java.lang.String key)
Load the IDE settings from a (dialog/wizard)-specific key. Allows dialogs/wizards which include this panel to override default settings persisted for the base panel. If no settings have yet been associated with this key, the default settings are loaded instead.
Parameters:
key - A key for looking up the panel options in the IDE settings.

onExit

public void onExit(TraversableContext tc)
            throws TraversalException
Upon leaving this panel, save the _metaData object and the chosen tables list out to the traversable context.
Specified by:
onExit in interface Traversable
Overrides:
onExit in class DefaultTraversablePanel
Parameters:
tc - The data object where changes made in the UI should be copied so that the changes can be accessed by other Traversables.
Throws:
TraversalException - if the user has entered either incomplete, invalid, or inconsistent data. This exception prevents the property dialog or wizard from continuing and forces the user to stay on the current Traversable until the data entered is valid or the user cancels. The exception class itself is capable of carrying an error message that will be shown to the user. Refer to its javadoc for details.
See Also:
Traversable.onExit(TraversableContext)

closeConnection

public void closeConnection()

saveSettings

protected void saveSettings()
Save the default IDE settings for this panel.

saveSettings

protected void saveSettings(java.lang.String key)
Save the IDE settings from a (dialog/wizard)-specific key. Allows dialogs/wizards which include this panel to override default settings persisted for the base panel. If no settings have yet been associated with this key, the default settings are loaded instead.
Parameters:
key - A key for looking up the panel options in the IDE settings.

savePendingEntityNameChanges

protected abstract void savePendingEntityNameChanges()
                                              throws TraversalException
Throws:
TraversalException

addSelectedObjects

protected abstract java.lang.Object addSelectedObjects(java.awt.datatransfer.Transferable[] selectedItems)

removeSelectedObjects

protected abstract void removeSelectedObjects(java.awt.datatransfer.Transferable[] selectedItems)

doSetConnection

protected void doSetConnection(java.lang.String connName)
Invokes a thread to get the DatabaseMetaData object for this connection, then fires off separate threads to query the tables and schemas

forceUppercaseSchema

protected boolean forceUppercaseSchema()
Return true if schema names should be converted to uppercase before being stored in the schema.table list in the namespace. Subclasses may override this to preserve lower/mixed case of schema names. JWETHERB NOTE: this should probably have defaulted to false, but is left at true to preserve legacy behavior.

queryTables

protected void queryTables()

doQueryTables

protected java.util.ArrayList doQueryTables(java.lang.String filterName)
Subclasses can override this method to perform their own custom queries, instead of relying on DatabaseMetaData behavior.
Returns:
an ArrayList of [SCHEMA.]TABLE strings

querySchemas

protected void querySchemas()

doQuerySchemas

protected java.util.ArrayList doQuerySchemas()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent e)
Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent e)
Specified by:
removeUpdate in interface javax.swing.event.DocumentListener

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent e)
Specified by:
changedUpdate in interface javax.swing.event.DocumentListener

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Save pending entity name changes back to its state object, and respond to list selection changes by enabling/disabling the entity name field and assigning/clearing its data.
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener

shuttleItemsMoved

public void shuttleItemsMoved(oracle.bali.ewt.shuttle.ShuttleEvent event)
Specified by:
shuttleItemsMoved in interface oracle.bali.ewt.shuttle.ShuttleListener

shuttleItemsRemoved

public void shuttleItemsRemoved(oracle.bali.ewt.shuttle.ShuttleEvent event)
Specified by:
shuttleItemsRemoved in interface oracle.bali.ewt.shuttle.ShuttleListener

shuttleItemsReordered

public void shuttleItemsReordered(oracle.bali.ewt.shuttle.ShuttleEvent event)
Specified by:
shuttleItemsReordered in interface oracle.bali.ewt.shuttle.ShuttleListener

getSynonymsCheck

protected javax.swing.JCheckBox getSynonymsCheck()
Returns:

getTablesCheck

protected javax.swing.JCheckBox getTablesCheck()
Returns:

getViewsCheck

protected javax.swing.JCheckBox getViewsCheck()
Returns:

getSnapshotsCheck

protected javax.swing.JCheckBox getSnapshotsCheck()
Returns:

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Specified by:
focusLost in interface java.awt.event.FocusListener

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


Copyright © 1997, 2013, Oracle. All rights reserved.