de.grogra.persistence
Class PersistenceInputDecorator

java.lang.Object
  extended by de.grogra.persistence.PersistenceInputDecorator
All Implemented Interfaces:
PersistenceInput

public class PersistenceInputDecorator
extends java.lang.Object
implements PersistenceInput


Field Summary
protected  PersistenceInput in
           
 
Fields inherited from interface de.grogra.persistence.PersistenceInput
ARRAY_OBJECT, MANAGEABLE_OBJECT, MIN_UNUSED_KIND, NULL_OBJECT, PERSISTENT_OBJECT_ID, PLAIN_OBJECT, SERIALIZED_OBJECT, SHARED_OBJECT_REFERENCE, STRING_OBJECT
 
Constructor Summary
PersistenceInputDecorator(PersistenceInput in)
           
 
Method Summary
 boolean areFieldsProvided()
           
 int beginArray()
           
 boolean beginComponent(ManageableType.ArrayComponent c, int index)
           
 ManageableType.Field beginField(ManageableType type, ManageableType.Field field)
           
 ManageableType beginManaged()
           
 void endArray()
           
 void endComponent()
           
 void endField()
           
 void endManaged()
           
 PersistenceBindings getBindings()
           
 int getNextObjectKind()
           
 boolean readBoolean()
           
 byte readByte()
           
 char readChar()
           
 double readDouble()
           
 float readFloat()
           
 int readInt()
           
 long readLong()
           
 java.lang.String readName()
           
 java.lang.Object readObject(int kind, Type type)
           
 PersistenceCapable readPersistentObject()
           
 long readPersistentObjectId()
           
 Shareable readSharedObject()
           
 short readShort()
           
 java.lang.String readString()
           
 int readUnsignedByte()
           
 int readUnsignedShort()
           
 PersistenceCapable resolveId(long inputId)
           
 void setNested(boolean nested)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected final PersistenceInput in
Constructor Detail

PersistenceInputDecorator

public PersistenceInputDecorator(PersistenceInput in)
Method Detail

areFieldsProvided

public boolean areFieldsProvided()
Specified by:
areFieldsProvided in interface PersistenceInput

beginArray

public int beginArray()
               throws java.io.IOException
Specified by:
beginArray in interface PersistenceInput
Throws:
java.io.IOException

beginComponent

public boolean beginComponent(ManageableType.ArrayComponent c,
                              int index)
                       throws java.io.IOException
Specified by:
beginComponent in interface PersistenceInput
Throws:
java.io.IOException

beginField

public ManageableType.Field beginField(ManageableType type,
                                       ManageableType.Field field)
                                throws java.io.IOException
Specified by:
beginField in interface PersistenceInput
Throws:
java.io.IOException

beginManaged

public ManageableType beginManaged()
                            throws java.io.IOException
Specified by:
beginManaged in interface PersistenceInput
Throws:
java.io.IOException

endArray

public void endArray()
              throws java.io.IOException
Specified by:
endArray in interface PersistenceInput
Throws:
java.io.IOException

endComponent

public void endComponent()
                  throws java.io.IOException
Specified by:
endComponent in interface PersistenceInput
Throws:
java.io.IOException

endField

public void endField()
              throws java.io.IOException
Specified by:
endField in interface PersistenceInput
Throws:
java.io.IOException

endManaged

public void endManaged()
                throws java.io.IOException
Specified by:
endManaged in interface PersistenceInput
Throws:
java.io.IOException

getBindings

public PersistenceBindings getBindings()
Specified by:
getBindings in interface PersistenceInput

getNextObjectKind

public int getNextObjectKind()
                      throws java.io.IOException
Specified by:
getNextObjectKind in interface PersistenceInput
Throws:
java.io.IOException

readBoolean

public boolean readBoolean()
                    throws java.io.IOException
Specified by:
readBoolean in interface PersistenceInput
Throws:
java.io.IOException

readByte

public byte readByte()
              throws java.io.IOException
Specified by:
readByte in interface PersistenceInput
Throws:
java.io.IOException

readChar

public char readChar()
              throws java.io.IOException
Specified by:
readChar in interface PersistenceInput
Throws:
java.io.IOException

readDouble

public double readDouble()
                  throws java.io.IOException
Specified by:
readDouble in interface PersistenceInput
Throws:
java.io.IOException

readFloat

public float readFloat()
                throws java.io.IOException
Specified by:
readFloat in interface PersistenceInput
Throws:
java.io.IOException

readInt

public int readInt()
            throws java.io.IOException
Specified by:
readInt in interface PersistenceInput
Throws:
java.io.IOException

readLong

public long readLong()
              throws java.io.IOException
Specified by:
readLong in interface PersistenceInput
Throws:
java.io.IOException

readName

public java.lang.String readName()
                          throws java.io.IOException
Specified by:
readName in interface PersistenceInput
Throws:
java.io.IOException

readObject

public java.lang.Object readObject(int kind,
                                   Type type)
                            throws java.io.IOException
Specified by:
readObject in interface PersistenceInput
Throws:
java.io.IOException

readPersistentObject

public PersistenceCapable readPersistentObject()
                                        throws java.io.IOException
Specified by:
readPersistentObject in interface PersistenceInput
Throws:
java.io.IOException

readPersistentObjectId

public long readPersistentObjectId()
                            throws java.io.IOException
Specified by:
readPersistentObjectId in interface PersistenceInput
Throws:
java.io.IOException

readSharedObject

public Shareable readSharedObject()
                           throws java.io.IOException
Specified by:
readSharedObject in interface PersistenceInput
Throws:
java.io.IOException

readShort

public short readShort()
                throws java.io.IOException
Specified by:
readShort in interface PersistenceInput
Throws:
java.io.IOException

readString

public java.lang.String readString()
                            throws java.io.IOException
Specified by:
readString in interface PersistenceInput
Throws:
java.io.IOException

readUnsignedByte

public int readUnsignedByte()
                     throws java.io.IOException
Specified by:
readUnsignedByte in interface PersistenceInput
Throws:
java.io.IOException

readUnsignedShort

public int readUnsignedShort()
                      throws java.io.IOException
Specified by:
readUnsignedShort in interface PersistenceInput
Throws:
java.io.IOException

resolveId

public PersistenceCapable resolveId(long inputId)
Specified by:
resolveId in interface PersistenceInput

setNested

public void setNested(boolean nested)
Specified by:
setNested in interface PersistenceInput