|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.grs.record.Record
gr.uoa.di.madgik.grs.bridge.GCubeRecord
gr.uoa.di.madgik.grs.bridge.xml.GCubeXMLRecord
public class GCubeXMLRecord
GCubeRecord implementation targeting a ResultSet Element that carries only an XML payload
| Field Summary | |
|---|---|
static String |
DefaultValue
Default value for id, collection and rank |
static String |
RECORD_COLLECTION_NAME
|
static String |
RECORD_ID_NAME
|
static String |
RECORD_RANK_NAME
|
| Constructor Summary | |
|---|---|
GCubeXMLRecord()
Create a new instance |
|
GCubeXMLRecord(String payload)
Create a new instance |
|
GCubeXMLRecord(String id,
String collection)
Create a new instance |
|
GCubeXMLRecord(String id,
String collection,
String payload)
Create a new instance |
|
GCubeXMLRecord(String id,
String collection,
String rank,
String payload)
Create a new instance |
|
| Method Summary | |
|---|---|
String |
downgrade()
Downgrade the record to a string serialization that is compatible to the serialization of an "old style" ResultSet record |
void |
extendDeflate(DataOutput out)
|
void |
extendDispose()
|
void |
extendInflate(DataInput in,
boolean reset)
|
protected void |
extendMakeLocal()
|
void |
extendReceive(DataInput in)
|
void |
extendReceiveFromXML(Element element)
|
void |
extendSend(DataOutput out)
|
void |
extendSendToXML(Document doc,
Element element)
|
String |
getCollection()
Collection ID value |
gr.uoa.di.madgik.grs.record.field.StringField |
getField(String name)
|
String |
getId()
Object ID value |
String |
getPayload()
Utility function returning the Field payload without the client needing to locate it and get it from there |
String |
getRank()
Rank value |
void |
setCollection(String collection)
Collection ID value |
void |
setId(String id)
Object ID value |
void |
setPayload(String payload)
Utility function setting the Field payload without the client needing to locate it and set it there |
void |
setRank(String rank)
Rank value |
void |
upgrade(String record)
Upgrade from the provided "old style" ResultSet record serialization to the provided record |
| Methods inherited from class gr.uoa.di.madgik.grs.record.Record |
|---|
bind, deflate, dispose, fromXML, getDefinition, getDefinitionIndex, getField, getFields, getID, hide, inflate, inflate, isBoundTo, isRemoteCopy, makeAvailable, makeAvailable, makeAvailable, makeLocal, markActivity, prebind, receive, receiveFromXML, requestPartial, resolveTransportDirective, send, sendToXML, setDefinitionIndex, setFields, setID, setRemoteCopy, show, toXML, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DefaultValue
public static String RECORD_ID_NAME
public static String RECORD_COLLECTION_NAME
public static String RECORD_RANK_NAME
| Constructor Detail |
|---|
public GCubeXMLRecord()
public GCubeXMLRecord(String payload)
payload - the payload
public GCubeXMLRecord(String id,
String collection)
id - the object idcollection - the collection id
public GCubeXMLRecord(String id,
String collection,
String payload)
id - the object idcollection - the collection idpayload - the payload
public GCubeXMLRecord(String id,
String collection,
String rank,
String payload)
id - the object idcollection - the collection idrank - the rankpayload - the payload| Method Detail |
|---|
public void setId(String id)
id - Object ID valuepublic String getId()
public void setCollection(String collection)
collection - Collection ID valuepublic String getCollection()
public void setRank(String rank)
rank - rank valuepublic String getRank()
public void setPayload(String payload)
throws GCubeBridgeException
Field payload without the client needing to locate it and set it there
payload - the payload to set
GCubeBridgeException - the payload field could not be located
public String getPayload()
throws GCubeBridgeException
Field payload without the client needing to locate it and get it from there
GCubeBridgeException - the payload field could not be located
public String downgrade()
throws GCubeBridgeException
downgrade in class GCubeRecordGCubeBridgeException - the downgrade could not be performedGCubeRecord.downgrade()
public void upgrade(String record)
throws GCubeBridgeException
upgrade in class GCubeRecordrecord - the ResultSet record serialization
GCubeBridgeException - the upgrade could not be performedGCubeRecord.upgrade(java.lang.String)
public gr.uoa.di.madgik.grs.record.field.StringField getField(String name)
throws gr.uoa.di.madgik.grs.record.GRS2RecordDefinitionException,
gr.uoa.di.madgik.grs.buffer.GRS2BufferException
getField in class gr.uoa.di.madgik.grs.record.Recordgr.uoa.di.madgik.grs.record.GRS2RecordDefinitionException
gr.uoa.di.madgik.grs.buffer.GRS2BufferExceptionRecord.getField(java.lang.String)
public void extendSend(DataOutput out)
throws gr.uoa.di.madgik.grs.record.GRS2RecordSerializationException
extendSend in class gr.uoa.di.madgik.grs.record.Recordgr.uoa.di.madgik.grs.record.GRS2RecordSerializationExceptionRecord.extendSend(java.io.DataOutput)
public void extendReceive(DataInput in)
throws gr.uoa.di.madgik.grs.record.GRS2RecordSerializationException
extendReceive in class gr.uoa.di.madgik.grs.record.Recordgr.uoa.di.madgik.grs.record.GRS2RecordSerializationExceptionRecord.extendReceive(java.io.DataInput)
public void extendSendToXML(Document doc,
Element element)
throws gr.uoa.di.madgik.grs.record.GRS2RecordSerializationException
gr.uoa.di.madgik.grs.record.GRS2RecordSerializationException
public void extendReceiveFromXML(Element element)
throws gr.uoa.di.madgik.grs.record.GRS2RecordSerializationException
gr.uoa.di.madgik.grs.record.GRS2RecordSerializationException
public void extendDeflate(DataOutput out)
throws gr.uoa.di.madgik.grs.record.GRS2RecordSerializationException
extendDeflate in class gr.uoa.di.madgik.grs.record.Recordgr.uoa.di.madgik.grs.record.GRS2RecordSerializationExceptionRecord.extendDeflate(java.io.DataOutput)
public void extendInflate(DataInput in,
boolean reset)
throws gr.uoa.di.madgik.grs.record.GRS2RecordSerializationException
extendInflate in class gr.uoa.di.madgik.grs.record.Recordgr.uoa.di.madgik.grs.record.GRS2RecordSerializationExceptionRecord.extendInflate(java.io.DataInput, boolean)protected void extendMakeLocal()
extendMakeLocal in class gr.uoa.di.madgik.grs.record.RecordRecord.extendMakeLocal()public void extendDispose()
extendDispose in class gr.uoa.di.madgik.grs.record.RecordRecord.extendDispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||