Oracle ADF Designtime API Reference v10.1.2


oracle.adf.dt.factories.toplink
Class DCFactoryToplink

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

All Implemented Interfaces:
DataControlFactory

public class DCFactoryToplink
extends DCFactoryJavaBean

Constructor Summary
DCFactoryToplink()

Method Summary
boolean canCreateDataControl(oracle.ide.addin.Context context)
Return true is the Data control can be created for the selected node.
static boolean canCreateDataControl(java.lang.String fullyQualifiedClassName, oracle.jdeveloper.model.JProject project)
JUDTDataControl createDataControl(oracle.ide.addin.Context context)
Create a data control for the selected Element.
protected JUDTDataControl createDataControlInstance(java.lang.String sId)
JUDTDataControl createDataControlNoPrompt(oracle.ide.addin.Context context)
Currently only used by the unit tests as a silent way to create the TL DC.
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.

Methods inherited from class oracle.adf.dt.factories.java.DCFactoryJavaBean
canCreateDataControl, compileProjectBeforeGenerating, createDataControlForJavaNode, getDataControlName, getNodeClass, getNodeClasses

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

Constructor Detail

DCFactoryToplink

public DCFactoryToplink()

Method Detail

createDataControlInstance

protected JUDTDataControl createDataControlInstance(java.lang.String sId)
Overrides:
createDataControlInstance in class DCFactoryJavaBean

getAccessorBeanClassName

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

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
Overrides:
canCreateDataControl in class DCFactoryJavaBean

canCreateDataControl

public static boolean canCreateDataControl(java.lang.String fullyQualifiedClassName,
                                           oracle.jdeveloper.model.JProject project)

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
Overrides:
createDataControl in class DCFactoryJavaBean

createDataControlNoPrompt

public JUDTDataControl createDataControlNoPrompt(oracle.ide.addin.Context context)
Currently only used by the unit tests as a silent way to create the TL DC. The assumption that this method makes is that no UI prompt should be exhibited to the user and this is the default deployment descriptor case.

Oracle ADF Designtime API Reference v10.1.2


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