1 17 package org.apache.servicemix.jdbc.adapter; 18 19 import java.sql.PreparedStatement ; 20 import java.sql.ResultSet ; 21 import java.sql.SQLException ; 22 23 33 public class BytesJDBCAdapter extends DefaultJDBCAdapter { 34 35 36 39 protected byte[] getBinaryData(ResultSet rs, int index) throws SQLException { 40 return rs.getBytes(index); 41 } 42 43 46 protected void setBinaryData(PreparedStatement s, int index, byte[] data) throws SQLException { 47 s.setBytes(index, data); 48 } 49 50 } | Popular Tags |