1 2 12 package com.versant.core.jdbc.sql.conv; 13 14 import com.versant.core.jdbc.JdbcConverter; 15 16 21 public class ByteArrayConverter extends TypeAsBytesConverterBase { 22 23 public static class Factory extends TypeAsBytesConverterBase.Factory { 24 25 protected JdbcConverter createConverter(JdbcConverter nested) { 26 return new ByteArrayConverter(nested); 27 } 28 29 } 30 31 public ByteArrayConverter(JdbcConverter nested) { 32 super(nested); 33 } 34 35 38 protected Object fromByteArray(byte[] buf) { 39 return buf; 40 } 41 42 45 protected byte[] toByteArray(Object value) { 46 return (byte[])value; 47 } 48 49 53 public Class getValueType() { 54 return byte[].class; 55 } 56 57 } 58 59 | Popular Tags |