com.triactive.jdo
Interface SCO

All Known Subinterfaces:
SCOCollection, SCOMap
All Known Implementing Classes:
Date, HashMap, HashSet, Hashtable, SqlDate, SqlTimestamp

public interface SCO

A mutable second-class object.

Author:
Mike Martin

Method Summary
 void applyUpdates()
          Called to indicate that the owning object is being made persistent, or that the persistent state of this field is being updated.
 java.lang.Object clone()
          Returns a clone of this SCO instance.
 java.lang.String getFieldName()
          Returns the field name in the owner object.
 java.lang.Object getOwner()
          Returns the owner object of the SCO instance.
 void makeDirty()
          Marks this object dirty.
 void unsetOwner()
          Disconnects this object from its owner.
 

Method Detail

getOwner

java.lang.Object getOwner()
Returns the owner object of the SCO instance.

Returns:
The owner object or null if currently unowned.

getFieldName

java.lang.String getFieldName()
Returns the field name in the owner object.

Returns:
The field name or null if currently unowned.

makeDirty

void makeDirty()
Marks this object dirty. If the SCO is currently owned this method should mark the corresponding field in the owning object as dirty.


applyUpdates

void applyUpdates()
Called to indicate that the owning object is being made persistent, or that the persistent state of this field is being updated.


unsetOwner

void unsetOwner()
Disconnects this object from its owner.


clone

java.lang.Object clone()
Returns a clone of this SCO instance. The returned object is unowned.



Copyright ? 2001-2007 The TJDO Project All Rights Reserved.