Elffuss BraidHub

kikocis/java-driver public

Remove deprecated methods from BoundStatement.

This commit removes two methods in BoundStatement: setDate(int, Date) and setDate(String, Date).
Changeset07e24e57be54dc469f4b5e55485ed7c8a7ce67ed345e2dd4904c4dc6c203b1de
AuthorAlexandre Dutra <alexandre.dutra@datastax.com> · 2015-12-17 17:56 +01:00
CommitterAlexandre Dutra <alexandre.dutra@datastax.com> · 2015-12-17 17:56 +01:00
Parentsd6d28f7dc3fb

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/BoundStatement.java +0 −34
@@ -353,40 +353,6 @@
353353 return wrapper.setLong(name, v);
354354 }
355355
356- /**
357- * Set the {@code i}th value to the provided date.
358- *
359- * @param i the index of the variable to set.
360- * @param v the value to set.
361- * @return this BoundStatement.
362- * @throws IndexOutOfBoundsException if {@code i < 0 || i >= this.preparedStatement().variables().size()}.
363- * @throws InvalidTypeException if column {@code i} is not of type TIMESTAMP.
364- * @deprecated deprecated in favor of {@link #setTimestamp(int, Date)}
365- */
366- @Deprecated
367- public BoundStatement setDate(int i, Date v) {
368- return wrapper.setTimestamp(i, v);
369- }
370-
371- /**
372- * Sets the value for (all occurrences of) variable {@code name} to the
373- * provided date.
374- *
375- * @param name the name of the variable to set; if multiple variables
376- * {@code name} are prepared, all of them are set.
377- * @param v the value to set.
378- * @return this BoundStatement.
379- * @throws IllegalArgumentException if {@code name} is not a prepared
380- * variable, that is, if {@code !this.preparedStatement().variables().names().contains(name)}.
381- * @throws InvalidTypeException if (any occurrence of) {@code name} is
382- * not of type TIMESTAMP.
383- * @deprecated deprecated in favor of {@link #setTimestamp(String, Date)}
384- */
385- @Deprecated
386- public BoundStatement setDate(String name, Date v) {
387- return wrapper.setTimestamp(name, v);
388- }
389-
390356 /**
391357 * {@inheritDoc}
392358 */