@Override public boolean next() throws IOException { if (removeCursor.next()) { return true; } else if (!returnedEvictionCompleted) { returnedEvictionCompleted = true; return true; } else { return false; } }
@Override public boolean next() throws IOException { if (++index < actions.size()) { return true; } boolean success = cursor.next(); if (success) { actions.add(cursor.getAction()); } return success; }
@Override public boolean next(DNAEncoding encoding) throws IOException, ClassNotFoundException { if (++index < actions.size()) { return true; } boolean success = cursor.next(encoding); if (success) { actions.add(cursor.getAction()); } return success; }
@Override public boolean next(DNAEncoding encoding) throws IOException, ClassNotFoundException { if (++index < actions.size()) { return true; } boolean success = cursor.next(encoding); if (success) { actions.add(cursor.getAction()); } return success; }
@Override public boolean next() throws IOException { if (++index < actions.size()) { return true; } boolean success = cursor.next(); if (success) { actions.add(cursor.getAction()); } return success; }
private void addActions(final DNAWriter dnaWriter, final DNACursor cursor, final DNAEncoding decoder, final DNA dna) throws IOException, ClassNotFoundException { while (cursor.next(decoder)) { final Object action = cursor.getAction(); if (action instanceof PhysicalAction) { writePhysicalAction(dnaWriter, (PhysicalAction) action); } else if (action instanceof LogicalAction) { writeLogicalAction(dnaWriter, (LogicalAction) action); } else if (action instanceof LiteralAction) { writeLiteralAction(dnaWriter, (LiteralAction) action); } else { throw new AssertionError("Unknown action type : " + action + " in dna : " + dna); } } }
@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 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(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 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; } }
@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 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; } }
@Override public void hydrate(ClientObjectManager objectManager, TCObject tcObject, DNA dna, Object po) throws IOException, ClassNotFoundException { DNACursor cursor = dna.getCursor(); String fieldName; Object fieldValue; while (cursor.next(encoding)) { PhysicalAction a = cursor.getPhysicalAction(); Assert.eval(a.isTruePhysical()); fieldName = a.getFieldName(); fieldValue = a.getObject(); tcObject.setValue(fieldName, fieldValue); } }
@Override public void hydrate(ClientObjectManager objectManager, TCObject tcObject, DNA dna, Object po) throws IOException, ClassNotFoundException { DNACursor cursor = dna.getCursor(); String fieldName; Object fieldValue; while (cursor.next(encoding)) { PhysicalAction a = cursor.getPhysicalAction(); Assert.eval(a.isTruePhysical()); fieldName = a.getFieldName(); fieldValue = a.getObject(); tcObject.setValue(fieldName, fieldValue); } }
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()); } } } }
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()); } } } }
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()); } } } }
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()); } } } }