File tree 2 files changed +41
-0
lines changed
src/main/java/org/apache/ibatis
2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,15 @@ public List<String> getColumnNames() {
67
67
return this .columnNames ;
68
68
}
69
69
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
+ */
70
79
public TypeHandler <?> getTypeHandler (Class <?> propertyType , String columnName ) {
71
80
TypeHandler <?> handler = null ;
72
81
Map <Class <?>, TypeHandler <?>> columnHandlers = typeHandlerMap .get (columnName );
Original file line number Diff line number Diff line change @@ -132,34 +132,66 @@ public String getProperty() {
132
132
return property ;
133
133
}
134
134
135
+ /**
136
+ * Used for handling output of callable statements
137
+ * @return
138
+ */
135
139
public ParameterMode getMode () {
136
140
return mode ;
137
141
}
138
142
143
+ /**
144
+ * Used for handling output of callable statements
145
+ * @return
146
+ */
139
147
public Class <?> getJavaType () {
140
148
return javaType ;
141
149
}
142
150
151
+ /**
152
+ * Used in the UnknownTypeHandler in case there is no handler for the property type
153
+ * @return
154
+ */
143
155
public JdbcType getJdbcType () {
144
156
return jdbcType ;
145
157
}
146
158
159
+ /**
160
+ * Used for handling output of callable statements
161
+ * @return
162
+ */
147
163
public Integer getNumericScale () {
148
164
return numericScale ;
149
165
}
150
166
167
+ /**
168
+ * Used when setting parameters to the PreparedStatement
169
+ * @return
170
+ */
151
171
public TypeHandler <?> getTypeHandler () {
152
172
return typeHandler ;
153
173
}
154
174
175
+ /**
176
+ * Used for handling output of callable statements
177
+ * @return
178
+ */
155
179
public String getResultMapId () {
156
180
return resultMapId ;
157
181
}
158
182
183
+ /**
184
+ * Used for handling output of callable statements
185
+ * @return
186
+ */
159
187
public String getJdbcTypeName () {
160
188
return jdbcTypeName ;
161
189
}
162
190
191
+ /**
192
+ * Not used
193
+ * @return
194
+ */
163
195
public String getExpression () {
164
196
return expression ;
165
197
}
You can’t perform that action at this time.
0 commit comments