public class GCubeXMLRecord extends GCubeRecord
GCubeRecord implementation targeting a ResultSet Element that carries only an XML payload| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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
|
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, unbindpublic static final String DefaultValue
public static String RECORD_ID_NAME
public static String RECORD_COLLECTION_NAME
public static String RECORD_RANK_NAME
public GCubeXMLRecord()
public GCubeXMLRecord(String payload)
payload - the payloadpublic GCubeXMLRecord(String id, String collection)
id - the object idcollection - the collection idpublic GCubeXMLRecord(String id, String collection, String payload)
id - the object idcollection - the collection idpayload - the payloadpublic 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 therepayload - the payload to setGCubeBridgeException - the payload field could not be locatedpublic String getPayload() throws GCubeBridgeException
Field payload without the client needing to locate it and get it from thereGCubeBridgeException - the payload field could not be locatedpublic 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 serializationGCubeBridgeException - 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.GRS2RecordDefinitionExceptiongr.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.GRS2RecordSerializationExceptionpublic void extendReceiveFromXML(Element element) throws gr.uoa.di.madgik.grs.record.GRS2RecordSerializationException
gr.uoa.di.madgik.grs.record.GRS2RecordSerializationExceptionpublic 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()Copyright © 2015. All Rights Reserved.