mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Internal SpiQuery : remove unused context additions
This commit is contained in:
@@ -342,11 +342,6 @@ public interface SpiQuery<T> extends Query<T> {
|
||||
*/
|
||||
String getLazyLoadProperty();
|
||||
|
||||
/**
|
||||
* Return the lazy load path.
|
||||
*/
|
||||
String getLazyLoadManyPath();
|
||||
|
||||
/**
|
||||
* Used to hook back a lazy loading query to the original query (query
|
||||
* point).
|
||||
@@ -477,22 +472,11 @@ public interface SpiQuery<T> extends Query<T> {
|
||||
*/
|
||||
Boolean isReadOnly();
|
||||
|
||||
/**
|
||||
* Adds this bean to the persistence context prior to executing the query.
|
||||
*/
|
||||
void contextAdd(EntityBean bean);
|
||||
|
||||
/**
|
||||
* Return the query timeout.
|
||||
*/
|
||||
int getTimeout();
|
||||
|
||||
/**
|
||||
* Return the objects that should be added to the persistence context prior
|
||||
* to executing the query.
|
||||
*/
|
||||
ArrayList<EntityBean> getContextAdditions();
|
||||
|
||||
/**
|
||||
* Return the bind parameters.
|
||||
*/
|
||||
|
||||
@@ -51,11 +51,6 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
|
||||
|
||||
private transient final ExpressionFactory expressionFactory;
|
||||
|
||||
/**
|
||||
* Used to add beans to the PersistanceContext prior to query.
|
||||
*/
|
||||
private transient ArrayList<EntityBean> contextAdditions;
|
||||
|
||||
/**
|
||||
* For lazy loading of ManyToMany we need to add a join to the intersection table. This is that
|
||||
* join to the intersection table.
|
||||
@@ -313,10 +308,6 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
|
||||
this.lazyLoadProperty = lazyLoadProperty;
|
||||
}
|
||||
|
||||
public String getLazyLoadManyPath() {
|
||||
return lazyLoadManyPath;
|
||||
}
|
||||
|
||||
public ExpressionFactory getExpressionFactory() {
|
||||
return expressionFactory;
|
||||
}
|
||||
@@ -752,8 +743,6 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
|
||||
hc = hc * 31 + (whereExpressions == null ? 0 : whereExpressions.queryBindHash());
|
||||
hc = hc * 31 + (havingExpressions == null ? 0 : havingExpressions.queryBindHash());
|
||||
hc = hc * 31 + (bindParams == null ? 0 : bindParams.queryBindHash());
|
||||
hc = hc * 31 + (contextAdditions == null ? 0 : contextAdditions.hashCode());
|
||||
|
||||
return hc;
|
||||
}
|
||||
|
||||
@@ -1091,26 +1080,6 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
|
||||
return detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return any beans that should be added to the persistence context prior to executing the query.
|
||||
*/
|
||||
public final ArrayList<EntityBean> getContextAdditions() {
|
||||
return contextAdditions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a bean to the context additions.
|
||||
* <p>
|
||||
* These are added to the persistence context before executing the query.
|
||||
* </p>
|
||||
*/
|
||||
public void contextAdd(EntityBean bean) {
|
||||
if (contextAdditions == null) {
|
||||
contextAdditions = new ArrayList<EntityBean>();
|
||||
}
|
||||
contextAdditions.add(bean);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "Query [" + whereExpressions + "]";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user