com.triactive.jdo.sco
Class SCOProcessor.MapProcessor

java.lang.Object
  extended bycom.triactive.jdo.sco.SCOProcessor
      extended bycom.triactive.jdo.sco.SCOProcessor.MapProcessor
Direct Known Subclasses:
SCOProcessor.HashMapProcessor, SCOProcessor.HashtableProcessor
Enclosing class:
SCOProcessor

public abstract static class SCOProcessor.MapProcessor
extends SCOProcessor

An SCO processor for Map fields.


Nested Class Summary
 
Nested classes inherited from class com.triactive.jdo.sco.SCOProcessor
SCOProcessor.DateProcessor, SCOProcessor.HashMapProcessor, SCOProcessor.HashSetProcessor, SCOProcessor.HashtableProcessor, SCOProcessor.MapProcessor, SCOProcessor.SetProcessor, SCOProcessor.SqlDateProcessor, SCOProcessor.SqlTimestampProcessor
 
Constructor Summary
SCOProcessor.MapProcessor()
           
 
Method Summary
protected  PersistentMap getBackingMap(java.lang.Object owner, java.lang.String fieldName)
          Returns the backing store for the specified Map field.
abstract  SCO newSCOInstance(java.lang.Object owner, java.lang.String fieldName, PersistentMap backing)
          Returns a new SCO Map instance that is unloaded.
 
Methods inherited from class com.triactive.jdo.sco.SCOProcessor
forFieldType, isSecondClassMutableType, newSCOInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCOProcessor.MapProcessor

public SCOProcessor.MapProcessor()
Method Detail

getBackingMap

protected PersistentMap getBackingMap(java.lang.Object owner,
                                      java.lang.String fieldName)
Returns the backing store for the specified Map field.


newSCOInstance

public abstract SCO newSCOInstance(java.lang.Object owner,
                                   java.lang.String fieldName,
                                   PersistentMap backing)
Returns a new SCO Map instance that is unloaded. The returned instance is owned by the specified owner but has not been assigned to the corresponding field.

Initially, the contents of the map are not necessarily loaded in memory. Its contents are partially or fully loaded from the backing store in response to application method calls on the map.

Parameters:
owner - The first-class object that will own the new second-class object.
fieldName - The name of the field in the owning object.
backing - The backing store for the map.
Returns:
A new SCO instance.


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