kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | e77c18e77e4a01dec498ea75304a8dcced78fd9bf02c5818e16d3f014dc47051 |
|---|---|
| Author | Sylvain Lebresne <sylvain@datastax.com> · 2013-12-13 15:36 +01:00 |
| Committer | Sylvain Lebresne <sylvain@datastax.com> · 2013-12-13 15:36 +01:00 |
| Parents | 64c589fc9301 |
2 files changed
modified driver-core/src/main/java/com/datastax/driver/core/BoundStatement.java +0 −4
| @@ -51,11 +51,7 @@ | ||
| 51 | 51 | * Creates a new {@code BoundStatement} from the provided prepared |
| 52 | 52 | * statement. |
| 53 | 53 | * @param statement the prepared statement from which to create a {@code BoundStatement}. |
| 54 | - * | |
| 55 | - * @deprecated this constructor is now deprecated an will removed (made private) in | |
| 56 | - * version 2 of the driver. Instead, you are encouraged to use {@link PreparedStatement#bind()}. | |
| 57 | 54 | */ |
| 58 | - @Deprecated | |
| 59 | 55 | public BoundStatement(PreparedStatement statement) { |
| 60 | 56 | this.statement = statement; |
| 61 | 57 | this.values = new ByteBuffer[statement.getVariables().size()]; |
modified driver-core/src/main/java/com/datastax/driver/core/PreparedStatement.java +1 −1
| @@ -139,7 +139,7 @@ | ||
| 139 | 139 | * to values by another mean because the resulting {@code BoundStatement} |
| 140 | 140 | * being executable. |
| 141 | 141 | * <p> |
| 142 | - * This method is a convenience for {@code bind().bind(...)}. | |
| 142 | + * This method is a convenience for {@code new BoundStatement(this).bind(...)}. | |
| 143 | 143 | * |
| 144 | 144 | * @param values the values to bind to the variables of the newly created |
| 145 | 145 | * BoundStatement. |