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.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); }
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) { //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); }
public void toData(PdxWriter out) { out.writeInt("myInt", this.myInt); out.writeByte("myByte", this.myByte); out.writeObject("myEnum", this.myEnum); }
BasicAllFieldTypes pdx = (BasicAllFieldTypes) o; out.writeChar("aChar", pdx.aChar); out.writeBoolean("aBoolean", pdx.aBoolean); out.writeByte("aByte", pdx.aByte); out.writeShort("aShort", pdx.aShort); out.writeInt("anInt", pdx.anInt); out.writeLong("aLong", pdx.aLong); out.writeFloat("aFloat", pdx.aFloat); 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); out.writeObject("aCollection", pdx.aCollection); out.writeBooleanArray("aBooleanArray", pdx.aBooleanArray); out.writeCharArray("aCharArray", pdx.aCharArray); out.writeByteArray("aByteArray", pdx.aByteArray); out.writeShortArray("aShortArray", pdx.aShortArray); out.writeIntArray("anIntArray", pdx.anIntArray); out.writeLongArray("aLongArray", pdx.aLongArray); out.writeFloatArray("aFloatArray", pdx.aFloatArray); out.writeDoubleArray("aDoubleArray", pdx.aDoubleArray); out.writeStringArray("aStringArray", pdx.aStringArray); out.writeObjectArray("anObjectArray", pdx.anObjectArray); out.writeArrayOfByteArrays("anArrayOfByteArray", pdx.anArrayOfByteArray); return true; } else {
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) { out.writeInt("field2", 53); out.writeBoolean("field1", true); out.markIdentityField("field2"); } }));
public void toData(PdxWriter out) { out.writeBoolean("field1", false); out.writeInt("field2", 53); out.writeObject("field3", new TestPdx() { public void toData(PdxWriter writer) { writer.writeString("afield", "hello"); } }); } });
@Override public void toData(PdxWriter writer) { writer.writeLong("f1", f1); writer.writeString("f2", f2); }
@Override public void toData(PdxWriter writer) { writer.writeInt("int1", int1); }
public void toData(PdxWriter writer) { ((PdxWriterImpl)writer).setDoExtraValidation(true); writer.writeInt("fieldCount", this.fieldCount); for (int i=0; i < this.fieldCount; i++) { writer.writeField("f"+i, null, this.fieldType); } }
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 writer) { writer.writeLong("f1", this.v); }
public void toData(PdxWriter writer) { writer.writeObjectArray("f1", this.v); }
public void toData(PdxWriter writer) { writer.writeObject("f1", this.v); }
public void toData(PdxWriter writer) { writer.writeBoolean("field1", true); } });
out.writeChar("field" + x++, change==x ? 'c': 'd'); out.writeBoolean("field" + x++, change==x ? true: false); out.writeByte("field" + x++, (byte) (change==x ? 0x5: 0x6)); out.writeShort("field" + x++, (short) (change==x ? 7 : 8 )); out.writeInt("field" + x++, change==x ? 9 : 10 ); out.writeLong("field" + x++, change==x ? 55555555: 666666666); out.writeFloat("field" + x++, change==x ? 23.44f: 23.55f); out.writeDouble("field" + x++, change==x ? 28.7777: 29.3333); 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 ); out.writeObject("field" + x++, change==x ? map1: map2); out.writeObject("field" + x++, change==x ? collection1: collection2); out.writeBooleanArray("field" + x++, change==x ? new boolean[] {false, true}: new boolean[] {true, false}); out.writeCharArray("field" + x++, change==x ? new char[] {'a', 'b'}: new char[] {'a', 'c'} ); out.writeByteArray("field" + x++, change==x ? new byte[] {0, 1, 2}: new byte[] {0, 1, 3}); out.writeShortArray("field" + x++, change==x ? new short[] {0, 1, 4}: new short[] {0, 1, 5}); out.writeIntArray("field" + x++, change==x ? new int[] {0, 1, 4}: new int[] {0, 1, 5}); out.writeLongArray("field" + x++, change==x ? new long[] {0, 1, 4}: new long[] {0, 1, 5}); out.writeFloatArray("field" + x++, change==x ? new float[] {0, 1, 4}: new float[] {0, 1, 5}); out.writeDoubleArray("field" + x++, change==x ? new double[] {0, 1, 4}: new double[] {0, 1, 5}); out.writeStringArray("field" + x++, change==x ? new String[] {"a", "b"}: new String[] {"a", "c"}); out.writeObjectArray("field" + x++, change==x ? new Object[] {collection1, serializable1}: new Object[] {serializable2}); out.writeArrayOfByteArrays("field" + x++, change==x ? new byte[][] { {1, 2}}: new byte[][] { {2, 2}}); allFieldCount = x;
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.writeInt("field2", 53); out.writeBoolean("field1", false); out.markIdentityField("field2"); } }));