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

E13403-05

oracle.jdeveloper.audit.service
Class ProfileTransaction

java.lang.Object
  extended by oracle.jdeveloper.audit.service.ProfileTransaction
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class ProfileTransaction
extends java.lang.Object
implements java.beans.PropertyChangeListener

A profile transaction can only be accessed from the thread in which it was created, and cannot be accessed after it is commited.


Constructor Summary
ProfileTransaction(DefaultProfile profile)
           
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener listener)
           
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void apply()
          Applies this transaction to the profile from which it was created.
 Profile create(java.lang.String name)
          Creates a profile from this transaction.
 ExtensionBean getBean(java.lang.String id)
          Gets a bean.
 java.util.Collection<ExtensionBean> getBeans()
           
 Profile getProfile()
           
 boolean isModified()
          Gets whether any bean properties have been changed.
 boolean isModified(java.lang.String id)
           
 void propertyChange(java.beans.PropertyChangeEvent event)
           
 void removeChangeListener(javax.swing.event.ChangeListener listener)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void revert()
          Reverts changed bean properties to their initial values.
 void setProperties(Profile profile)
          Sets all bean properties of this transaction from a profile.
 void setProperties(ProfileTransaction transaction)
          Sets all bean properties of this transaction from another transaction.
 void setProperty(java.lang.String id, java.lang.String propertyName, java.lang.Object value)
          Sets a bean property of this transaction.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProfileTransaction

public ProfileTransaction(DefaultProfile profile)
Method Detail

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener listener)

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener listener)

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)

getProfile

public Profile getProfile()

getBeans

public java.util.Collection<ExtensionBean> getBeans()

getBean

public ExtensionBean getBean(java.lang.String id)
Gets a bean.

Parameters:
id - The id of the bean.

isModified

public boolean isModified()
Gets whether any bean properties have been changed.


isModified

public boolean isModified(java.lang.String id)

apply

public void apply()
Applies this transaction to the profile from which it was created.


create

public Profile create(java.lang.String name)
Creates a profile from this transaction. This transaction, and the profile from which it was created, are not affected.

Parameters:
name - The name of the new profile.
Returns:
the new profile.

revert

public void revert()
Reverts changed bean properties to their initial values.


setProperties

public void setProperties(Profile profile)
Sets all bean properties of this transaction from a profile.

Parameters:
profile - The profile supplying the property values to set.

setProperties

public void setProperties(ProfileTransaction transaction)
Sets all bean properties of this transaction from another transaction.

Parameters:
transaction - The transaction supplying the property values to set.

setProperty

public void setProperty(java.lang.String id,
                        java.lang.String propertyName,
                        java.lang.Object value)
Sets a bean property of this transaction.

Parameters:
id - The id of the bean.
propertyName - The name of the property.
value - The new value of the property.

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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

E13403-05

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