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