Oracle ADF Designtime API Reference v10.1.2


oracle.adf.dt.factories.java
Class DCFactoryJavaBean

java.lang.Object
  extended byoracle.adf.dt.factories.java.DCFactoryJavaBean

All Implemented Interfaces:
DataControlFactory
Direct Known Subclasses:
DCFactoryEJB, DCFactoryToplink, DCFactoryWebService

public class DCFactoryJavaBean
extends java.lang.Object
implements DataControlFactory

Constructor Summary
DCFactoryJavaBean()

Method Summary
boolean canCreateDataControl(oracle.ide.addin.Context context)
Return true is the Data control can be created for the selected node.
protected boolean canCreateDataControl(oracle.jdeveloper.model.JProject project, oracle.jdeveloper.model.JavaNode 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.
protected JUDTDataControl createDataControlForJavaNode(oracle.jdeveloper.model.JProject project, oracle.jdeveloper.model.JavaNode node, java.util.Hashtable parameters, java.lang.String sFactory)
protected JUDTDataControl createDataControlInstance(java.lang.String sId)
protected java.lang.String getAccessorBeanClassName(JUDTBeanAccessorAttribute attr, JUDTBean owningBean)
May be overriden to return the type of bean which is returned by an accessor attribute.
protected java.lang.String getDataControlName(java.lang.String clsName, java.lang.String sFullClassName)
protected java.lang.Class getNodeClass()
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

DCFactoryJavaBean

public DCFactoryJavaBean()

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

protected boolean canCreateDataControl(oracle.jdeveloper.model.JProject project,
                                       oracle.jdeveloper.model.JavaNode node)

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

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

createDataControlInstance

protected JUDTDataControl createDataControlInstance(java.lang.String sId)

createDataControlForJavaNode

protected JUDTDataControl createDataControlForJavaNode(oracle.jdeveloper.model.JProject project,
                                                       oracle.jdeveloper.model.JavaNode node,
                                                       java.util.Hashtable parameters,
                                                       java.lang.String sFactory)

getAccessorBeanClassName

protected java.lang.String getAccessorBeanClassName(JUDTBeanAccessorAttribute attr,
                                                    JUDTBean owningBean)
May be overriden to return the type of bean which is returned by an accessor attribute. By default returns null.

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

getNodeClass

protected java.lang.Class getNodeClass()

getDataControlName

protected java.lang.String getDataControlName(java.lang.String clsName,
                                              java.lang.String sFullClassName)

Oracle ADF Designtime API Reference v10.1.2


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