Skip to content

Commit 50e91d0

Browse files
committed
Some javadocs
1 parent df06631 commit 50e91d0

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

src/main/java/org/apache/ibatis/executor/resultset/ResultSetWrapper.java

+9
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@ public List<String> getColumnNames() {
6767
return this.columnNames;
6868
}
6969

70+
/**
71+
* Gets the type handler to use when reading the result set.
72+
* Tries to get from the TypeHandlerRegistry by searching for the property type.
73+
* If not found it gets the column JDBC type and tries to get a handler for it.
74+
*
75+
* @param propertyType
76+
* @param columnName
77+
* @return
78+
*/
7079
public TypeHandler<?> getTypeHandler(Class<?> propertyType, String columnName) {
7180
TypeHandler<?> handler = null;
7281
Map<Class<?>, TypeHandler<?>> columnHandlers = typeHandlerMap.get(columnName);

src/main/java/org/apache/ibatis/mapping/ParameterMapping.java

+32
Original file line numberDiff line numberDiff line change
@@ -132,34 +132,66 @@ public String getProperty() {
132132
return property;
133133
}
134134

135+
/**
136+
* Used for handling output of callable statements
137+
* @return
138+
*/
135139
public ParameterMode getMode() {
136140
return mode;
137141
}
138142

143+
/**
144+
* Used for handling output of callable statements
145+
* @return
146+
*/
139147
public Class<?> getJavaType() {
140148
return javaType;
141149
}
142150

151+
/**
152+
* Used in the UnknownTypeHandler in case there is no handler for the property type
153+
* @return
154+
*/
143155
public JdbcType getJdbcType() {
144156
return jdbcType;
145157
}
146158

159+
/**
160+
* Used for handling output of callable statements
161+
* @return
162+
*/
147163
public Integer getNumericScale() {
148164
return numericScale;
149165
}
150166

167+
/**
168+
* Used when setting parameters to the PreparedStatement
169+
* @return
170+
*/
151171
public TypeHandler<?> getTypeHandler() {
152172
return typeHandler;
153173
}
154174

175+
/**
176+
* Used for handling output of callable statements
177+
* @return
178+
*/
155179
public String getResultMapId() {
156180
return resultMapId;
157181
}
158182

183+
/**
184+
* Used for handling output of callable statements
185+
* @return
186+
*/
159187
public String getJdbcTypeName() {
160188
return jdbcTypeName;
161189
}
162190

191+
/**
192+
* Not used
193+
* @return
194+
*/
163195
public String getExpression() {
164196
return expression;
165197
}

0 commit comments

Comments
 (0)