1 18 package org.apache.activemq.store.jdbc.adapter; 19 20 import java.sql.Blob ; 21 import java.sql.ResultSet ; 22 import java.sql.SQLException ; 23 24 import org.apache.activemq.store.jdbc.Statements; 25 26 46 public class OracleJDBCAdapter extends BlobJDBCAdapter { 47 48 public void setStatements(Statements statements) { 49 statements.setLongDataType("NUMBER"); 50 super.setStatements(statements); 51 } 52 53 protected byte[] getBinaryData(ResultSet rs, int index) throws SQLException { 54 Blob aBlob = rs.getBlob(index); 56 if (aBlob == null) { 57 return null; 58 } 59 return aBlob.getBytes(1, (int) aBlob.length()); 60 } 61 } 62 | Popular Tags |