public void writeColumn(ObjectOutput out, int col, List<? extends List<?>> batch, Map<Object, Integer> cache, byte version) throws IOException { writeIsNullData(out, col, batch); Object obj = null; for (int i = 0; i < batch.size(); i++) { obj = batch.get(i).get(col); if (obj != null) { writeObject(out, obj, cache, version); } } }
public void writeColumn(ObjectOutput out, int col, List<? extends List<?>> batch, Map<Object, Integer> cache, byte version) throws IOException { writeIsNullData(out, col, batch); Object obj = null; for (int i = 0; i < batch.size(); i++) { obj = batch.get(i).get(col); if (obj != null) { writeObject(out, obj, cache, version); } } }
protected void writeObject(ObjectOutput out, Object obj, int code, Map<Object, Integer> cache, byte effectiveVersion) throws IOException { if (code == DataTypeManager.DefaultTypeCodes.BOOLEAN) { if (Boolean.TRUE.equals(obj)) { out.write((byte)1); } else { out.write((byte)0); } } else if (code == DataTypeManager.DefaultTypeCodes.OBJECT) { super.writeObject(out, obj, cache, effectiveVersion); } else { String name = DataTypeManager.getDataTypeName(obj.getClass()); ColumnSerializer s = getSerializer(name, effectiveVersion); s.writeObject(out, obj, cache, effectiveVersion); } }
protected void writeObject(ObjectOutput out, Object obj, int code, Map<Object, Integer> cache, byte effectiveVersion) throws IOException { if (code == DataTypeManager.DefaultTypeCodes.BOOLEAN) { if (Boolean.TRUE.equals(obj)) { out.write((byte)1); } else { out.write((byte)0); } } else if (code == DataTypeManager.DefaultTypeCodes.OBJECT) { super.writeObject(out, obj, cache, effectiveVersion); } else { String name = DataTypeManager.getDataTypeName(obj.getClass()); ColumnSerializer s = getSerializer(name, effectiveVersion); s.writeObject(out, obj, cache, effectiveVersion); } }
@Override protected void writeObject(ObjectOutput out, Object obj, Map<Object, Integer> cache, byte version) throws IOException { try { super.writeObject(out, ((java.sql.Array)obj).getArray(), cache, version); } catch (SQLException e) { throw new IOException(e); } }
@Override protected void writeObject(ObjectOutput out, Object obj, Map<Object, Integer> cache, byte version) throws IOException { //uses object serialization for compatibility with legacy clients super.writeObject(out, ((BinaryType)obj).getBytesDirect(), cache, version); }
@Override protected void writeObject(ObjectOutput out, Object obj, Map<Object, Integer> cache, byte version) throws IOException { //uses object serialization for compatibility with legacy clients super.writeObject(out, ((BinaryType)obj).getBytesDirect(), cache, version); }
@Override protected void writeObject(ObjectOutput out, Object obj, Map<Object, Integer> cache, byte version) throws IOException { try { super.writeObject(out, ((java.sql.Array)obj).getArray(), cache, version); } catch (SQLException e) { throw new IOException(e); } }