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

E17493-02

oracle.jdeveloper.audit.service
Interface ProfileTransaction

All Known Implementing Classes:
DefaultProfileTransaction

public interface ProfileTransaction

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


Field Summary
static java.util.Collection<ValueHandle> DEFAULT_VALUE
          A ValueHandle representation which indicates that a property should revert to its default value.
 
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 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 transaction)
          Sets all bean properties of this transaction from another transaction.
 

Field Detail

DEFAULT_VALUE

static final java.util.Collection<ValueHandle> DEFAULT_VALUE
A ValueHandle representation which indicates that a property should revert to its default value.

See Also:
Profile.getDefaultValue(oracle.jdeveloper.audit.extension.BeanDefinition, java.lang.String)
Method Detail

addChangeListener

void addChangeListener(javax.swing.event.ChangeListener listener)
Adds a listener for changes to the modified state of this transaction.


removeChangeListener

void removeChangeListener(javax.swing.event.ChangeListener listener)
Removes a listener for changes to the modified state of this transaction.


addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a listener for changes to properties of beans of this transaction.


removePropertyChangeListener

void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a listener for changes to properties of beans of this transaction.


getProfile

Profile getProfile()
Gets the profile which this transaction modifies.


getDefinitions

java.util.Collection<BeanDefinition> getDefinitions()
Gets the definitions of the beans of this transaction.


getDefinition

BeanDefinition getDefinition(java.lang.String id)
Gets the definition of a specific bean of this transaction.

Parameters:
id - the id of the bean.

isEnabled

boolean isEnabled(java.lang.String id)
Gets tbe enabled property of a specific bean of this transaction.

Parameters:
id - the id of the bean.
Throws:
java.lang.IllegalArgumentException - if the bean has no enabled property.
See Also:
BeanDefinition.hasEnabledProperty()

setEnabled

void setEnabled(java.lang.String id,
                boolean enabled)
Sets tbe enabled property of a specific bean of this transaction.

Parameters:
id - the id of the bean.
enabled - the new value of the enabled property of the bean.
Throws:
java.lang.IllegalArgumentException - if the bean has no enabled property.

getPendingChangedValues

MultiMap<java.lang.String,ValueHandle> getPendingChangedValues()
Gets the changed bean properties, relative to the underlying profile, of this transaction.


getBean

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

Parameters:
id - The id of the bean.
force - Whether to force the defining extension of the bean to load.

isModified

boolean isModified()
Gets whether properties of any bean have been changed by this transaction.


isModified

boolean isModified(java.lang.String id)
Gets whether properties of a specific bean have been changed.


apply

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


createProfile

Profile createProfile(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

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


setProperties

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

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

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

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.