Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


oracle.jdeveloper.java
Class TransactionDescriptor

java.lang.Object
  extended by oracle.jdeveloper.java.TransactionDescriptor


public class TransactionDescriptor
extends java.lang.Object

The TransactionDescriptor is a client-provided description used when committing a SourceTransaction. It provides a human-readable (and translated) edit name that describes the transaction. This edit name will be used for "Edit->Undo <name>" purposes.

Clients can optionally also provide a client-opaque object that provides additional details as to contents or purpose of the transaction. Because this descriptor will be held in the undo stack for the associated document(s), and may be pinned in memory for a long time, clients should avoid specifying large objects for the client-specified object.

This client specified object may be made available in the upcoming Java source model notification API to provide additional details to clients as to what constitutes a source model change (when available).


Constructor Summary
TransactionDescriptor(java.lang.String editName)
          Construct a new TransactionDescriptor with the edit name, but no client object.
TransactionDescriptor(java.lang.String editName, java.lang.Object clientObject)
          Construct a new TransactionDescriptor with the edit name and client specified object.

 

Method Summary
 java.lang.Object getClientObject()
          Fetch the client-specified object.
 java.lang.String getEditName()
          Fetch the human-readable edit name for this transaction.

 

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

 

Constructor Detail

TransactionDescriptor

public TransactionDescriptor(java.lang.String editName)
Construct a new TransactionDescriptor with the edit name, but no client object.
Parameters:
editName - the human-readable edit name

TransactionDescriptor

public TransactionDescriptor(java.lang.String editName,
                             java.lang.Object clientObject)
Construct a new TransactionDescriptor with the edit name and client specified object.
Parameters:
editName - the human-readable edit name
clientObject - the client-specified object

Method Detail

getEditName

public java.lang.String getEditName()
Fetch the human-readable edit name for this transaction.
Returns:
the human-readable edit name for this transaction

getClientObject

public java.lang.Object getClientObject()
Fetch the client-specified object.
Returns:
the client-specified object

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


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