1 16 package com.ibatis.sqlmap.engine.type; 17 18 import java.sql.CallableStatement ; 19 import java.sql.PreparedStatement ; 20 import java.sql.ResultSet ; 21 import java.sql.SQLException ; 22 23 26 public interface TypeHandler { 27 28 38 public void setParameter(PreparedStatement ps, int i, Object parameter, String jdbcType) 39 throws SQLException ; 40 41 51 public Object getResult(ResultSet rs, String columnName) 52 throws SQLException ; 53 54 64 public Object getResult(ResultSet rs, int columnIndex) 65 throws SQLException ; 66 67 77 public Object getResult(CallableStatement cs, int columnIndex) 78 throws SQLException ; 79 80 87 public Object valueOf(String s); 88 89 97 public boolean equals(Object object, String string); 98 99 } 100 | Popular Tags |