mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
Internal SpiQuery : remove unused context additions
This commit is contained in:
1 parent
b794b6c77e
commit
0d848e9311
2 files changed
-47
No files matched your search
@@ -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