public void toData(PdxWriter writer) { if(fieldOneFirst) { writer.writeString("field1", "hello"); writer.writeString("field2", "world"); } else { writer.writeString("field2", "world"); writer.writeString("field1", "hello"); } }
public void toData(PdxWriter out) { out.writeInt("ID", this.ID); out.writeString("pkid", this.pkid); out.writeObject("position1", this.position1); out.writeObject("position2", this.position2); out.writeObject("positions", this.positions); out.writeObject("collectionHolderMap", this.collectionHolderMap); out.writeString("type", this.type); out.writeString("status", this.status); out.writeStringArray("names", this.names); out.writeString("description", this.description); out.writeLong("createTime", this.createTime); // Write Position3. out.writeObjectArray("position3", this.position3); // Identity Field. out.markIdentityField("ID"); }
public void toData(PdxWriter out) { out.writeInt("ID", this.ID); out.writeString("pkid", this.pkid); out.writeObject("position1", this.position1); out.writeObject("position2", this.position2); out.writeObject("positions", this.positions); out.writeObject("collectionHolderMap", this.collectionHolderMap); out.writeString("type", this.type); out.writeString("status", this.status); out.writeStringArray("names", this.names); out.writeString("description", this.description); out.writeLong("createTime", this.createTime); // Write Position3. out.writeObjectArray("position3", this.position3); // Identity Field. out.markIdentityField("ID"); }
public void toData(PdxWriter writer) { writer.writeString("value", value); }
out.writeDate("field" + x++, change==x ? new Date(23L): new Date(25L)); out.writeString("field" + x++, change==x ? "hello": "world"); out.writeObject("field" + x++, change==x ? serializable1: serializable2 ); out.writeObject("field" + x++, change==x ? testPdx1: testPdx2 );
public void toData(PdxWriter writer) { writer.writeString("field1", "string"); }
out.writeDouble("aDouble", pdx.aDouble); out.writeDate("aDate", pdx.aDate); out.writeString("aString", pdx.aString); out.writeObject("anObject", pdx.anObject); out.writeObject("aMap", pdx.aMap);
@Override public void toData(PdxWriter writer) { writer.writeLong("f1", f1); writer.writeString("f2", f2); }
public void toData(PdxWriter out) { out.writeString("myString1", this.myString1); out.writeLong("myLong", this.myLong); out.writeObject("myDS", this.myDS); out.writeString("myString2", this.myString2); out.writeFloat("myFloat", this.myFloat); }
public void toData(PdxWriter out) { out.writeString("myString1", this.myString1); out.writeLong("myLong", this.myLong); // out.writeObject("myHashMap", this.myHashMap); out.writeObject("myHashMap", this.myHashMap); out.writeString("myString2", this.myString2); out.writeFloat("myFloat", this.myFloat); }
public void toData(PdxWriter out) { out.writeBoolean("myFlag", this.myFlag); out.writeShort("myShort", this.myShort); out.writeString("myString1", this.myString1); out.writeLong("myLong", this.myLong); out.writeString("myString2", this.myString2); out.writeString("myString3", this.myString3); out.writeInt("myInt", this.myInt); out.writeFloat("myFloat", this.myFloat); }
@Override public boolean toData(Object o, PdxWriter out) { if (o instanceof MyObjectPdx2) { MyObjectPdx2 obj = (MyObjectPdx2) o; out.writeLong("f1", obj.f1); out.writeString("f2", obj.f2); return true; } return auto.toData(o, out); }
public void toData(PdxWriter out) { out.writeLong("avg20DaysVol",this.avg20DaysVol); out.writeString("bondRating", this.bondRating); out.writeDouble("convRatio",this.convRatio); out.writeString("country", this.country); out.writeDouble("delta", this.delta); out.writeLong("industry", this.industry); out.writeLong("issuer", this.issuer); out.writeDouble("mktValue", this.mktValue); out.writeDouble("qty", this.qty); out.writeString("secId", this.secId); out.writeString("secIdIndexed", this.secIdIndexed); out.writeString("secLinks", this.secLinks); out.writeDouble("sharesOutstanding", this.sharesOutstanding); out.writeString("underlyer", this.underlyer); out.writeLong("volatility", this.volatility); out.writeInt("pid", this.pid); out.writeInt("portfolioId", this.portfolioId); // Identity Field. out.markIdentityField("secId"); }
public void toData(PdxWriter out) { //System.out.println("Is serializing in WAN: " + GatewayEventImpl.isSerializingValue()); out.writeInt("id", this.id); out.writeString("ticker", this._ticker); out.writeInt("price", this._price); out.writeObject("idTickers", this.idTickers); out.writeObject("positions", this.positions); out.writeObject("test", this.test); }