#183 - Use Statement.bind(String) and Row.get(String) methods instead of bind(Object).
This commit is contained in:
@@ -1539,7 +1539,7 @@ class DefaultDatabaseClient implements DatabaseClient, ConnectionAccessor {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void bind(Object identifier, Object value) {
|
||||
public void bind(String identifier, Object value) {
|
||||
this.statement.bind(identifier, value);
|
||||
}
|
||||
|
||||
@@ -1549,7 +1549,7 @@ class DefaultDatabaseClient implements DatabaseClient, ConnectionAccessor {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void bindNull(Object identifier, Class<?> type) {
|
||||
public void bindNull(String identifier, Class<?> type) {
|
||||
this.statement.bindNull(identifier, type);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ public interface BindTarget {
|
||||
* @param identifier the identifier to bind to.
|
||||
* @param value the value to bind.
|
||||
*/
|
||||
void bind(Object identifier, Object value);
|
||||
void bind(String identifier, Object value);
|
||||
|
||||
/**
|
||||
* Bind a value to an index. Indexes are zero-based.
|
||||
@@ -49,7 +49,7 @@ public interface BindTarget {
|
||||
* @param identifier the identifier to bind to.
|
||||
* @param type the type of {@literal null} value.
|
||||
*/
|
||||
void bindNull(Object identifier, Class<?> type);
|
||||
void bindNull(String identifier, Class<?> type);
|
||||
|
||||
/**
|
||||
* Bind a {@literal null} value.
|
||||
|
||||
@@ -313,7 +313,7 @@ public class NamedParameterUtilsUnitTests {
|
||||
|
||||
operation.bindTo(new BindTarget() {
|
||||
@Override
|
||||
public void bind(Object identifier, Object value) {
|
||||
public void bind(String identifier, Object value) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@@ -324,7 +324,7 @@ public class NamedParameterUtilsUnitTests {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void bindNull(Object identifier, Class<?> type) {
|
||||
public void bindNull(String identifier, Class<?> type) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@@ -351,7 +351,7 @@ public class NamedParameterUtilsUnitTests {
|
||||
|
||||
operation.bindTo(new BindTarget() {
|
||||
@Override
|
||||
public void bind(Object identifier, Object value) {
|
||||
public void bind(String identifier, Object value) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@@ -361,7 +361,7 @@ public class NamedParameterUtilsUnitTests {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void bindNull(Object identifier, Class<?> type) {
|
||||
public void bindNull(String identifier, Class<?> type) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@@ -388,7 +388,7 @@ public class NamedParameterUtilsUnitTests {
|
||||
|
||||
operation.bindTo(new BindTarget() {
|
||||
@Override
|
||||
public void bind(Object identifier, Object value) {
|
||||
public void bind(String identifier, Object value) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@@ -398,7 +398,7 @@ public class NamedParameterUtilsUnitTests {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void bindNull(Object identifier, Class<?> type) {
|
||||
public void bindNull(String identifier, Class<?> type) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user