oracle.adf.dt.factories.ejb
Class DCFactoryEJB
java.lang.Object
oracle.adf.dt.factories.java.DCFactoryJavaBean
oracle.adf.dt.factories.ejb.DCFactoryEJB
- All Implemented Interfaces:
- DataControlFactory
- public class DCFactoryEJB
- extends DCFactoryJavaBean
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)
Suppress compilation before re-generating the data control, in case the EJB has been modified to make it incompatible with a previously created data control. |
JUDTDataControl |
createDataControl(oracle.ide.addin.Context context)
Create a data control for the selected Element. |
protected JUDTDataControl |
createDataControlInstance(java.lang.String sId)
|
static oracle.jdeveloper.model.JavaNode |
generateDataControl(oracle.ide.addin.Context context, java.lang.String j2eeApplicationName, oracle.jdeveloper.cm.ConnectionDescriptor connDesc, boolean openInEditor)
Deprecated. use |
static void |
generateEjbRefInAppClient(oracle.jdeveloper.model.JProject clientProject, oracle.jdeveloper.ejb.EjbEngine ejbEngine)
Add an ejb-ref or ejb-local-ref to web.xml or application-client.xml in the context project |
static void |
generateEjbRefInWebApp(oracle.jdeveloper.model.JProject clientProject, oracle.jdeveloper.ejb.EjbEngine ejbEngine)
|
static void |
generateEjbRefInWebApp(oracle.jdeveloper.model.JProject clientProject, oracle.jdeveloper.ejb.EjbEngine ejbEngine, java.lang.String ejbRefName)
Add an ejb-ref or ejb-local-ref to web.xml or application-client.xml in the context project |
protected java.lang.String |
getDataControlName(java.lang.String clsName, java.lang.String sFullClassName)
|
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 |
DCFactoryEJB
public DCFactoryEJB()
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
- Overrides:
getNodeClasses
in class DCFactoryJavaBean
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
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
compileProjectBeforeGenerating
public boolean compileProjectBeforeGenerating(oracle.ide.addin.Context ctx)
- Suppress compilation before re-generating the data control, in case the EJB has been modified to make it incompatible with a previously created data control.
-
- Specified by:
compileProjectBeforeGenerating
in interface DataControlFactory
- Overrides:
compileProjectBeforeGenerating
in class DCFactoryJavaBean
getDataControlName
protected java.lang.String getDataControlName(java.lang.String clsName,
java.lang.String sFullClassName)
-
- Overrides:
getDataControlName
in class DCFactoryJavaBean
generateDataControl
public static oracle.jdeveloper.model.JavaNode generateDataControl(oracle.ide.addin.Context context,
java.lang.String j2eeApplicationName,
oracle.jdeveloper.cm.ConnectionDescriptor connDesc,
boolean openInEditor)
- Deprecated. use
- Generates a Data Control for this EJB and adds it to this EJB's project.
-
- Returns:
- the JavaNode for the generated data control
generateEjbRefInWebApp
public static void generateEjbRefInWebApp(oracle.jdeveloper.model.JProject clientProject,
oracle.jdeveloper.ejb.EjbEngine ejbEngine)
generateEjbRefInWebApp
public static void generateEjbRefInWebApp(oracle.jdeveloper.model.JProject clientProject,
oracle.jdeveloper.ejb.EjbEngine ejbEngine,
java.lang.String ejbRefName)
- Add an ejb-ref or ejb-local-ref to web.xml or application-client.xml in the context project
generateEjbRefInAppClient
public static void generateEjbRefInAppClient(oracle.jdeveloper.model.JProject clientProject,
oracle.jdeveloper.ejb.EjbEngine ejbEngine)
- Add an ejb-ref or ejb-local-ref to web.xml or application-client.xml in the context project
createDataControlInstance
protected JUDTDataControl createDataControlInstance(java.lang.String sId)
-
- Overrides:
createDataControlInstance
in class DCFactoryJavaBean
Copyright © 1997, 2004, Oracle. All rights reserved.