File tree 3 files changed +9
-9
lines changed
spring-jdbc/src/main/java/org/springframework/jdbc
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2014 the original author or authors.
2
+ * Copyright 2002-2015 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.
@@ -67,7 +67,7 @@ public abstract class AbstractJdbcCall {
67
67
* Has this operation been compiled? Compilation means at least checking
68
68
* that a DataSource or JdbcTemplate has been provided.
69
69
*/
70
- private boolean compiled = false ;
70
+ private volatile boolean compiled = false ;
71
71
72
72
/** The generated string used for call statement */
73
73
private String callString ;
@@ -323,7 +323,7 @@ protected void onCompileInternal() {
323
323
324
324
/**
325
325
* Is this operation "compiled"?
326
- * @return whether this operation is compiled, and ready to use.
326
+ * @return whether this operation is compiled and ready to use
327
327
*/
328
328
public boolean isCompiled () {
329
329
return this .compiled ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2014 the original author or authors.
2
+ * Copyright 2002-2015 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.
@@ -80,7 +80,7 @@ public abstract class AbstractJdbcInsert {
80
80
* Has this operation been compiled? Compilation means at least checking
81
81
* that a DataSource or JdbcTemplate has been provided.
82
82
*/
83
- private boolean compiled = false ;
83
+ private volatile boolean compiled = false ;
84
84
85
85
/** The generated string used for insert statement */
86
86
private String insertString ;
@@ -296,7 +296,7 @@ protected void onCompileInternal() {
296
296
297
297
/**
298
298
* Is this operation "compiled"?
299
- * @return whether this operation is compiled, and ready to use.
299
+ * @return whether this operation is compiled and ready to use
300
300
*/
301
301
public boolean isCompiled () {
302
302
return this .compiled ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2014 the original author or authors.
2
+ * Copyright 2002-2015 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.
@@ -81,7 +81,7 @@ public abstract class RdbmsOperation implements InitializingBean {
81
81
* least checking that a DataSource and sql have been provided,
82
82
* but subclasses may also implement their own custom validation.
83
83
*/
84
- private boolean compiled ;
84
+ private volatile boolean compiled ;
85
85
86
86
87
87
/**
@@ -349,7 +349,7 @@ public final void compile() throws InvalidDataAccessApiUsageException {
349
349
* Is this operation "compiled"? Compilation, as in JDO,
350
350
* means that the operation is fully configured, and ready to use.
351
351
* The exact meaning of compilation will vary between subclasses.
352
- * @return whether this operation is compiled, and ready to use.
352
+ * @return whether this operation is compiled and ready to use
353
353
*/
354
354
public boolean isCompiled () {
355
355
return this .compiled ;
You can’t perform that action at this time.
0 commit comments