|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.6.0) E10653-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataControlFrame
Method Summary | |
---|---|
boolean |
addDataControlPolicy(DataControlPolicy policy)
Adds a datacontrol policy to this datacontrol frame. |
void |
beginTransaction(TransactionProperties properties)
Begin a new transaction. |
void |
commit()
Commit the current underlying transaction. |
SavepointHandle |
createSavepoint()
Create a savepoint marking the current state of the task flow context. |
java.io.Serializable |
createSnapshot()
Creates a snapshot of the states of the DataControls in the frame. |
java.util.Collection<DCDataControl> |
datacontrols()
Returns the set of data controls in the frame |
DCDataControl |
findDataControl(java.lang.String dcName)
Retrieve a datacontrol instance with the given name from this datacontrol frame. |
DataControlPolicy |
findPolicy(java.lang.String name)
Retrieve a datacontrol policy with the given name from this datacontrol frame. |
java.lang.String |
findUniqueKey(java.lang.String key,
java.util.Map dcMap)
Return a key that is unique among the keys for datacontrols in the BindingContext. |
DCBindingContainer |
getBindingContainer(java.lang.Object key)
|
java.util.Collection<DCBindingContainer> |
getBindingContainers()
|
DataControlPolicy |
getDefaultPolicy()
Return the default datacontrol policy of this datacontrol frame. |
java.lang.String |
getName()
|
java.lang.String |
getOpenTransactionName()
Returns the name of the transaction if a transaction is open in this datacontrol frame. |
boolean |
isTransactionDirty()
Indicates if unsaved data modifications exists within the current task flow context. |
boolean |
isTransactionOpen()
Deprecated. replaced by getOpenTransactionName() |
DCBindingContainer |
putBindingContainer(java.lang.Object key,
DCBindingContainer bc)
|
void |
release()
Release the datacontrol frame. |
void |
releaseSavepoint(SavepointHandle cp)
Release a save point when it is no longer needed. |
DCBindingContainer |
removeBindingContainer(java.lang.Object key)
|
void |
removeSnapshot(java.io.Serializable handle)
Removes the state snapshot associated with the snapshot handle. |
void |
restoreSavepoint(SavepointHandle cp)
Restore the transaction back to a previously created checkpoint. |
void |
restoreSnapshot(java.io.Serializable handle)
Restore the states of the DataControls in the frame with the snapshot states that are referenced by the handle. |
void |
resumeTransaction()
Resume the transaction associated with with this context. |
void |
rollback()
Rollback the underlying transaction. |
void |
suspendTransaction()
Called to suspend the transaction associated with this datacontrol frame. |
Method Detail |
---|
void release()
If there is an open unresolved transaction when a datacontrol frame is released its parent context must retain any of the child's data controls until the transaction is resolved. Upon resolving the transaction the parent frame is free to release the child's data controls.
SavepointHandle createSavepoint()
void restoreSavepoint(SavepointHandle cp)
cp
- the checkpoint to return to. Must have been created by a call
to createSavepoint()
on the same transaction.void releaseSavepoint(SavepointHandle cp)
cp
- the savepoint to release. Must have been created by a call
to createSavepoint()
on the same transaction.java.io.Serializable createSnapshot()
void restoreSnapshot(java.io.Serializable handle)
handle
- Serializable a snaphsot handle that was created with
createSnapshot()
.void removeSnapshot(java.io.Serializable handle)
handle
- Serializable a snapshot handle that was created with
createSnapshot()
.void beginTransaction(TransactionProperties properties)
properties
- the transaction properties.
Used by beginTransaction in BindingContextvoid suspendTransaction()
void resumeTransaction()
java.lang.String getOpenTransactionName()
boolean isTransactionOpen()
boolean isTransactionDirty()
true
indicates unsaved data exists,false
indicates there is no unsaved data.java.lang.String getName()
void commit()
void rollback()
DCDataControl findDataControl(java.lang.String dcName)
dcName
- Name of the datacontrol
DataControlPolicy.getDataControl()
DataControlPolicy findPolicy(java.lang.String name)
name
- Name of the datacontrol
DataControlPolicy getDefaultPolicy()
boolean addDataControlPolicy(DataControlPolicy policy)
policy
- The datacontrol policy to be added.
DCBindingContainer getBindingContainer(java.lang.Object key)
DCBindingContainer putBindingContainer(java.lang.Object key, DCBindingContainer bc)
DCBindingContainer removeBindingContainer(java.lang.Object key)
java.util.Collection<DCBindingContainer> getBindingContainers()
java.lang.String findUniqueKey(java.lang.String key, java.util.Map dcMap)
key
- key for the datacontroldcMap
- map of datacontrol from the BindingContext
java.util.Collection<DCDataControl> datacontrols()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.6.0) E10653-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |