private void parseEntireArray(final DNAEncodingInternal encoding) throws IOException, ClassNotFoundException { final Object array = encoding.decode(this.input); this.currentAction = new PhysicalAction(array); }
private void parseLiteralValue(final DNAEncodingInternal encoding) throws IOException, ClassNotFoundException { final Object value = encoding.decode(this.input); this.currentAction = new LiteralAction(value); }
private void writeLogicalAction(final DNAWriter dnaWriter, final LogicalAction action) { dnaWriter.addLogicalAction(action.getMethod(), action.getParameters()); }
public void hydrate(final ApplicatorObjectManager objectManager, final TCObjectExternal tco, final DNA dna, final Object pojo) throws IOException, ClassNotFoundException { DNACursor cursor = dna.getCursor(); while (cursor.next(encoding)) { PhysicalAction a = cursor.getPhysicalAction(); if (a.isEntireArray()) { tco.setValue(VALUE_FIELD, a.getObject()); } else { tco.setValue(a.getFieldName(), a.getObject()); } } } }
@Override public void hydrate(final ClientObjectManager objectManager, final TCObject tco, final DNA dna, final Object po) throws IOException, ClassNotFoundException { final DNACursor cursor = dna.getCursor(); while (cursor.next(this.encoding)) { final LogicalAction action = cursor.getLogicalAction(); final int method = action.getMethod(); final Object[] params = action.getParameters(); apply(objectManager, po, method, params); } }
@Override public Object getNewInstance(ClientObjectManager objectManager, DNA dna) throws IOException, ClassNotFoundException { DNACursor cursor = dna.getCursor(); Assert.assertEquals(1, cursor.getActionCount()); cursor.next(encoding); LiteralAction a = (LiteralAction) cursor.getAction(); Object value = a.getObject(); return value; } }
private void dehydrateFields(ObjectID objectId, DNAWriter writer) { writer.addPhysicalAction(TAKE_LOCK_FIELD_NAME, takeLockField); writer.addPhysicalAction(PUT_LOCK_FIELD_NAME, putLockField); writer.addPhysicalAction(CAPACITY_FIELD_NAME, capacityField); }
private void dehydrateMembers(ObjectID objectID, DNAWriter writer) { for (Object reference : references) { writer.addLogicalAction(SerializationUtil.PUT, new Object[] { reference }); } }
private void writeLiteralAction(final DNAWriter dnaWriter, final LiteralAction action) { dnaWriter.addLiteralValue(action.getObject()); }
@Override public boolean hasMetaData() { return dna instanceof DNAInternal ? ((DNAInternal) dna).hasMetaData() : false; } }
public void hydrate(final ApplicatorObjectManager objectManager, final TCObjectExternal tco, final DNA dna, final Object pojo) throws IOException, ClassNotFoundException { DNACursor cursor = dna.getCursor(); while (cursor.next(encoding)) { PhysicalAction a = cursor.getPhysicalAction(); if (a.isEntireArray()) { tco.setValue(VALUE_FIELD, a.getObject()); } else { tco.setValue(a.getFieldName(), a.getObject()); } } } }
@Override public void hydrate(final ClientObjectManager objectManager, final TCObject tco, final DNA dna, final Object po) throws IOException, ClassNotFoundException { final DNACursor cursor = dna.getCursor(); while (cursor.next(this.encoding)) { final LogicalAction action = cursor.getLogicalAction(); final int method = action.getMethod(); final Object[] params = action.getParameters(); apply(objectManager, po, method, params); } }
@Override public Object getNewInstance(ClientObjectManager objectManager, DNA dna) throws IOException, ClassNotFoundException { DNACursor cursor = dna.getCursor(); Assert.assertEquals(1, cursor.getActionCount()); cursor.next(encoding); LiteralAction a = (LiteralAction) cursor.getAction(); Object value = a.getObject(); return value; } }
private void parseEntireArray(final DNAEncodingInternal encoding) throws IOException, ClassNotFoundException { final Object array = encoding.decode(this.input); this.currentAction = new PhysicalAction(array); }
private void parseLiteralValue(final DNAEncodingInternal encoding) throws IOException, ClassNotFoundException { final Object value = encoding.decode(this.input); this.currentAction = new LiteralAction(value); }
public void hydrate(final ClientObjectManager objMgr, final TCObject tco, final DNA dna, final Object pojo) throws IOException, ClassNotFoundException { DNACursor cursor = dna.getCursor(); while (cursor.next(encoding)) { PhysicalAction a = cursor.getPhysicalAction(); if (a.isEntireArray()) { tco.setValue(VALUE_FIELD, a.getObject()); } else { tco.setValue(a.getFieldName(), a.getObject()); } } } }
@Override public void hydrate(ClientObjectManager objectManager, TCObject tcObject, DNA dna, Object pojo) throws IOException, ClassNotFoundException { Set set = (Set) pojo; DNACursor cursor = dna.getCursor(); while (cursor.next(encoding)) { LogicalAction action = cursor.getLogicalAction(); int method = action.getMethod(); Object[] params = action.getParameters(); apply(objectManager, set, method, params); } }
@Override public void hydrate(ClientObjectManager objectManager, TCObject tcObject, DNA dna, Object po) throws IOException, ClassNotFoundException { DNACursor cursor = dna.getCursor(); while (cursor.next(encoding)) { LiteralAction a = (LiteralAction) cursor.getAction(); Object value = a.getObject(); tcObject.setLiteralValue(value); } }
@Override public void hydrate(ClientObjectManager objectManager, TCObject tcObject, DNA dna, Object pojo) throws IOException, ClassNotFoundException { Set set = (Set) pojo; DNACursor cursor = dna.getCursor(); while (cursor.next(encoding)) { LogicalAction action = cursor.getLogicalAction(); int method = action.getMethod(); Object[] params = action.getParameters(); apply(objectManager, set, method, params); } }
@Override public void hydrate(ClientObjectManager objectManager, TCObject tcObject, DNA dna, Object po) throws IOException, ClassNotFoundException { DNACursor cursor = dna.getCursor(); while (cursor.next(encoding)) { LiteralAction a = (LiteralAction) cursor.getAction(); Object value = a.getObject(); tcObject.setLiteralValue(value); } }