#678 - Remove SqlQuery.findSet() and SqlQuery.findMap() ... migrate to use SlqQuery.findList()

This commit is contained in:
Robin Bygrave committed 2016-04-29 08:37:52 +12:00
1 parent ad17da5b36
commit f867cd4c01
10 files changed
+16 -306

No files matched your search

@@ -1,13 +1,5 @@
package com.avaje.ebeaninternal.server.querydefn;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.persistence.PersistenceException;
import com.avaje.ebean.EbeanServer;
import com.avaje.ebean.QueryEachConsumer;
import com.avaje.ebean.QueryEachWhileConsumer;
@@ -17,6 +9,11 @@ import com.avaje.ebean.SqlRow;
import com.avaje.ebeaninternal.api.BindParams;
import com.avaje.ebeaninternal.api.SpiSqlQuery;
import javax.persistence.PersistenceException;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;
/**
* Default implementation of SQuery - SQL Query.
*/
@@ -47,11 +44,6 @@ public class DefaultRelationalQuery implements SpiSqlQuery {
private int bufferFetchSizeHint;
/**
* The property used to get the key value for a Map.
*/
private String mapKey;
/**
* Bind parameters when using the query language.
*/
@@ -84,14 +76,6 @@ public class DefaultRelationalQuery implements SpiSqlQuery {
return server.findList(this, null);
}
public Set<SqlRow> findSet() {
return server.findSet(this, null);
}
public Map<?, SqlRow> findMap() {
return server.findMap(this, null);
}
public SqlRow findUnique() {
return server.findUnique(this, null);
}
@@ -152,15 +136,6 @@ public class DefaultRelationalQuery implements SpiSqlQuery {
return this;
}
public String getMapKey() {
return mapKey;
}
public DefaultRelationalQuery setMapKey(String mapKey) {
this.mapKey = mapKey;
return this;
}
public int getTimeout() {
return timeout;
}