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

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

Returns:
The owner object or null if currently unowned.

getFieldName

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

Returns:
The field name or null if currently unowned.

makeDirty

public 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

public 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

public void unsetOwner()
Disconnects this object from its owner.


clone

public 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.