ADF Designtime

oracle.adf.dt.factories.generic
Class DCFactoryGeneric

java.lang.Object
  extended byoracle.adf.dt.factories.generic.DCFactoryGeneric
All Implemented Interfaces:
DataControlFactory

public class DCFactoryGeneric
extends java.lang.Object
implements DataControlFactory

This is a generic JavaBean DataControl factory. The factory aggregates the JavaBean and Toplink DataControl factories. In most cases this factory will simply delegate to the JavaBean DataControl factory. However, when creating a DataControl this factory will first test the context node to determine if it is a JavaBean which has been mapped by Toplink. If so, then the factory will use the Toplink DC factory (extends the JavaBean DC factory) to create the DataControl.


Constructor Summary
DCFactoryGeneric()
           
 
Method Summary
 boolean canCreateDataControl(oracle.ide.addin.Context context)
          Return true is the Data control can be created for the selected node.
 boolean compileProjectBeforeGenerating(oracle.ide.addin.Context ctx)
          Return true if this factory requires the project to be compiled before it [re-]generates a data control.
 JUDTDataControl createDataControl(oracle.ide.addin.Context context)
          Create a data control for the selected Element.
 java.lang.Class[] getNodeClasses()
          Array of node classes handled by this Factory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DCFactoryGeneric

public DCFactoryGeneric()
Method Detail

getNodeClasses

public java.lang.Class[] getNodeClasses()
Description copied from interface: DataControlFactory
Array of node classes handled by this Factory

Specified by:
getNodeClasses in interface DataControlFactory

canCreateDataControl

public boolean canCreateDataControl(oracle.ide.addin.Context context)
Description copied from interface: DataControlFactory
Return true is the Data control can be created for the selected node. Even though the node factory registers a set of node types, it could be a that a node type is not well defined so the factory would return false in this function. One example is a Java class that is not a Java Bean.

Specified by:
canCreateDataControl in interface DataControlFactory

createDataControl

public JUDTDataControl createDataControl(oracle.ide.addin.Context context)
Description copied from interface: DataControlFactory
Create a data control for the selected Element. This may involve showing a user interface and generating a java bean. The method should return an initialized data control.

Specified by:
createDataControl in interface DataControlFactory

compileProjectBeforeGenerating

public boolean compileProjectBeforeGenerating(oracle.ide.addin.Context ctx)
Description copied from interface: DataControlFactory
Return true if this factory requires the project to be compiled before it [re-]generates a data control. In cases where the underlying model object has been modified, leaving it out of sync with a wrapper data control class generated earlier, compilation at the outset of the process will fail. This flag allows factories to first re-generate the data control wrapper, synchronizing it with any changes to the model.

Specified by:
compileProjectBeforeGenerating in interface DataControlFactory

ADF Designtime

 

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