Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.5.0)

E10653-06


oracle.adfinternal.model.adapter.ejb
Class EjbDefinition

java.lang.Object
  extended by oracle.adf.model.adapter.AbstractDefinition
      extended by oracle.adf.model.adapter.bean.BeanAbstractDefinition
          extended by oracle.adfinternal.model.adapter.bean.BeanAnnotationAbstractDefinition
              extended by oracle.adfinternal.model.adapter.ejb.EjbDefinition

All Implemented Interfaces:
DataControlDefinition, Definition, NamedDefinition

public class EjbDefinition
extends BeanAnnotationAbstractDefinition

Defines the AbstractDefinition for Ejb data controls. Extends the BeanAbstractDefinition implementation to handle AbstractDefinition meta data delegation.

Since:
10.1.3
See Also:
BeanAbstractDefinition, oracle.adfinternal.model.adapter.generic.BeanAbstractAdapter, see also oracle.adfdtinternal.model.adapter.ejb.EjbDataControlProvider

Field Summary
static java.lang.String DataControlHandlerName
          DataControlHandler class
static java.lang.String EJB_BUSINESS_INTERFACE
           
static java.lang.String EJB_DEFINITION
           
static java.lang.String EJB_DEFINITION_URI
           
static java.lang.String EJB_HOME_INTERFACE
           
static java.lang.String EJB_INTERFACE_TYPE
           
static java.lang.String EJB_LOCAL
           
static java.lang.String EJB_LOCAL_HOME_INTERFACE
           
static java.lang.String EJB_LOCAL_REF_PREFIX
           
static java.lang.String EJB_NAME
           
static java.lang.String EJB_REF_PREFIX
          RMI lookup
static java.lang.String EJB_REMOTE
           
static java.lang.String EJB_TYPE
           
static java.lang.String EJB_VERSION
          EJB_VERSION is defined in oracle.jdeveloper.ejb.EjbConstants as EJB20_STR, EJB21_STR, or EJB30_STR
static java.lang.String INITIAL_CONTEXT_FACTORY
           
static java.lang.String JAVA_COMP_ENV
           
static java.lang.String JNDI_NAME
           
static java.lang.String JPQLDataControlHandlerName
          JPA Data handler class
static java.lang.String LOCAL_JNDI_NAME
           
static java.lang.String LOCAL_LOOKUP_PREFIX
           
static java.lang.String LOGGER
           
static java.lang.String PROVIDER_URL
           
static java.lang.String REMOTE_LOOKUP_PREFIX
           
static java.lang.String SECURITY_CREDENTIALS
           
static java.lang.String SECURITY_PRINCIPAL
           
static java.lang.String WL_INITIAL_CONTEXT_FACTORY
          WLS support
static java.lang.String WL_PROVIDER_URL
           

 

Fields inherited from class oracle.adf.model.adapter.bean.BeanAbstractDefinition
DATA_CONTROL_HANDLER, metaData, parameters

 

Fields inherited from class oracle.adf.model.adapter.AbstractDefinition
CACHE_TO_CLASSPATH, CACHE_TO_SOURCEPATH, DONT_CACHE, mFullName

 

Fields inherited from interface oracle.binding.meta.Definition
TYPE_ACCESSOR, TYPE_ATTRIBUTE, TYPE_CRITERIA, TYPE_CRITERIA_ITEM, TYPE_CRITERIA_OPERATOR, TYPE_CRITERIA_ROW, TYPE_DATACONTROL, TYPE_DEFINITION, TYPE_DEFINITIONCONTEXT, TYPE_NAMED, TYPE_OPERATION, TYPE_OPERATIONRETURN, TYPE_PARAMETER, TYPE_STRUCTURE, TYPE_VARIABLE

 

Constructor Summary
EjbDefinition()
          Zero arg constructor required by the framework.
EjbDefinition(DataControlStructure definition)
          Constructor used by the BeanAbstractAdapter.

 

Method Summary
 boolean assignDefaultPackage()
          Data controls which do not already have their own package structure need to use a default package.
 DataControl createDataControl()
          Creates data control at runtime.
 java.lang.String getAdapterType()
          Returns the name of the corresponding adapter type, if any.
 int getCachingMode()
           
 java.lang.String getFullName()
          Returns the full name of this Definition, which includes the name of any parent objects.
protected  java.lang.String getProviderType()
          Returns the dc structure provider type for this BeanAbstractDefinition.
protected  void initDefinition()
          Implementor to provide the definition
 boolean isSupported(java.lang.String operation)
          Indicate whether or not support operations ...
 boolean shouldCompileProjectOnCreate()
          Indicates if the project needs to be compiled when a data control is created from this definition.
 boolean usePersistedStructure()
          Indicates whether the definition delegates to the framework the task of deserializing its StructureDefinition (for example, from bean .xml files on disk).

 

Methods inherited from class oracle.adfinternal.model.adapter.bean.BeanAnnotationAbstractDefinition
isSupportsAnnotationMetadata, setSupportAnnotation

 

Methods inherited from class oracle.adf.model.adapter.bean.BeanAbstractDefinition
getDCName, getMetadata, getRuntimeMetaData, getRuntimeParameters, getStructure, isStructureDirty, loadFromMetadata

 

Methods inherited from class oracle.adf.model.adapter.AbstractDefinition
createDuplicateDetailIterator, getAdapterContext, getConfigurationFullName, getDefClassName, getDefinitionParent, getDefinitionType, getFactoryClassName, getName, getParameters, getProperties, getProperty, setAdapterContext, setCachingMode, setCompileProjectOnCreate, setConfigurationFullName, setFullName, setName, setProperty, shouldStoreStructureDefinition

 

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

 

Field Detail

EJB_DEFINITION

public static final java.lang.String EJB_DEFINITION
See Also:
Constant Field Values

EJB_DEFINITION_URI

public static final java.lang.String EJB_DEFINITION_URI
See Also:
Constant Field Values

EJB_VERSION

public static final java.lang.String EJB_VERSION
EJB_VERSION is defined in oracle.jdeveloper.ejb.EjbConstants as EJB20_STR, EJB21_STR, or EJB30_STR
See Also:
Constant Field Values

EJB_NAME

public static final java.lang.String EJB_NAME
See Also:
Constant Field Values

EJB_TYPE

public static final java.lang.String EJB_TYPE
See Also:
Constant Field Values

EJB_INTERFACE_TYPE

public static final java.lang.String EJB_INTERFACE_TYPE
See Also:
Constant Field Values

EJB_BUSINESS_INTERFACE

public static final java.lang.String EJB_BUSINESS_INTERFACE
See Also:
Constant Field Values

EJB_HOME_INTERFACE

public static final java.lang.String EJB_HOME_INTERFACE
See Also:
Constant Field Values

EJB_LOCAL_HOME_INTERFACE

public static final java.lang.String EJB_LOCAL_HOME_INTERFACE
See Also:
Constant Field Values

INITIAL_CONTEXT_FACTORY

public static final java.lang.String INITIAL_CONTEXT_FACTORY
See Also:
Constant Field Values

SECURITY_PRINCIPAL

public static final java.lang.String SECURITY_PRINCIPAL
See Also:
Constant Field Values

SECURITY_CREDENTIALS

public static final java.lang.String SECURITY_CREDENTIALS
See Also:
Constant Field Values

PROVIDER_URL

public static final java.lang.String PROVIDER_URL
See Also:
Constant Field Values

EJB_REMOTE

public static final java.lang.String EJB_REMOTE
See Also:
Constant Field Values

EJB_LOCAL

public static final java.lang.String EJB_LOCAL
See Also:
Constant Field Values

WL_INITIAL_CONTEXT_FACTORY

public static final java.lang.String WL_INITIAL_CONTEXT_FACTORY
WLS support
See Also:
Constant Field Values

WL_PROVIDER_URL

public static final java.lang.String WL_PROVIDER_URL
See Also:
Constant Field Values

JNDI_NAME

public static final java.lang.String JNDI_NAME
See Also:
Constant Field Values

LOCAL_JNDI_NAME

public static final java.lang.String LOCAL_JNDI_NAME
See Also:
Constant Field Values

EJB_REF_PREFIX

public static final java.lang.String EJB_REF_PREFIX
RMI lookup
See Also:
Constant Field Values

EJB_LOCAL_REF_PREFIX

public static final java.lang.String EJB_LOCAL_REF_PREFIX
See Also:
Constant Field Values

JAVA_COMP_ENV

public static final java.lang.String JAVA_COMP_ENV
See Also:
Constant Field Values

LOCAL_LOOKUP_PREFIX

public static final java.lang.String LOCAL_LOOKUP_PREFIX
See Also:
Constant Field Values

REMOTE_LOOKUP_PREFIX

public static final java.lang.String REMOTE_LOOKUP_PREFIX
See Also:
Constant Field Values

DataControlHandlerName

public static final java.lang.String DataControlHandlerName
DataControlHandler class

JPQLDataControlHandlerName

public static final java.lang.String JPQLDataControlHandlerName
JPA Data handler class

LOGGER

public static final java.lang.String LOGGER
See Also:
Constant Field Values

Constructor Detail

EjbDefinition

public EjbDefinition()
Zero arg constructor required by the framework.

EjbDefinition

public EjbDefinition(DataControlStructure definition)
Constructor used by the BeanAbstractAdapter.

Method Detail

createDataControl

public DataControl createDataControl()
Creates data control at runtime.
Specified by:
createDataControl in class AbstractDefinition
Returns:
the data control instance.

getProviderType

protected java.lang.String getProviderType()
Returns the dc structure provider type for this BeanAbstractDefinition.
Specified by:
getProviderType in class BeanAbstractDefinition

isSupported

public boolean isSupported(java.lang.String operation)
Description copied from class: BeanAnnotationAbstractDefinition
Indicate whether or not support operations ...
Overrides:
isSupported in class BeanAnnotationAbstractDefinition
Parameters:
operation - one of the values defined in DataControlDefinition.
Returns:
boolean

getFullName

public java.lang.String getFullName()
Description copied from interface: NamedDefinition
Returns the full name of this Definition, which includes the name of any parent objects. The full name should reflect the runtime nesting level.
Specified by:
getFullName in interface NamedDefinition
Overrides:
getFullName in class AbstractDefinition
Returns:
Full name of this Definition.

getAdapterType

public java.lang.String getAdapterType()
Description copied from class: AbstractDefinition
Returns the name of the corresponding adapter type, if any. The framework calls this method to find out a corresponding adapter for this definition.
Overrides:
getAdapterType in class AbstractDefinition
Returns:
name of the corresponding adapter that matches this definition. If there is no adapter defined for this type, the method returns null. The default implementation returns null.
See Also:
AdapterDefinition

assignDefaultPackage

public boolean assignDefaultPackage()
Description copied from class: AbstractDefinition
Data controls which do not already have their own package structure need to use a default package. Bean-based data controls, or others whose names embed their package structure, should override this to return false.
Overrides:
assignDefaultPackage in class AbstractDefinition
Returns:
false to indicate that EJB data controls maintain their own package info in the structure defs they create.

getCachingMode

public int getCachingMode()
Overrides:
getCachingMode in class AbstractDefinition

usePersistedStructure

public boolean usePersistedStructure()
Description copied from class: BeanAbstractDefinition
Indicates whether the definition delegates to the framework the task of deserializing its StructureDefinition (for example, from bean .xml files on disk). Overrides base method on AbstractDefinition.
Overrides:
usePersistedStructure in class BeanAbstractDefinition
Returns:
by default true.

shouldCompileProjectOnCreate

public boolean shouldCompileProjectOnCreate()
Description copied from class: AbstractDefinition
Indicates if the project needs to be compiled when a data control is created from this definition.

Note: If the data control create is invoked from within a UI operation (e.g. you are invoking creation of data control while responding to a property change action of the data control metadata), this method must return false. A data control can be created by calling the method createDataControl on class MetaDef.

Overrides:
shouldCompileProjectOnCreate in class AbstractDefinition
Returns:
by default it returns false.

initDefinition

protected void initDefinition()
Description copied from class: BeanAbstractDefinition
Implementor to provide the definition
Overrides:
initDefinition in class BeanAbstractDefinition

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.5.0)

E10653-06


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