Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.jdevimpl.audit.core
Class DefaultProfileTransaction

java.lang.Object
  extended by oracle.jdevimpl.audit.core.DefaultProfileTransaction
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, ProfileTransaction

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


Field Summary
 
Fields inherited from interface oracle.jdeveloper.audit.service.ProfileTransaction
DEFAULT_VALUE
 
Constructor Summary
DefaultProfileTransaction(DefaultProfile profile)
           
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener listener)
          Adds a listener for changes to the modified state of this transaction.
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds a listener for changes to properties of beans of this transaction.
 void apply()
          Applies this transaction to the profile from which it was created.
 Profile createProfile(java.lang.String name)
          Creates a profile from this transaction.
 ExtensionBean getBean(java.lang.String id, boolean force)
          Gets a specific bean of this transaction.
 BeanDefinition getDefinition(java.lang.String id)
          Gets the definition of a specific bean of this transaction.
 java.util.Collection<BeanDefinition> getDefinitions()
          Gets the definitions of the beans of this transaction.
 MultiMap<java.lang.String,ValueHandle> getPendingChangedValues()
          Gets the changed bean properties, relative to the underlying profile, of this transaction.
 Profile getProfile()
          Gets the profile which this transaction modifies.
 boolean isEnabled(java.lang.String id)
          Gets tbe enabled property of a specific bean of this transaction.
 boolean isModified()
          Gets whether properties of any bean have been changed by this transaction.
 boolean isModified(java.lang.String id)
          Gets whether properties of a specific bean have been changed.
 void propertyChange(java.beans.PropertyChangeEvent event)
           
 void removeChangeListener(javax.swing.event.ChangeListener listener)
          Removes a listener for changes to the modified state of this transaction.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes a listener for changes to properties of beans of this transaction.
 void revert()
          Reverts changed bean properties to their initial values.
 void setEnabled(java.lang.String id, boolean enabled)
          Sets tbe enabled property of a specific bean of this transaction.
 void setProperties(Profile profile)
          Sets all bean properties of this transaction from a profile.
 void setProperties(ProfileTransaction thatTransaction)
          Sets all bean properties of this transaction from another transaction.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultProfileTransaction

public DefaultProfileTransaction(DefaultProfile profile)
Method Detail

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener listener)
Description copied from interface: ProfileTransaction
Adds a listener for changes to the modified state of this transaction.

Specified by:
addChangeListener in interface ProfileTransaction

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener listener)
Description copied from interface: ProfileTransaction
Removes a listener for changes to the modified state of this transaction.

Specified by:
removeChangeListener in interface ProfileTransaction

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Description copied from interface: ProfileTransaction
Adds a listener for changes to properties of beans of this transaction.

Specified by:
addPropertyChangeListener in interface ProfileTransaction

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Description copied from interface: ProfileTransaction
Removes a listener for changes to properties of beans of this transaction.

Specified by:
removePropertyChangeListener in interface ProfileTransaction

getProfile

public Profile getProfile()
Description copied from interface: ProfileTransaction
Gets the profile which this transaction modifies.

Specified by:
getProfile in interface ProfileTransaction

getDefinitions

public java.util.Collection<BeanDefinition> getDefinitions()
Description copied from interface: ProfileTransaction
Gets the definitions of the beans of this transaction.

Specified by:
getDefinitions in interface ProfileTransaction

getDefinition

public BeanDefinition getDefinition(java.lang.String id)
Description copied from interface: ProfileTransaction
Gets the definition of a specific bean of this transaction.

Specified by:
getDefinition in interface ProfileTransaction
Parameters:
id - the id of the bean.

isEnabled

public boolean isEnabled(java.lang.String id)
Description copied from interface: ProfileTransaction
Gets tbe enabled property of a specific bean of this transaction.

Specified by:
isEnabled in interface ProfileTransaction
Parameters:
id - the id of the bean.
See Also:
BeanDefinition.hasEnabledProperty()

setEnabled

public void setEnabled(java.lang.String id,
                       boolean enabled)
Description copied from interface: ProfileTransaction
Sets tbe enabled property of a specific bean of this transaction.

Specified by:
setEnabled in interface ProfileTransaction
Parameters:
id - the id of the bean.
enabled - the new value of the enabled property of the bean.

getPendingChangedValues

public MultiMap<java.lang.String,ValueHandle> getPendingChangedValues()
Description copied from interface: ProfileTransaction
Gets the changed bean properties, relative to the underlying profile, of this transaction.

Specified by:
getPendingChangedValues in interface ProfileTransaction

getBean

public ExtensionBean getBean(java.lang.String id,
                             boolean force)
Description copied from interface: ProfileTransaction
Gets a specific bean of this transaction. If the defining extension of the bean is not loaded and force is false, gets null.

Specified by:
getBean in interface ProfileTransaction
Parameters:
id - The id of the bean.
force - Whether to force the defining extension of the bean to load.

isModified

public boolean isModified()
Description copied from interface: ProfileTransaction
Gets whether properties of any bean have been changed by this transaction.

Specified by:
isModified in interface ProfileTransaction

isModified

public boolean isModified(java.lang.String id)
Description copied from interface: ProfileTransaction
Gets whether properties of a specific bean have been changed.

Specified by:
isModified in interface ProfileTransaction

apply

public void apply()
Description copied from interface: ProfileTransaction
Applies this transaction to the profile from which it was created.

Specified by:
apply in interface ProfileTransaction

revert

public void revert()
Description copied from interface: ProfileTransaction
Reverts changed bean properties to their initial values.

Specified by:
revert in interface ProfileTransaction

createProfile

public Profile createProfile(java.lang.String name)
Description copied from interface: ProfileTransaction
Creates a profile from this transaction. This transaction, and the profile from which it was created, are not affected.

Specified by:
createProfile in interface ProfileTransaction
Parameters:
name - The name of the new profile.
Returns:
the new profile.

setProperties

public void setProperties(Profile profile)
Description copied from interface: ProfileTransaction
Sets all bean properties of this transaction from a profile.

Specified by:
setProperties in interface ProfileTransaction
Parameters:
profile - The profile supplying the property values to set.

setProperties

public void setProperties(ProfileTransaction thatTransaction)
Description copied from interface: ProfileTransaction
Sets all bean properties of this transaction from another transaction.

Specified by:
setProperties in interface ProfileTransaction
Parameters:
thatTransaction - The transaction supplying the property values to set.

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
11g Release 2 (11.1.2.1.0)

E17493-02

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