mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
#398 - ENH: Support delete using a Query instance
This commit is contained in:
1 parent
ccba5d08ef
commit
1c23720605
21 files changed
+407
-24
No files matched your search
@@ -41,11 +41,13 @@ public class SqlTree {
|
||||
*/
|
||||
private final String inheritanceWhereSql;
|
||||
|
||||
private final boolean includeJoins;
|
||||
|
||||
/**
|
||||
* Create the SqlSelectClause.
|
||||
*/
|
||||
public SqlTree(String summary, SqlTreeNode rootNode, String selectSql, String fromSql, String inheritanceWhereSql,
|
||||
BeanProperty[] encryptedProps, BeanPropertyAssocMany<?> manyProperty, Set<String> includes) {
|
||||
BeanProperty[] encryptedProps, BeanPropertyAssocMany<?> manyProperty, Set<String> includes, boolean includeJoins) {
|
||||
|
||||
this.summary = summary;
|
||||
this.rootNode = rootNode;
|
||||
@@ -55,6 +57,7 @@ public class SqlTree {
|
||||
this.encryptedProps = encryptedProps;
|
||||
this.manyProperty = manyProperty;
|
||||
this.includes = includes;
|
||||
this.includeJoins = includeJoins;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,6 +72,14 @@ public class SqlTree {
|
||||
this.encryptedProps = null;
|
||||
this.manyProperty = null;
|
||||
this.includes = null;
|
||||
this.includeJoins = false; //not valid for rawSql
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if the query includes joins (not valid for rawSql).
|
||||
*/
|
||||
public boolean isIncludeJoins() {
|
||||
return includeJoins;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user