gr.uoa.di.madgik.grs.record
Class GenericRecord

java.lang.Object
  extended by gr.uoa.di.madgik.grs.record.Record
      extended by gr.uoa.di.madgik.grs.record.GenericRecord
All Implemented Interfaces:
IPumpable

public class GenericRecord
extends Record

This Record extending class acts as a generic placeholder for records. It does not add much in the general definition provided by the Record super class, other than supplying a readily available, non abstract implementation

Author:
gpapanikos

Constructor Summary
GenericRecord()
           
 
Method Summary
 void extendDeflate(java.io.DataOutput out)
          The method all Record implementations should implement to add any information they keep during deflate
 void extendDispose()
          Method to be implemented by Record extenders to dispose any internally kept state
 void extendInflate(java.io.DataInput in, boolean reset)
          The method all Record implementations should implement to read any information they deflated
 void extendReceive(java.io.DataInput in)
          The method all Record implementations should implement to read any information they send during transfer
 void extendReceiveFromXML(org.w3c.dom.Element element)
           
 void extendSend(java.io.DataOutput out)
          The method all Record implementations should implement to add any information they keep during transfer
 void extendSendToXML(org.w3c.dom.Document doc, org.w3c.dom.Element element)
           
 
Methods inherited from class gr.uoa.di.madgik.grs.record.Record
bind, deflate, dispose, fromXML, getDefinition, getDefinitionIndex, getField, getField, getFields, getID, hide, inflate, inflate, isBoundTo, isRemoteCopy, makeAvailable, makeAvailable, makeAvailable, makeLocal, markActivity, prebind, receive, receiveFromXML, requestPartial, resolveTransportDirective, send, sendToXML, setDefinitionIndex, setFields, setRemoteCopy, show, toXML, unbind
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericRecord

public GenericRecord()
Method Detail

extendSend

public void extendSend(java.io.DataOutput out)
                throws GRS2RecordSerializationException
The method all Record implementations should implement to add any information they keep during transfer

Nothing is added to the send serialization

Specified by:
extendSend in class Record
Parameters:
out - the stream to transfer through
Throws:
GRS2RecordSerializationException - Information serialization problem
See Also:
Record.extendSend(java.io.DataOutput)

extendReceive

public void extendReceive(java.io.DataInput in)
                   throws GRS2RecordSerializationException
The method all Record implementations should implement to read any information they send during transfer

Nothing is read from the receive serialization

Specified by:
extendReceive in class Record
Parameters:
in - the stream to read from
Throws:
GRS2RecordSerializationException - Information deserialization error
See Also:
Record.extendReceive(java.io.DataInput)

extendSendToXML

public void extendSendToXML(org.w3c.dom.Document doc,
                            org.w3c.dom.Element element)
                     throws GRS2RecordSerializationException
Specified by:
extendSendToXML in class Record
Throws:
GRS2RecordSerializationException

extendReceiveFromXML

public void extendReceiveFromXML(org.w3c.dom.Element element)
                          throws GRS2RecordSerializationException
Specified by:
extendReceiveFromXML in class Record
Throws:
GRS2RecordSerializationException

extendDispose

public void extendDispose()
Method to be implemented by Record extenders to dispose any internally kept state

Nothing is disposed. No internal resources managed

Specified by:
extendDispose in class Record
See Also:
Record.extendDispose()

extendDeflate

public void extendDeflate(java.io.DataOutput out)
                   throws GRS2RecordSerializationException
The method all Record implementations should implement to add any information they keep during deflate

Nothing is added to the deflate serialization

Specified by:
extendDeflate in class Record
Parameters:
out - the stream to deflate to
Throws:
GRS2RecordSerializationException - Information serialization problem
See Also:
Record.extendDeflate(java.io.DataOutput)

extendInflate

public void extendInflate(java.io.DataInput in,
                          boolean reset)
                   throws GRS2RecordSerializationException
The method all Record implementations should implement to read any information they deflated

Nothing is read from the inflate serialization

Specified by:
extendInflate in class Record
Parameters:
in - the stream to inflate from
reset - whether or not the inflated information should be reset to drop any information previously stored concerning transfers performed by the Field
Throws:
GRS2RecordSerializationException - Information deserialization error
See Also:
Record.extendInflate(java.io.DataInput, boolean)