|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.4.0) E10653-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.adf.model.adapter.AbstractImpl oracle.adf.model.adapter.bean.UpdatableBeanDataControl oracle.adfinternal.model.adapter.bean.DefaultUpdateableBeanDataControl oracle.adfinternal.model.adapter.toplink.TopLinkDataControl
public class TopLinkDataControl
Purpose: Data control for use of TopLink within ADF.
Description: This data control abstracts the use of TopLink. It allows for a single TransactionBroker to be shared among all live objects derived from an underlying Session. This assumes a single transaction and database session (isolated or *client/1server) per user context.
TopLinkDefinition
,
TransactionBroker
,
PersistenceManager
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 |
Fields inherited from interface oracle.adfinternal.model.adapter.toplink.TopLinkADFConstants |
---|
ACCESSOR_ADD_METHOD, ACCESSOR_INSERT_METHOD, ACCESSOR_REMOVE_METHOD, ASSIGN_SEQUENCE_NUMBERS_ON_CREATE, DEPLOYMENT_DESCRIPTOR_PATH, PERSIST_METHOD_NAME, PERSIST_METHOD_PARAM_NAME, SESSION_NAME, SESSIONS_XML_PATH, SHOULD_PERFORM_DELETES_FIRST, TOPLINK_DEFINITION |
Constructor Summary | |
---|---|
TopLinkDataControl(TransactionBroker txnBroker)
|
Method Summary | |
---|---|
void |
beginRequest(java.util.HashMap requestCtx)
Implemented per the ManagedDataControl contract. |
void |
commitTransaction()
Commits the transaction for this data control. |
java.lang.Object |
createRowData(RowContext ctx)
Creates the object described by RowContext , adds it to
the underlying provider Collection, registers it in the given
transaction, and returns the newly created object. |
void |
endRequest(java.util.HashMap requestCtx)
Implemented per the ManagedDataControl contract. |
oracle.toplink.sessions.UnitOfWork |
getAssociatedUnitOfWork()
ADVANCED: Returns the TopLink UnitOfWork associated with this data control's transaction. |
java.lang.Object |
getDataProvider()
Returns the data provider for this data control. |
java.lang.String |
getName()
Returns the name of this Data Control. |
oracle.toplink.sessions.Session |
getSession()
ADVANCED: Returns the TopLink Session associated with this data control's transaction. |
TransactionBroker |
getTransaction()
ADVANCED: Returns the TransactionBroker associated with this data control. |
boolean |
invokeOperation(java.util.Map bindingContext,
OperationBinding action)
Per the Data Control contract, this method handles executing Accessors on this data control as well as operations. |
boolean |
isTransactionDirty()
Indicates whether the TopLink UnitOfWork has any changes. |
java.lang.Object |
registerDataProvider(RowContext ctx)
NOOP: Returns the passed in object as the registered data provider. |
void |
release(int flags)
Handles releasing TopLink transactional resources when the data control is release from the binding container. |
boolean |
removeRowData(RowContext ctx)
Return true if the row at the given index is removed from the the RSI associated with the given iterator-binding. |
boolean |
resetState()
Resets the state of the TopLinkDataControl 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 (old query results are invalidated as well). |
void |
rollbackTransaction()
Rollsback the transaction for this data control. |
boolean |
setAttributeValue(AttributeContext ctx,
java.lang.Object value)
This method is called by the data binding framework when a new value is to be set on an attribute in a bean. |
void |
validate()
Validates transaction if dirty. |
Methods inherited from class oracle.adfinternal.model.adapter.bean.DefaultUpdateableBeanDataControl |
---|
release |
Methods inherited from class oracle.adf.model.adapter.bean.UpdatableBeanDataControl |
---|
getDCHandler, resetAccessors |
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 |
---|
release |
Constructor Detail |
---|
public TopLinkDataControl(TransactionBroker txnBroker)
Method Detail |
---|
public void commitTransaction()
commitTransaction
in interface TransactionalDataControl
public boolean setAttributeValue(AttributeContext ctx, java.lang.Object value)
DefaultUpdateableBeanDataControl
Return true if the base framework should skip any further processing of this attribute set. Otherwise return false so that framework can perform a set or put of the attribute value based on introspection.
setAttributeValue
in interface UpdateableDataControl
setAttributeValue
in class DefaultUpdateableBeanDataControl
public java.lang.Object createRowData(RowContext ctx)
RowContext
, adds it to
the underlying provider Collection, registers it in the given
transaction, and returns the newly created object.
createRowData
in interface UpdateableDataControl
createRowData
in class DefaultUpdateableBeanDataControl
ctx
- -
description of the Row to create
public boolean isTransactionDirty()
isTransactionDirty
in interface TransactionalDataControl
public java.lang.Object registerDataProvider(RowContext ctx)
registerDataProvider
in interface UpdateableDataControl
registerDataProvider
in class DefaultUpdateableBeanDataControl
ctx
- Context of the row to be modified or removed.
public boolean removeRowData(RowContext ctx)
removeRowData
in interface UpdateableDataControl
removeRowData
in class DefaultUpdateableBeanDataControl
ctx
- Context of the row to be removed.
public void rollbackTransaction()
rollbackTransaction
in interface TransactionalDataControl
DCDataControl.rollbackTransaction()()
public boolean resetState()
resetState
in interface ManagedDataControl
public void validate()
DefaultUpdateableBeanDataControl
validate
in interface UpdateableDataControl
validate
in class DefaultUpdateableBeanDataControl
public java.lang.Object getDataProvider()
getDataProvider
in interface DataControl
getDataProvider
in class UpdatableBeanDataControl
public java.lang.String getName()
getName
in interface DataControl
getName
in class UpdatableBeanDataControl
public boolean invokeOperation(java.util.Map bindingContext, OperationBinding action)
invokeOperation
in interface DataControl
invokeOperation
in class UpdatableBeanDataControl
public void release(int flags)
public void beginRequest(java.util.HashMap requestCtx)
beginRequest
in interface ManagedDataControl
requestCtx
- a HashMap representing request context.public void endRequest(java.util.HashMap requestCtx)
endRequest
in interface ManagedDataControl
requestCtx
- a HashMap representing request context.public TransactionBroker getTransaction()
public oracle.toplink.sessions.UnitOfWork getAssociatedUnitOfWork()
public oracle.toplink.sessions.Session getSession()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.4.0) E10653-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |