Internal SpiQuery : remove unused convertWhereNaturalKeyToId()

This commit is contained in:
Robin Bygrave
2015-07-20 12:40:08 +12:00
parent f45d240682
commit b794b6c77e
2 changed files with 10 additions and 10 deletions
@@ -3,6 +3,7 @@ package com.avaje.ebeaninternal.api;
import java.util.ArrayList;
import java.util.List;
import com.avaje.ebean.EbeanServer;
import com.avaje.ebean.ExpressionList;
import com.avaje.ebean.OrderBy;
import com.avaje.ebean.PersistenceContextScope;
@@ -148,6 +149,11 @@ public interface SpiQuery<T> extends Query<T> {
*/
SpiQuery<T> copy();
/**
* Return a copy of the query attaching to a different EbeanServer.
*/
SpiQuery<T> copy(EbeanServer server);
/**
* Return the type of query (List, Set, Map, Bean, rowCount etc).
*/
@@ -203,11 +209,6 @@ public interface SpiQuery<T> extends Query<T> {
*/
ManyWhereJoins getManyWhereJoins();
/**
* Convert this natural key query into a find by id query.
*/
void convertWhereNaturalKeyToId(Object idValue);
/**
* Return a Natural Key bind parameter if supported by this query.
*/
@@ -389,11 +389,6 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
select(beanDescriptor.getIdBinder().getIdProperty());
}
public void convertWhereNaturalKeyToId(Object idValue) {
whereExpressions = new DefaultExpressionList<T>(this, null);
setId(idValue);
}
public NaturalKeyBindParam getNaturalKeyBindParam() {
NaturalKeyBindParam namedBind = null;
if (bindParams != null) {
@@ -426,6 +421,10 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
}
public DefaultOrmQuery<T> copy() {
return copy(server);
}
public DefaultOrmQuery<T> copy(EbeanServer server) {
// Not including these in the copy:
// contextAdditions
// queryListener