1 2 12 package com.versant.core.jdbc.sql.conv; 13 14 import com.versant.core.jdbc.JdbcConverter; 15 import com.versant.core.jdbc.JdbcConverterFactory; 16 import com.versant.core.jdbc.metadata.JdbcColumn; 17 18 import java.sql.PreparedStatement ; 19 import java.sql.SQLException ; 20 import java.sql.ResultSet ; 21 22 import javax.jdo.JDOFatalDataStoreException; 24 import com.versant.core.common.BindingSupportImpl; 25 26 41 public abstract class JdbcConverterBase implements JdbcConverter { 42 43 49 public boolean isOracleStyleLOB() { 50 return false; 51 } 52 53 58 public String getOracleStyleLOBNotNullString() { 59 return null; 60 } 61 62 67 public abstract Object get(ResultSet rs, int index, JdbcColumn col) 68 throws SQLException , JDOFatalDataStoreException; 69 70 71 72 73 74 79 public abstract void set(PreparedStatement ps, int index, JdbcColumn col, 80 Object value) throws SQLException , JDOFatalDataStoreException; 81 82 89 public void set(PreparedStatement ps, int index, JdbcColumn col, int value) 90 throws SQLException , JDOFatalDataStoreException { 91 throw BindingSupportImpl.getInstance().fatalDatastore("set(..int) called"); 92 } 93 94 101 public void set(ResultSet rs, int index, JdbcColumn col, Object value) 102 throws SQLException , JDOFatalDataStoreException { 103 throw BindingSupportImpl.getInstance().fatalDatastore("set(rs..) called"); 104 } 105 106 110 public abstract Class getValueType(); 111 112 } 113 114 | Popular Tags |