mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
No effective change - code cleanup - return void (unused return values)
This commit is contained in:
1 parent
ca1f95df7a
commit
93f13113e6
7 files changed
+21
-50
No files matched your search
@@ -147,7 +147,7 @@ public abstract class DmlHandler implements PersistHandler, BindableRequest {
|
||||
/**
|
||||
* Bind a raw value. Used to bind the discriminator column.
|
||||
*/
|
||||
public Object bind(String propName, Object value, int sqlType) throws SQLException {
|
||||
public void bind(String propName, Object value, int sqlType) throws SQLException {
|
||||
if (logLevelSql) {
|
||||
if (value == null) {
|
||||
bindLog.append("null");
|
||||
@@ -162,32 +162,30 @@ public abstract class DmlHandler implements PersistHandler, BindableRequest {
|
||||
bindLog.append(",");
|
||||
}
|
||||
dataBind.setObject(value, sqlType);
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object bindNoLog(Object value, int sqlType, String logPlaceHolder) throws SQLException {
|
||||
public void bindNoLog(Object value, int sqlType, String logPlaceHolder) throws SQLException {
|
||||
if (logLevelSql) {
|
||||
bindLog.append(logPlaceHolder).append(" ");
|
||||
}
|
||||
dataBind.setObject(value, sqlType);
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bind the value to the preparedStatement.
|
||||
*/
|
||||
public Object bind(Object value, BeanProperty prop) throws SQLException {
|
||||
return bindInternal(logLevelSql, value, prop);
|
||||
public void bind(Object value, BeanProperty prop) throws SQLException {
|
||||
bindInternal(logLevelSql, value, prop);
|
||||
}
|
||||
|
||||
/**
|
||||
* Bind the value to the preparedStatement without logging.
|
||||
*/
|
||||
public Object bindNoLog(Object value, BeanProperty prop) throws SQLException {
|
||||
return bindInternal(false, value, prop);
|
||||
public void bindNoLog(Object value, BeanProperty prop) throws SQLException {
|
||||
bindInternal(false, value, prop);
|
||||
}
|
||||
|
||||
private Object bindInternal(boolean log, Object value, BeanProperty prop) throws SQLException {
|
||||
private void bindInternal(boolean log, Object value, BeanProperty prop) throws SQLException {
|
||||
|
||||
if (log) {
|
||||
if (prop.isLob()) {
|
||||
@@ -203,7 +201,6 @@ public abstract class DmlHandler implements PersistHandler, BindableRequest {
|
||||
}
|
||||
// do the actual binding to PreparedStatement
|
||||
prop.bind(dataBind, value);
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -27,23 +27,22 @@ public interface BindableRequest {
|
||||
* logicalType to dbType.
|
||||
* </p>
|
||||
*/
|
||||
Object bind(Object value, BeanProperty prop) throws SQLException;
|
||||
void bind(Object value, BeanProperty prop) throws SQLException;
|
||||
|
||||
/**
|
||||
* Bind a raw value. Used to bind the discriminator column.
|
||||
*/
|
||||
Object bind(String propName, Object value, int sqlType) throws SQLException;
|
||||
void bind(String propName, Object value, int sqlType) throws SQLException;
|
||||
|
||||
/**
|
||||
* Bind a raw value with a placeHolder to put into the transaction log.
|
||||
*/
|
||||
Object bindNoLog(Object value, int sqlType, String logPlaceHolder) throws SQLException;
|
||||
void bindNoLog(Object value, int sqlType, String logPlaceHolder) throws SQLException;
|
||||
|
||||
/**
|
||||
* Bind the value to the preparedStatement without logging.
|
||||
*/
|
||||
Object bindNoLog(Object value, BeanProperty prop) throws SQLException;
|
||||
|
||||
void bindNoLog(Object value, BeanProperty prop) throws SQLException;
|
||||
|
||||
/**
|
||||
* Register the value from a update GeneratedValue. This can only be set to
|
||||
|
||||
Reference in new issue
Block a user