mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
No effective change - code cleanup of BindableProperty to remove unused parameter (property name)
This commit is contained in:
1 parent
f7e07633a1
commit
bd99badb28
13 files changed
+24
-19
No files matched your search
+1
-1
@@ -58,7 +58,7 @@ public class BindableEncryptedProperty implements Bindable {
|
||||
// H2 encrypt function ... different parameter order
|
||||
request.bindNoLog(encryptKeyValue, Types.VARCHAR, prop.getName() + "=****");
|
||||
}
|
||||
request.bindNoLog(value, prop, prop.getName());
|
||||
request.bindNoLog(value, prop);
|
||||
|
||||
if (bindEncryptDataFirst){
|
||||
// MySql, Postgres, Oracle
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@ public final class BindableIdEmbedded implements BindableId {
|
||||
for (int i = 0; i < props.length; i++) {
|
||||
|
||||
Object value = props[i].getValue(idValue);
|
||||
request.bind(value, props[i], props[i].getDbColumn());
|
||||
request.bind(value, props[i]);
|
||||
}
|
||||
|
||||
request.setIdValue(idValue);
|
||||
|
||||
@@ -64,7 +64,7 @@ public final class BindableIdMap implements BindableId {
|
||||
for (int i = 0; i < uids.length; i++) {
|
||||
Object value = uids[i].getValue(bean);
|
||||
|
||||
request.bind(value, uids[i], uids[i].getName());
|
||||
request.bind(value, uids[i]);
|
||||
|
||||
// putting logicalType into map rather than
|
||||
// the dbType (which may have been converted).
|
||||
|
||||
@@ -61,7 +61,7 @@ public final class BindableIdScalar implements BindableId {
|
||||
|
||||
Object value = uidProp.getValue(bean);
|
||||
|
||||
request.bind(value, uidProp, uidProp.getName());
|
||||
request.bind(value, uidProp);
|
||||
|
||||
// used for summary logging
|
||||
request.setIdValue(value);
|
||||
|
||||
@@ -42,7 +42,7 @@ public class BindableProperty implements Bindable {
|
||||
if (bean != null) {
|
||||
value = prop.getValue(bean);
|
||||
}
|
||||
request.bind(value, prop, prop.getName());
|
||||
request.bind(value, prop);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -54,6 +54,6 @@ public class BindableProperty implements Bindable {
|
||||
if (bean != null) {
|
||||
value = prop.getValueObject(bean);
|
||||
}
|
||||
request.bind(value, prop, prop.getName());
|
||||
request.bind(value, prop);
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -32,7 +32,7 @@ public class BindablePropertyInsertGenerated extends BindableProperty {
|
||||
//prop.setValueIntercept(bean, value);
|
||||
prop.setValue(bean, value);
|
||||
}
|
||||
request.bind(value, prop, prop.getName());
|
||||
request.bind(value, prop);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ public class BindablePropertyUpdateGenerated extends BindableProperty {
|
||||
Object value = gen.getUpdateValue(prop, bean);
|
||||
|
||||
// generated value should be the correct type
|
||||
request.bind(value, prop, prop.getName());
|
||||
request.bind(value, prop);
|
||||
|
||||
// only register the update value if it was included
|
||||
// in the bean in the first place
|
||||
|
||||
@@ -27,7 +27,7 @@ public interface BindableRequest {
|
||||
* logicalType to dbType.
|
||||
* </p>
|
||||
*/
|
||||
public Object bind(Object value, BeanProperty prop, String propName) throws SQLException;
|
||||
public Object bind(Object value, BeanProperty prop) throws SQLException;
|
||||
|
||||
/**
|
||||
* Bind a raw value. Used to bind the discriminator column.
|
||||
@@ -42,7 +42,7 @@ public interface BindableRequest {
|
||||
/**
|
||||
* Bind the value to the preparedStatement without logging.
|
||||
*/
|
||||
public Object bindNoLog(Object value, BeanProperty prop, String propName) throws SQLException;
|
||||
public Object bindNoLog(Object value, BeanProperty prop) throws SQLException;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user