|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.db.event.DBObjectChange
public class DBObjectChange
A DBObjectChange is used to notify of changes to a DBObject. It is passed to any appropriate listeners when the provider creates, updates or removes objects. A DBObjectChange is not limited to one type of change, it can contain multiple changes (e.g. children removed as well as children added). A DBObjectChange can include changes to child objects as well through the getOwnedObjectsChanged() method.
Field Summary | |
---|---|
static java.lang.String |
NAME_PROPERTY Key for the property map to see if an object's name has been changed. |
Constructor Summary | |
---|---|
protected |
DBObjectChange(DBObject obj, DBObjectProvider pro) |
Method Summary | |
---|---|
static void |
fireChildrenAdded(SystemObject obj, java.util.List added) |
static void |
fireChildrenRemoved(SystemObject obj, java.util.List removed) |
static void |
fireChildUpdated(SystemObject obj, DBObject child) |
static void |
fireObjectUpdated(SystemObject obj) Fires an empty change message on the given object. |
static void |
fireObjectUpdated(SystemObject obj, java.util.List<DBObject> added, java.util.List<DBObject> removed, java.util.Map<java.lang.String,java.beans.PropertyChangeEvent> props) |
static void |
firePropertiesChanged(SystemObject obj, java.util.Map<java.lang.String,java.beans.PropertyChangeEvent> props) |
static void |
firePropertyChanged(SystemObject obj, java.beans.PropertyChangeEvent... pces) |
DBObject |
getDBObject() Gets the object this change has been on. |
java.util.List<DBObject> |
getOwnedObjectsAdded() Returns any owned objects added to the ListenableObject as a result of the change. |
java.util.List<DBObject> |
getOwnedObjectsRemoved() Returns any owned objects removed from the ListenableObject as a result of the change. |
java.util.Map<DBObject,DBObjectChange> |
getOwnedObjectsUpdated() Returns any changes that have happened to any owned objects. |
java.util.Map<java.lang.String,java.beans.PropertyChangeEvent> |
getPropertiesChanged() Returns any properties changed on the ListenableObject as a result of the change. |
java.beans.PropertyChangeEvent |
getPropertyChange(java.lang.String propertyName) Gets the PropertyChangeEvent for the given property name. |
DBObjectProvider |
getProvider() Gets the DBObjectProvider that the changed object is from. |
boolean |
hasNameChanged() Convinience method to identify whether the "name" property has been changed - looks in the properties changed map for the property as a key. |
void |
log() Internal - prints a copy of the event to the oracle.javatools.db Logger. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAME_PROPERTY
Property.name
.
hasNameChanged()
, Property.name
, Constant Field ValuesConstructor Detail |
---|
protected DBObjectChange(DBObject obj, DBObjectProvider pro)
Method Detail |
---|
public DBObjectProvider getProvider()
public DBObject getDBObject()
public java.util.List<DBObject> getOwnedObjectsAdded()
public java.util.List<DBObject> getOwnedObjectsRemoved()
public java.util.Map<java.lang.String,java.beans.PropertyChangeEvent> getPropertiesChanged()
getPropertyChange(String)
public java.beans.PropertyChangeEvent getPropertyChange(java.lang.String propertyName)
getPropertiesChanged()
public java.util.Map<DBObject,DBObjectChange> getOwnedObjectsUpdated()
public boolean hasNameChanged()
NAME_PROPERTY
public void log()
public static void fireObjectUpdated(SystemObject obj)
fireChildrenAdded(oracle.javatools.db.SystemObject, java.util.List)
, fireChildrenRemoved(oracle.javatools.db.SystemObject, java.util.List)
, firePropertiesChanged(oracle.javatools.db.SystemObject, java.util.Map<java.lang.String, java.beans.PropertyChangeEvent>)
public static void fireChildrenAdded(SystemObject obj, java.util.List added)
public static void fireChildrenRemoved(SystemObject obj, java.util.List removed)
public static void firePropertyChanged(SystemObject obj, java.beans.PropertyChangeEvent... pces)
public static void firePropertiesChanged(SystemObject obj, java.util.Map<java.lang.String,java.beans.PropertyChangeEvent> props)
public static void fireObjectUpdated(SystemObject obj, java.util.List<DBObject> added, java.util.List<DBObject> removed, java.util.Map<java.lang.String,java.beans.PropertyChangeEvent> props)
public static void fireChildUpdated(SystemObject obj, DBObject child)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |