Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.0.0)

E17483-01

oracle.adfinternal.model.adapter.ejb
Class EjbDataControl

java.lang.Object
  extended by oracle.adf.model.adapter.AbstractImpl
      extended by oracle.adf.model.adapter.bean.UpdatableBeanDataControl
          extended by oracle.adf.model.adapter.bean.BeanFilterableDataControl
              extended by oracle.adf.model.adapter.bean.JavaBeanDataControl
                  extended by oracle.adfinternal.model.adapter.ejb.EjbDataControl
All Implemented Interfaces:
DataControl, FilterableDataControl, ManagedDataControl, TransactionalDataControl, UpdateableDataControl
Direct Known Subclasses:
EjbDCDefinitionDataControl

public class EjbDataControl
extends JavaBeanDataControl
implements ManagedDataControl

Data Control implementation class for EJB objects.

Since:
10.1.3

Field Summary
 
Fields inherited from class oracle.adf.model.adapter.bean.UpdatableBeanDataControl
_logger
 
Fields inherited from class oracle.adf.model.adapter.AbstractImpl
METHOD_CREATE, METHOD_EXECUTE, mName, SORT_CRITERIA
 
Method Summary
 void beginRequest(java.util.HashMap requestCtx)
          Implemented per the ManagedDataControl contract.
 java.io.Serializable createSnapshot()
          Creates a snapshot of the state of the DataControl.
 void endRequest(java.util.HashMap requestCtx)
          Implemented per the ManagedDataControl contract.
 java.lang.Object getDataProvider()
          Returns the data provider for this data control.
protected  void initDCProperties(java.lang.Object instance)
          Initialize Data Control properties
 void release()
          Releases the DataControl.
 void release(int flags)
          The data control release from the binding container.
 void removeSnapshot(java.io.Serializable handle)
          Removes the snapshot associated with the snapshot handle.
 boolean resetState()
          Resets the state of the EJBDataControl to it's initial state upon entering the application: a new UnitOfWork is acquired and all RSIs associated with this DataControl are reset to their initial state.
 void restoreSnapshot(java.io.Serializable handle)
          Restore the state of the DataControl with the snapshot state that is referenced by the handle.
 
Methods inherited from class oracle.adf.model.adapter.bean.JavaBeanDataControl
commitTransaction, findAccessorDefinition, findAccessorPropertyName, getDefinition, isTransactionDirty, rollbackTransaction
 
Methods inherited from class oracle.adf.model.adapter.bean.BeanFilterableDataControl
invokeAccessor, invokeOperation
 
Methods inherited from class oracle.adf.model.adapter.bean.UpdatableBeanDataControl
createRowData, getAddMethodName, getDCHandler, getName, getRemoveMethodName, invokeOperation, registerDataProvider, removeRowData, resetAccessors, setAttributeValue, validate
 
Methods inherited from class oracle.adf.model.adapter.AbstractImpl
addParameter, createAndAddNewRow, createEmptyDataSet, getAdapterContext, getDefinition, getParameterNames, getParameterValue, getSortCriteria, getStructureDef, getStructureDef, processResult, setDefinition, setName, setParameterValue, setStructureDef, shouldReexecuteOperation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.binding.DataControl
getName, invokeOperation
 

Method Detail

initDCProperties

protected void initDCProperties(java.lang.Object instance)
Initialize Data Control properties

Overrides:
initDCProperties in class JavaBeanDataControl
Parameters:
instance -

getDataProvider

public java.lang.Object getDataProvider()
Description copied from class: UpdatableBeanDataControl
Returns the data provider for this data control.

Specified by:
getDataProvider in interface DataControl
Overrides:
getDataProvider in class UpdatableBeanDataControl
Returns:
The underlying business service object.

release

public void release()
Releases the DataControl. The DataControl should be in a collectable state after release() has been invokd.

This should close all open DataControl resources.

Specified by:
release in interface DataControl
Overrides:
release in class UpdatableBeanDataControl

release

public void release(int flags)
The data control release from the binding container.

See Also:
DataControl

beginRequest

public void beginRequest(java.util.HashMap requestCtx)
Implemented per the ManagedDataControl contract. Tracks when this data control begins an application request.

Specified by:
beginRequest in interface ManagedDataControl
Parameters:
requestCtx - a HashMap representing request context.

endRequest

public void endRequest(java.util.HashMap requestCtx)
Implemented per the ManagedDataControl contract. Tracks when this data control has ended an application request.

Specified by:
endRequest in interface ManagedDataControl
Parameters:
requestCtx - a HashMap representing request context.

resetState

public boolean resetState()
Resets the state of the EJBDataControl to it's initial state upon entering the application: a new UnitOfWork is acquired and all RSIs associated with this DataControl are reset to their initial state.

Specified by:
resetState in interface ManagedDataControl
Returns:
true if resetState was processed immediately. false if resetState was deferred to endRequest processing.

createSnapshot

public java.io.Serializable createSnapshot()
Creates a snapshot of the state of the DataControl. A snapshot may be used to save the DataControl state so that it may be restored some time later. Returns a serializable handle to the snapshot.

Returns:
a snapshot handle

restoreSnapshot

public void restoreSnapshot(java.io.Serializable handle)
Restore the state of the DataControl with the snapshot state that is referenced by the handle.

Parameters:
handle - Serializable a snaphsot handle that was created with createSnapshot().

removeSnapshot

public void removeSnapshot(java.io.Serializable handle)
Removes the snapshot associated with the snapshot handle.

Parameters:
handle - Serializable a snapshot handle that was created with createSnapshot().

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.0.0)

E17483-01

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