File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
src/main/java/org/mybatis/spring Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright 2010-2018 the original author or authors.
2
+ * Copyright 2010-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -412,7 +412,7 @@ public List<BatchResult> flushStatements() {
412
412
* @see "org.springframework.beans.factory.support.DisposableBeanAdapter#CLOSE_METHOD_NAME"
413
413
*/
414
414
@ Override
415
- public void destroy () throws Exception {
415
+ public void destroy () {
416
416
//This method forces spring disposer to avoid call of SqlSessionTemplate.close() which gives UnsupportedOperationException
417
417
}
418
418
Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright 2010-2017 the original author or authors.
2
+ * Copyright 2010-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -49,7 +49,7 @@ public MyBatisCursorItemReader() {
49
49
}
50
50
51
51
@ Override
52
- protected T doRead () throws Exception {
52
+ protected T doRead () {
53
53
T next = null ;
54
54
if (cursorIterator .hasNext ()) {
55
55
next = cursorIterator .next ();
@@ -58,7 +58,7 @@ protected T doRead() throws Exception {
58
58
}
59
59
60
60
@ Override
61
- protected void doOpen () throws Exception {
61
+ protected void doOpen () {
62
62
Map <String , Object > parameters = new HashMap <>();
63
63
if (parameterValues != null ) {
64
64
parameters .putAll (parameterValues );
Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright 2010-2017 the original author or authors.
2
+ * Copyright 2010-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -117,15 +117,15 @@ public void rollback() throws SQLException {
117
117
* {@inheritDoc}
118
118
*/
119
119
@ Override
120
- public void close () throws SQLException {
120
+ public void close () {
121
121
DataSourceUtils .releaseConnection (this .connection , this .dataSource );
122
122
}
123
123
124
124
/**
125
125
* {@inheritDoc}
126
126
*/
127
127
@ Override
128
- public Integer getTimeout () throws SQLException {
128
+ public Integer getTimeout () {
129
129
ConnectionHolder holder = (ConnectionHolder ) TransactionSynchronizationManager .getResource (dataSource );
130
130
if (holder != null && holder .hasTimeout ()) {
131
131
return holder .getTimeToLiveInSeconds ();
You can’t perform that action at this time.
0 commit comments