net.wotonomy.control
Class EOGlobalID

java.lang.Object
  extended by net.wotonomy.control.EOGlobalID
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
EOKeyGlobalID, EOTemporaryGlobalID

public abstract class EOGlobalID
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

A pure java implementation of EOGlobalID.

Version:
$Revision: 893 $
Author:
michael@mpowers.net, $Author: cgruber $
See Also:
Serialized Form

Field Summary
static java.lang.String GlobalIDChangedNotification
          ObjectStores broadcast this notification when they replace a temporary global id with a permanent one.
 
Constructor Summary
EOGlobalID()
           
 
Method Summary
 java.lang.Object clone()
          Returns a copy of this object.
abstract  boolean isTemporary()
          Returns whether this id is a temporary id.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GlobalIDChangedNotification

public static final java.lang.String GlobalIDChangedNotification
ObjectStores broadcast this notification when they replace a temporary global id with a permanent one. EditingContexts listen for these notifications to update their mapping of global ids to objects. The object of the notification is null, and the user info contains a mapping of the old temporary ids to the new permanent ids.

See Also:
Constant Field Values
Constructor Detail

EOGlobalID

public EOGlobalID()
Method Detail

isTemporary

public abstract boolean isTemporary()
Returns whether this id is a temporary id. Temporary ids are generated for newly created objects that have not been persisted. When persisted, the temporary id is discarded in favor of the one generated by the object store.


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Returns a copy of this object. This implementation calls super.clone().

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException


Copyright © 2006 null. All Rights Reserved.