org.apache.jdo.impl.fostore
Class ObjectTranscriber.CollectionTranscriber

java.lang.Object
  extended byorg.apache.jdo.impl.fostore.ObjectTranscriber.AbstractTranscriber
      extended byorg.apache.jdo.impl.fostore.ObjectTranscriber.CollectionTranscriber
All Implemented Interfaces:
org.apache.jdo.store.Transcriber
Direct Known Subclasses:
ObjectTranscriber.ArrayListTranscriber, ObjectTranscriber.HashSetTranscriber, ObjectTranscriber.LinkedListTranscriber, ObjectTranscriber.TreeSetTranscriber, ObjectTranscriber.VectorTranscriber
Enclosing class:
ObjectTranscriber

abstract class ObjectTranscriber.CollectionTranscriber
extends ObjectTranscriber.AbstractTranscriber

Transcribe Collections.


Constructor Summary
(package private) ObjectTranscriber.CollectionTranscriber()
           
 
Method Summary
(package private) abstract  java.lang.Object fetch(java.io.DataInput in, java.lang.Object owner, int fieldNum)
           
(package private)  void skip(java.io.DataInput in)
          Skips elements of a Collection.
(package private) abstract  void store(java.lang.Object value, FOStoreOutput out)
           
protected  void storeCollection(java.util.Collection obj, FOStoreOutput out)
          Store the elements of the collection.
protected  void writeInfo(java.util.Collection obj, FOStoreOutput out)
          Writes information for Collections, particularly for SCO Collections.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectTranscriber.CollectionTranscriber

ObjectTranscriber.CollectionTranscriber()
Method Detail

writeInfo

protected void writeInfo(java.util.Collection obj,
                         FOStoreOutput out)
                  throws java.io.IOException
Writes information for Collections, particularly for SCO Collections.

Parameters:
obj - Collection (possibly SCO) for which information in written.
out - Output to which information is written.
Throws:
java.io.IOException - if there are problems writing information.

storeCollection

protected void storeCollection(java.util.Collection obj,
                               FOStoreOutput out)
                        throws java.io.IOException
Store the elements of the collection. Freeze the elements, then iterate over them.

Throws:
java.io.IOException

skip

void skip(java.io.DataInput in)
    throws java.io.IOException
Skips elements of a Collection.

Specified by:
skip in class ObjectTranscriber.AbstractTranscriber
Parameters:
in - Place from where the array's values should be read
Throws:
java.io.IOException - if there are problems writing information.

store

abstract void store(java.lang.Object value,
                    FOStoreOutput out)
             throws java.io.IOException
Throws:
java.io.IOException

fetch

abstract java.lang.Object fetch(java.io.DataInput in,
                                java.lang.Object owner,
                                int fieldNum)
                         throws java.lang.Exception
Throws:
java.lang.Exception