de.grogra.persistence
Class XAQueue
java.lang.Object
java.io.OutputStream
de.grogra.util.OutputQueue
de.grogra.util.HierarchicalQueue
de.grogra.persistence.XAQueue
- All Implemented Interfaces:
- PersistenceOutput, java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.io.ObjectOutput
- Direct Known Subclasses:
- ModificationQueue, Transaction
public abstract class XAQueue
- extends HierarchicalQueue
- implements PersistenceOutput
Methods inherited from class de.grogra.util.HierarchicalQueue |
beginLevel, beginSkipBlock, cloneData, discardLevel, endLevel, endSkipBlock, getCursor, getData, hasItems, hasItemsInCurrentLevel, moveTo, restore, setItemSize, writeItem, writeObject, writeObjectInStream |
Methods inherited from class de.grogra.util.OutputQueue |
close, dump, flush, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeObjectInQueue, writeShort, writeUTF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.ObjectOutput |
close, flush, write, write, write |
Methods inherited from interface java.io.DataOutput |
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
cache
protected BindingsCache cache
manager
protected final PersistenceManager manager
XAQueue
public XAQueue(PersistenceManager manager,
boolean createBackLinks)
beginArray
public void beginArray(int length,
Type type)
throws java.io.IOException
- Specified by:
beginArray
in interface PersistenceOutput
- Throws:
java.io.IOException
beginField
public void beginField(ManageableType.Field field)
- Specified by:
beginField
in interface PersistenceOutput
beginFields
public void beginFields()
- Specified by:
beginFields
in interface PersistenceOutput
beginManaged
public boolean beginManaged(ManageableType type,
boolean writeType)
- Specified by:
beginManaged
in interface PersistenceOutput
clear
public void clear()
- Overrides:
clear
in class HierarchicalQueue
createData
protected XAQueue.Data createData()
- Overrides:
createData
in class HierarchicalQueue
endArray
public void endArray()
- Specified by:
endArray
in interface PersistenceOutput
endField
public void endField(ManageableType.Field field)
- Specified by:
endField
in interface PersistenceOutput
endFields
public void endFields()
- Specified by:
endFields
in interface PersistenceOutput
endManaged
public void endManaged(java.lang.Object object,
boolean writeType)
- Specified by:
endManaged
in interface PersistenceOutput
getPersistenceManager
public final PersistenceManager getPersistenceManager()
setNested
public void setNested(boolean nested)
- Specified by:
setNested
in interface PersistenceOutput
writeComponentSeparator
public void writeComponentSeparator()
writeName
public void writeName(java.lang.String value)
- Specified by:
writeName
in interface PersistenceOutput
writeNullObject
public void writeNullObject()
- Specified by:
writeNullObject
in interface PersistenceOutput
writeObject
public void writeObject(java.lang.Object object,
Type type)
throws java.io.IOException
- Specified by:
writeObject
in interface PersistenceOutput
- Throws:
java.io.IOException
writePersistentObjectReference
public final void writePersistentObjectReference(PersistenceCapable o)
- Specified by:
writePersistentObjectReference
in interface PersistenceOutput
writeSharedObjectReference
public final void writeSharedObjectReference(Shareable o)
- Specified by:
writeSharedObjectReference
in interface PersistenceOutput
writeString
public void writeString(java.lang.String value)
- Specified by:
writeString
in interface PersistenceOutput
writeStringObject
public void writeStringObject(java.lang.String value)
- Specified by:
writeStringObject
in interface PersistenceOutput