File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/main/java/org/mybatis/spring Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -389,7 +389,7 @@ public List<BatchResult> flushStatements() {
389
389
390
390
/**
391
391
* Allow gently dispose bean:
392
- *
392
+ *
393
393
* <pre>
394
394
* {@code
395
395
*
@@ -407,7 +407,7 @@ public List<BatchResult> flushStatements() {
407
407
* @see "org.springframework.beans.factory.support.DisposableBeanAdapter#CLOSE_METHOD_NAME"
408
408
*/
409
409
@ Override
410
- public void destroy () {
410
+ public void destroy () throws Exception {
411
411
// This method forces spring disposer to avoid call of SqlSessionTemplate.close() which gives
412
412
// UnsupportedOperationException
413
413
}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public MyBatisCursorItemReader() {
50
50
}
51
51
52
52
@ Override
53
- protected T doRead () {
53
+ protected T doRead () throws Exception {
54
54
T next = null ;
55
55
if (cursorIterator .hasNext ()) {
56
56
next = cursorIterator .next ();
@@ -59,7 +59,7 @@ protected T doRead() {
59
59
}
60
60
61
61
@ Override
62
- protected void doOpen () {
62
+ protected void doOpen () throws Exception {
63
63
Map <String , Object > parameters = new HashMap <>();
64
64
if (parameterValues != null ) {
65
65
parameters .putAll (parameterValues );
Original file line number Diff line number Diff line change @@ -111,15 +111,15 @@ public void rollback() throws SQLException {
111
111
* {@inheritDoc}
112
112
*/
113
113
@ Override
114
- public void close () {
114
+ public void close () throws SQLException {
115
115
DataSourceUtils .releaseConnection (this .connection , this .dataSource );
116
116
}
117
117
118
118
/**
119
119
* {@inheritDoc}
120
120
*/
121
121
@ Override
122
- public Integer getTimeout () {
122
+ public Integer getTimeout () throws SQLException {
123
123
ConnectionHolder holder = (ConnectionHolder ) TransactionSynchronizationManager .getResource (dataSource );
124
124
if (holder != null && holder .hasTimeout ()) {
125
125
return holder .getTimeToLiveInSeconds ();
You can’t perform that action at this time.
0 commit comments