File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
spring-jdbc/src/main/java/org/springframework/jdbc Expand file tree Collapse file tree 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 ;
@@ -314,7 +314,7 @@ protected void onCompileInternal() {
314
314
315
315
/**
316
316
* Is this operation "compiled"?
317
- * @return whether this operation is compiled, and ready to use.
317
+ * @return whether this operation is compiled and ready to use
318
318
*/
319
319
public boolean isCompiled () {
320
320
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
/**
@@ -350,7 +350,7 @@ public final void compile() throws InvalidDataAccessApiUsageException {
350
350
* Is this operation "compiled"? Compilation, as in JDO,
351
351
* means that the operation is fully configured, and ready to use.
352
352
* The exact meaning of compilation will vary between subclasses.
353
- * @return whether this operation is compiled, and ready to use.
353
+ * @return whether this operation is compiled and ready to use
354
354
*/
355
355
public boolean isCompiled () {
356
356
return this .compiled ;
You can’t perform that action at this time.
0 commit comments