@Override public void runInternal() { try { if (isDistributed) session.getParentTransaction().addLocalTransactionNames(transfer.readString()); resultAL.set(transfer.readLong()); } catch (IOException e) { throw DbException.convert(e); } } };
/** * Read the parameter meta data from the transfer object. * * @param transfer the transfer object */ public void readMetaData(Transfer transfer) throws IOException { dataType = transfer.readInt(); precision = transfer.readLong(); scale = transfer.readInt(); nullable = transfer.readInt(); }
/** * Read an object from the given transfer object. * * @param in the object from where to read the data */ ClientResultColumn(Transfer in) throws IOException { alias = in.readString(); schemaName = in.readString(); tableName = in.readString(); columnName = in.readString(); columnType = in.readInt(); precision = in.readLong(); scale = in.readInt(); displaySize = in.readInt(); autoIncrement = in.readBoolean(); nullable = in.readInt(); } }
return ValueJavaObject.getNoCopy(null, readBytes()); case Value.UUID: return ValueUuid.get(readLong(), readLong()); case Value.BOOLEAN: return ValueBoolean.get(readBoolean()); return ValueByte.get(readByte()); case Value.DATE: return ValueDate.fromDateValue(readLong()); case Value.TIME: return ValueTime.fromNanos(readLong()); case Value.TIMESTAMP: return ValueTimestamp.fromDateValueAndNanos(readLong(), readLong()); case Value.DECIMAL: return ValueDecimal.get(new BigDecimal(readString())); return ValueInt.get(readInt()); case Value.LONG: return ValueLong.get(readLong()); case Value.STRING: return ValueString.get(readString()); case Value.BLOB: case Value.CLOB: { long length = readLong(); if (length == -1) { int tableId = readInt(); long id = readLong(); byte[] hmac = readBytes();
@Override public void runInternal() { try { if (isDistributedUpdate) session.getParentTransaction().addLocalTransactionNames(transfer.readString()); int updateCount = transfer.readInt(); long key = transfer.readLong(); if (commandUpdateResult != null) { commandUpdateResult.setUpdateCount(updateCount); commandUpdateResult.addResult(ClientCommand.this, key); } setResult(updateCount); if (handler != null) { AsyncResult<Integer> r = new AsyncResult<>(); r.setResult(updateCount); handler.handle(r); } } catch (IOException e) { throw DbException.convert(e); } } };
long validKey = transfer.readLong(); boolean autoCommit = transfer.readBoolean(); session.replicationCommit(validKey, autoCommit); Math.max(SysProperties.SERVER_CACHED_OBJECTS, SysProperties.SERVER_RESULT_SET_FETCH_SIZE * 5)); long lobId = transfer.readLong(); byte[] hmac = transfer.readBytes(); CachedInputStream in = lobs.get(lobId); lobs.put(lobId, in); long offset = transfer.readLong(); int length = transfer.readInt(); transfer.verifyLobMac(hmac, lobId);