Skip to content

Commit 737098e

Browse files
committed
add comment to columnName
1 parent d8b9261 commit 737098e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/main/java/org/apache/ibatis/type/BaseTypeHandler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ public T getResult(CallableStatement cs, int columnIndex) throws SQLException {
104104

105105
public abstract void setNonNullParameter(PreparedStatement ps, int i, T parameter, JdbcType jdbcType) throws SQLException;
106106

107+
/**
108+
* @param columnName Colunm name, when configuration <code>useColumnLabel</code> is <code>false</code>
109+
*/
107110
public abstract T getNullableResult(ResultSet rs, String columnName) throws SQLException;
108111

109112
public abstract T getNullableResult(ResultSet rs, int columnIndex) throws SQLException;

src/main/java/org/apache/ibatis/type/TypeHandler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public interface TypeHandler<T> {
2727

2828
void setParameter(PreparedStatement ps, int i, T parameter, JdbcType jdbcType) throws SQLException;
2929

30+
/**
31+
* @param columnName Colunm name, when configuration <code>useColumnLabel</code> is <code>false</code>
32+
*/
3033
T getResult(ResultSet rs, String columnName) throws SQLException;
3134

3235
T getResult(ResultSet rs, int columnIndex) throws SQLException;

0 commit comments

Comments
 (0)