/** * Defines the record after fields are defined */ public void selectStruct(Object assoc) { selectStruct(Pipe.structRegistry(channelWriter.backingPipe).structLookupByIdentity(assoc)); }
/** * Defines the record after fields are defined */ public void selectStruct(Object assoc) { selectStruct(Pipe.structRegistry(channelWriter.backingPipe).structLookupByIdentity(assoc)); }
/** * Defines the record after fields are defined */ public void selectStruct(Object assoc) { selectStruct(Pipe.structRegistry(channelWriter.backingPipe).structLookupByIdentity(assoc)); }
public boolean productAll(HTTPRequestReader request) { return publishService.publishTopic((w)->{ StructuredWriter target = w.structured(); target.writeLong(Field.CONNECTION, request.getConnectionId()); target.writeLong(Field.SEQUENCE, request.getSequenceCode()); target.selectStruct(Struct.DB_ALL_QUERY); }); }
structOut.selectStruct(Struct.RESPONSE);
public boolean productQuery(HTTPRequestReader request) { StructuredReader source = request.structured(); return publishService.publishTopic((w)->{ StructuredWriter target = w.structured(); target.writeInt(Field.ID, source.readInt(Field.ID)); target.writeLong(Field.CONNECTION, request.getConnectionId()); target.writeLong(Field.SEQUENCE, request.getSequenceCode()); target.selectStruct(Struct.DB_PRODUCT_QUERY); }); }
public boolean productUpdate(HTTPRequestReader request) { StructuredReader source = request.structured(); return publishService.publishTopic((w)->{ //write update message with new payload plus sequence and connectionID StructuredWriter target = w.structured(); target.writeInt(Field.ID, source.readInt(Field.ID)); target.writeInt(Field.QUANTITY, source.readInt(Field.QUANTITY)); target.writeBoolean(Field.DISABLED, source.readBoolean(Field.DISABLED)); //source.readText(Field.NAME, target.writeText(Field.NAME)); //Broken?? target.writeText(Field.NAME, source.readText(Field.NAME)); target.writeLong(Field.CONNECTION, request.getConnectionId()); target.writeLong(Field.SEQUENCE, request.getSequenceCode()); target.selectStruct(Struct.DB_PRODUCT_UPDATE); }); }