No effective change - remove unused

This commit is contained in:
Robin Bygrave
2015-07-31 13:42:09 +12:00
parent 6c0401b191
commit 7f2c705b94
10 changed files with 12 additions and 109 deletions
@@ -13,11 +13,6 @@ public interface SqlLimiter {
*/
char NEW_LINE = '\n';
/**
* The carriage return character.
*/
char CARRIAGE_RETURN = '\r';
/**
* Add the SQL limiting statements around the query.
*/
@@ -160,12 +160,11 @@ public final class ElFilter<T> implements Filter<T> {
matches.add(new ElMatchBuilder.Lt<T>(value, comparator));
return this;
}
public Filter<T> regex(String propertyName, String regEx) {
return regex(propertyName, regEx, 0);
}
public Filter<T> regex(String propertyName, String regEx, int options) {
ElPropertyValue elGetValue = getElGetValue(propertyName);
@@ -175,15 +175,11 @@ class ElMatchBuilder {
public boolean isMatch(T bean) {
Object value = elGetValue.elGetValue((EntityBean)bean);
if (value == null){
return false;
}
return set.contains(value);
}
Object value = elGetValue.elGetValue((EntityBean) bean);
return value != null && set.contains(value);
}
}
/**
* Equal To.
*/
@@ -97,13 +97,6 @@ public class ElPropertyChain implements ElPropertyValue {
return StringHelper.replaceString(el, ROOT_ELPREFIX, "${"+prefix+"}");
}
}
/**
* Full ElGetValue support.
*/
public boolean isDeployOnly() {
return false;
}
/**
* Return true if there is a many property from sinceProperty to
@@ -262,18 +255,18 @@ public class ElPropertyChain implements ElPropertyValue {
public void elSetLoaded(EntityBean bean) {
for (int i = 0; i < last; i++) {
bean = (EntityBean)chain[i].elGetValue(bean);
if (bean == null){
break;
}
}
}
if (bean != null){
((EntityBean)bean)._ebean_getIntercept().setLoaded();
bean._ebean_getIntercept().setLoaded();
}
}
public void elSetValue(EntityBean bean, Object value, boolean populate) {
EntityBean prevBean = bean;
@@ -1,10 +0,0 @@
package com.avaje.ebeaninternal.server.el;
public interface ElSetValue {
/**
* Set the value to the bean.
*/
void elSetValue(Object bean, Object value);
}
@@ -1,15 +0,0 @@
package com.avaje.ebeaninternal.server.lib.util;
/**
* A general string parsing exception.
*/
public class StringParsingException extends RuntimeException {
static final long serialVersionUID = -3070423471260426402L;
public StringParsingException(String message) {
super(message);
}
}
@@ -1,27 +0,0 @@
package com.avaje.ebeaninternal.server.persist;
/**
* Contants used in persist.
*/
public interface Constant {
/**
* An INSERT clause.
*/
static final int IN_INSERT = 1;
/**
* An UPDATE SET clause.
*/
static final int IN_UPDATE_SET = 2;
/**
* An UPDATE WHERE clause.
*/
static final int IN_UPDATE_WHERE = 3;
/**
* A DELETE WHERE clause.
*/
static final int IN_DELETE_WHERE = 4;
}
@@ -25,14 +25,13 @@ import com.avaje.ebeaninternal.server.querydefn.OrmQueryLimitRequest;
import javax.persistence.PersistenceException;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Generates the SQL SELECT statements taking into account the physical
* deployment properties.
*/
public class CQueryBuilder implements Constants {
public class CQueryBuilder {
private final String tableAliasPlaceHolder;
private final String columnAliasPrefix;
@@ -11,7 +11,7 @@ import com.avaje.ebeaninternal.server.deploy.BeanDescriptor;
import com.avaje.ebeaninternal.server.querydefn.OrmQueryLimitRequest;
import com.avaje.ebeaninternal.server.util.BindParamsParser;
public class CQueryBuilderRawSql implements Constants {
public class CQueryBuilderRawSql {
private final SqlLimiter sqlLimiter;
private final DatabasePlatform dbPlatform;
@@ -1,27 +0,0 @@
package com.avaje.ebeaninternal.server.query;
/**
* Constants used in find processing.
*/
public interface Constants {
/**
* literal used for SQL LIMIT in MySql and Postgres.
*/
static final String LIMIT = "limit";
/**
* Literal used for SQL LIMIT OFFSET clause in MySql and Postgres.
*/
static final String OFFSET = "offset";
/**
* ROW_NUMBER() OVER (ORDER BY
*/
static final String ROW_NUMBER_OVER = "row_number() over (order by ";
/**
* ) as rn,
*/
static final String ROW_NUMBER_AS = ") as rn, ";
}