ADF Designtime

oracle.adf.dt.objects
Class JUDTDataControl

java.lang.Object
  extended byoracle.adf.dt.objects.JUDTBaseObject
      extended byoracle.adf.dt.objects.JUDTContaineeContainer
          extended byoracle.adf.dt.objects.JUDTDataControl
All Implemented Interfaces:
oracle.ide.model.Displayable, java.util.EventListener, oracle.ide.inspector.Inspectable, oracle.ide.inspector.Inspectable2, ObjectUpdateListener, oracle.jbo.mom.xml.PersistentDefinition, java.beans.PropertyChangeListener, oracle.ide.model.SupportsInspection
Direct Known Subclasses:
JUDTBC4JDataControl, JUDTEJBDataControl, JUDTJavaBeanDataControl, JUDTToplinkDataControl, JUDTWebServiceDataControl

public abstract class JUDTDataControl
extends JUDTContaineeContainer


Field Summary
static java.lang.String NEW_PARAMETER_ADDED
           
static java.lang.String PARAMETER_REMOVED
           
 
Fields inherited from class oracle.adf.dt.objects.JUDTBaseObject
_Context, _DefClassName, _RTDef, PNAME_id
 
Constructor Summary
JUDTDataControl()
           
 
Method Summary
 void addParameter(java.lang.String sName, java.lang.String sValue)
           
protected  void buildActionList(java.util.ArrayList actionList)
           
protected  void buildContextActionList(java.util.ArrayList actionList)
           
 void buildParametersActionList(java.util.ArrayList actionList)
           
 void configureClientProject(oracle.ide.addin.Context context, oracle.jdeveloper.model.JProject project)
           
 DataControlTreeNode createDataControlTreeNode(TreeNodesChooser Chooser)
          This method should be overriden to customize the Tree node create to represent a data control.
 void deleteParameter(java.lang.String sName)
           
 boolean displayParameterInStructurePane(java.lang.String sName)
          Gives the Data Control the ability to hide certain parameters from appearing in the Structure pane
 JUDTMethod findMethod(java.lang.String sName)
          Finds a method based on its name.
 JUDTBean getBeanDefinition()
           
 DataControlContainer getContainer()
           
 java.lang.String getDefinitionClass()
           
 oracle.jdeveloper.model.JProject getDefProject()
           
 java.lang.String getDesignTimeClass()
           
 java.lang.String getFactoryClass()
           
 javax.swing.Icon getIcon()
           
 java.lang.String getInstanceName()
           
 java.lang.String getPackageName()
           
 JUDTNameValueSet getParametersSet()
           
 java.lang.String getProjectConfigurer()
           
 RowsetInfo getRowSetInfo(java.lang.String sInstanceName)
           
 java.lang.String getXMLElementTag()
           
 void initializeClientTypeSettings(java.lang.String sType)
          Perform client type initialization for this data control.
 void initializeFromDTObject(JUDTDataControl origControl)
          FIXME Shailesh, there should probably be distinction between data controls that come from the cxfg file and those contained in the .cpx file.
 void initializeFromRuntimeObject(oracle.jbo.uicli.mom.JUDataControlDefImpl rtControl)
           
 boolean isBeanBasedDataControl()
           
 boolean isBeanSession()
           
 boolean isSameDefinition(JUDTBaseObject object)
          Determines if the passed in data control has the same definition.
 boolean performDeleteAction()
          If the DT object knows how to handle the 'delete' key, it can do the work when this is called
 void setContainer(DataControlContainer container)
          Sets the data control container.
 void setDefinitionClass(java.lang.String sValue)
           
 void setDefProject(oracle.jdeveloper.model.JProject project)
          The defProject is the project in which the datacontrols.xcfg is contained.
 void setDesignTimeClass(java.lang.String sClass)
          Sets the disgn-time class that will be created when this data control is loaded from XML.
 void setFactoryClass(java.lang.String sValue)
           
 void setPackageName(java.lang.String sValue)
           
 void setProjectConfigurer(java.lang.String newProjectConfigurer)
           
 void setSupportsFindmode(boolean bSet)
          Tells the dt data control whether find mode is support by the runtime data control.
 void setSupportsRangeSize(boolean bSet)
          Tells the dT data control whether the runtime data control supports paging though result sets using a range setting.
 void setSupportsResetState(boolean bSet)
           
 void setSupportsTransactions(boolean bSet)
          Tells the dt data control whether transactions are support by the runtime data control.
 boolean supportsFindMode()
           
 boolean supportsRangeSize()
           
 boolean supportsResetState()
           
 boolean supportsTransactions()
           
 void writeContents(oracle.jbo.mom.xml.DefWriter jos)
          Objects should write their persistence output in this method
 void writeNonContentsChildren(oracle.jbo.mom.xml.DefWriter jos)
           
 
Methods inherited from class oracle.adf.dt.objects.JUDTBaseObject
addObjectUpdateListener, addPropertyChangeListener, addVetoableChangeListener, buildContextMenuEntries, buildsContextMenuDirectly, dataChanged, fireObjectUpdated, firePropertyChange, getAdditionalTabPages, getContextMenuActions, getCustomDialogIcon, getCustomDialogToolTipText, getCustomizer, getDefaultDefClassName, getDefClassName, getFullName, getHelpTopicId, getId, getLinkActions, getLongLabel, getPropertyChangeListeners, getPropertyModel, getRTDef, getShortLabel, getSubType, getTarget, getToolTipText, hasCustomDialog, initFromRTDef, isNewInstance, propertyChange, readContents, removeObjectUpdateListener, removePropertyChangeListener, removeVetoableChangeListener, reportExceptionToUser, setContext, setDefClassName, setId, setNewInstance, setRunningKavaTests, setSaveSubType, setSubType, showCustomDialog, showEditorDialog, toString, writeChildren, writeChildren, writeObject, writeXMLIntArray, writeXMLStringArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NEW_PARAMETER_ADDED

public static java.lang.String NEW_PARAMETER_ADDED

PARAMETER_REMOVED

public static java.lang.String PARAMETER_REMOVED
Constructor Detail

JUDTDataControl

public JUDTDataControl()
Method Detail

isBeanBasedDataControl

public boolean isBeanBasedDataControl()

isSameDefinition

public boolean isSameDefinition(JUDTBaseObject object)
Determines if the passed in data control has the same definition. No match on id is made since this is not a full equality check.

Overrides:
isSameDefinition in class JUDTBaseObject
Parameters:
object -
Returns:

initializeClientTypeSettings

public void initializeClientTypeSettings(java.lang.String sType)
Perform client type initialization for this data control. The client type can be generic or JClient


setDesignTimeClass

public final void setDesignTimeClass(java.lang.String sClass)
Sets the disgn-time class that will be created when this data control is loaded from XML. The built-in data controls use the subtype, for extensibility, the design-time class will be used by new data controls that are not part of the core set.


getDesignTimeClass

public final java.lang.String getDesignTimeClass()

setContainer

public final void setContainer(DataControlContainer container)
Sets the data control container. A data control container can be a .dcx or a .cpx file.


getContainer

public final DataControlContainer getContainer()

setSupportsTransactions

public final void setSupportsTransactions(boolean bSet)
Tells the dt data control whether transactions are support by the runtime data control.


setSupportsFindmode

public final void setSupportsFindmode(boolean bSet)
Tells the dt data control whether find mode is support by the runtime data control.


setSupportsResetState

public final void setSupportsResetState(boolean bSet)

supportsResetState

public final boolean supportsResetState()

setSupportsRangeSize

public final void setSupportsRangeSize(boolean bSet)
Tells the dT data control whether the runtime data control supports paging though result sets using a range setting.


supportsTransactions

public final boolean supportsTransactions()

supportsFindMode

public final boolean supportsFindMode()

supportsRangeSize

public final boolean supportsRangeSize()

createDataControlTreeNode

public DataControlTreeNode createDataControlTreeNode(TreeNodesChooser Chooser)
This method should be overriden to customize the Tree node create to represent a data control. The JUDTDataControl subclass should be introduced by the JUDTDataControl factory.


configureClientProject

public void configureClientProject(oracle.ide.addin.Context context,
                                   oracle.jdeveloper.model.JProject project)

getRowSetInfo

public RowsetInfo getRowSetInfo(java.lang.String sInstanceName)

setDefProject

public final void setDefProject(oracle.jdeveloper.model.JProject project)
The defProject is the project in which the datacontrols.xcfg is contained. This is used to setup a project dependency.


getDefProject

public final oracle.jdeveloper.model.JProject getDefProject()

getInstanceName

public java.lang.String getInstanceName()

initializeFromDTObject

public void initializeFromDTObject(JUDTDataControl origControl)
FIXME Shailesh, there should probably be distinction between data controls that come from the cxfg file and those contained in the .cpx file.


initializeFromRuntimeObject

public void initializeFromRuntimeObject(oracle.jbo.uicli.mom.JUDataControlDefImpl rtControl)

addParameter

public final void addParameter(java.lang.String sName,
                               java.lang.String sValue)

deleteParameter

public final void deleteParameter(java.lang.String sName)

findMethod

public JUDTMethod findMethod(java.lang.String sName)
Finds a method based on its name. This should eventually search for methods recursivley.

Parameters:
sName -
Returns:

isBeanSession

public final boolean isBeanSession()

getDefinitionClass

public final java.lang.String getDefinitionClass()

setDefinitionClass

public final void setDefinitionClass(java.lang.String sValue)

setFactoryClass

public final void setFactoryClass(java.lang.String sValue)

getFactoryClass

public final java.lang.String getFactoryClass()

setPackageName

public final void setPackageName(java.lang.String sValue)

getPackageName

public java.lang.String getPackageName()

displayParameterInStructurePane

public boolean displayParameterInStructurePane(java.lang.String sName)
Gives the Data Control the ability to hide certain parameters from appearing in the Structure pane

Parameters:
sName -
Returns:

getBeanDefinition

public JUDTBean getBeanDefinition()

writeContents

public void writeContents(oracle.jbo.mom.xml.DefWriter jos)
                   throws oracle.jbo.mom.xml.DefPersistenceException
Objects should write their persistence output in this method

Specified by:
writeContents in interface oracle.jbo.mom.xml.PersistentDefinition
Overrides:
writeContents in class JUDTBaseObject
Parameters:
jos - the Output storage for persistence
Returns:
Number of Contents returned
Throws:
oracle.jbo.mom.xml.DefPersistenceException

writeNonContentsChildren

public void writeNonContentsChildren(oracle.jbo.mom.xml.DefWriter jos)
Overrides:
writeNonContentsChildren in class JUDTBaseObject

getParametersSet

public final JUDTNameValueSet getParametersSet()

getXMLElementTag

public java.lang.String getXMLElementTag()
Specified by:
getXMLElementTag in interface oracle.jbo.mom.xml.PersistentDefinition
Specified by:
getXMLElementTag in class JUDTBaseObject

getIcon

public javax.swing.Icon getIcon()
Specified by:
getIcon in interface oracle.ide.model.Displayable
Overrides:
getIcon in class JUDTBaseObject

getProjectConfigurer

public final java.lang.String getProjectConfigurer()

setProjectConfigurer

public final void setProjectConfigurer(java.lang.String newProjectConfigurer)

buildActionList

protected void buildActionList(java.util.ArrayList actionList)
Overrides:
buildActionList in class JUDTBaseObject

buildContextActionList

protected void buildContextActionList(java.util.ArrayList actionList)
Overrides:
buildContextActionList in class JUDTBaseObject

performDeleteAction

public boolean performDeleteAction()
Description copied from class: JUDTBaseObject
If the DT object knows how to handle the 'delete' key, it can do the work when this is called

Overrides:
performDeleteAction in class JUDTBaseObject

buildParametersActionList

public void buildParametersActionList(java.util.ArrayList actionList)

ADF Designtime

 

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