private String _uid = IdGenerator.createId();
protected abstract static class Properties implements ObjectProperties {
- private long rid; // Primary key of persistent objects
+ /**
+ * Primary key of the persistent objects.
+ */
+ private long rid;
private boolean tobechecked = true; // Property validity check flag
// Public member functions
// ==============================================================================================================================
+ /**
+ * Generate new GUID for this object. Must be called when this object is <BR>
+ * intended to be copied as another new persistent object.
+ */
+ public void evict() {
+ _uid = IdGenerator.createId();
+ rid = 0;
+ }
+
/**
* Persistent objects are equal if their UIDs are equal.<BR>
* {@inheritDoc}