@Test public void testToColumnValue() throws Exception { ByteArrayConverter converter = new ByteArrayConverter(); assertNull(converter.toColumnValue(null)); byte[] bytes = "Hello".getBytes(); ByteBuffer buffer = ByteBuffer.wrap(bytes); assertEquals(buffer, converter.toColumnValue(bytes)); }
@Override public Object toColumnValue(Object value) { return value == null ? null : ByteBuffer.wrap((byte[]) value); }
ByteArrayConverter implements Converter { @Override public Object toColumnValue(Object value) { return value == null ? null : ByteBuffer.wrap((byte[]) value); } }
ByteArrayConverter implements Converter { @Override public Object toColumnValue(Object value) { return value == null ? null : ByteBuffer.wrap((byte[]) value); }  }
ByteArrayConverter implements Converter { @Override public Object toColumnValue(Object value) { return value == null ? null : ByteBuffer.wrap((byte[]) value); }  @Override DataType getDataType(); @Override Class<?> getValueType(); @Override Object toColumnValue(Object value); @Override Object toFacetValue(Object value); }
ByteArrayConverter implements Converter { @Override public Object toColumnValue(Object value) { return value == null ? null : ByteBuffer.wrap((byte[]) value); }  @Override DataType getDataType(); @Override Class<?> getValueType(); @Override Object toColumnValue(Object value); @Override Object toFacetValue(Object value);  }