|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.metadata.remote.MdFactoryEvent
public class MdFactoryEvent
This is the event class used for signalling when objects are created, modified, and deleted on the server. This class does not involve object stores. Instead, only when changes are persisted to the server is when these methods will be fired.
One event will be fired for each request to the server. Instead of multiple events fired for each individual object, a single event will be fired for all objects.
If the client has registered their MdFactoryListener to be notified when events are fired for specific
object types (see MdFactory.addMdFactoryListener(MdFactoryListener, String[])
, the object map
will only contain objects of those specified interested types.
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
_objectMap
|
Constructor Summary | |
---|---|
MdFactoryEvent(MdFactory factory,
java.util.Map<java.lang.String,java.lang.String> objectMap)
|
|
MdFactoryEvent(MdFactory factory,
java.lang.String[] objectIDs)
Deprecated. use MdFactoryEvent(MdFactory, Map) instead |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a clone of this event. |
MdFactory |
getFactory()
Returns the factory for this event |
int |
getObjectCount()
Returns the number of objects included in this event |
java.lang.String[] |
getObjectIDs()
Returns the object ids associated with this event. |
java.util.Map<java.lang.String,java.lang.String> |
getObjectMap()
Returns the object map (where the keys are the object ids and the values are the object types) associated with this event. |
protected void |
setObjectMap(java.util.Map<java.lang.String,java.lang.String> map)
|
Field Detail |
---|
protected java.util.Map<java.lang.String,java.lang.String> _objectMap
Constructor Detail |
---|
public MdFactoryEvent(MdFactory factory, java.lang.String[] objectIDs)
MdFactoryEvent(MdFactory, Map)
instead
factory
- objectIDs
- public MdFactoryEvent(MdFactory factory, java.util.Map<java.lang.String,java.lang.String> objectMap)
Method Detail |
---|
public MdFactory getFactory()
public java.util.Map<java.lang.String,java.lang.String> getObjectMap()
In certain cases with delete events, it may not be possible to know the object types. This is because by the time the event has been fired, the object(s) have been deleted from the server. Because of this, if the object's type is not known, the value of the map entry will be null. However, all null types will always exist in the map, even if the client specified which object types they are interested in.
public java.lang.String[] getObjectIDs()
public int getObjectCount()
protected void setObjectMap(java.util.Map<java.lang.String,java.lang.String> map)
public java.lang.Object clone()
clone
in class java.lang.Object
|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |