1 2 12 package com.versant.core.jdbc; 13 14 import com.versant.core.jdbc.metadata.JdbcColumn; 15 16 import javax.jdo.JDOFatalDataStoreException; 18 import java.sql.PreparedStatement ; 19 import java.sql.SQLException ; 20 import java.sql.ResultSet ; 21 22 28 public interface JdbcConverter { 29 30 36 public boolean isOracleStyleLOB(); 37 38 43 public String getOracleStyleLOBNotNullString(); 44 45 50 public Object get(ResultSet rs, int index, JdbcColumn col) 51 throws SQLException , JDOFatalDataStoreException; 52 53 54 55 56 63 public void set(PreparedStatement ps, int index, JdbcColumn col, Object value) 64 throws SQLException , JDOFatalDataStoreException; 65 66 73 public void set(PreparedStatement ps, int index, JdbcColumn col, int value) 74 throws SQLException , JDOFatalDataStoreException; 75 76 83 public void set(ResultSet rs, int index, JdbcColumn col, Object value) 84 throws SQLException , JDOFatalDataStoreException; 85 86 92 public Class getValueType(); 93 } 94 | Popular Tags |