mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
No effective change - format only
This commit is contained in:
1 parent
9db8c941dc
commit
98a4f046ee
10 files changed
+923
-927
No files matched your search
@@ -15,50 +15,50 @@ import java.util.List;
|
||||
*/
|
||||
public class ElPropertyChainBuilder {
|
||||
|
||||
private final String expression;
|
||||
private final String expression;
|
||||
|
||||
private final List<ElPropertyValue> chain = new ArrayList<ElPropertyValue>();
|
||||
private final List<ElPropertyValue> chain = new ArrayList<ElPropertyValue>();
|
||||
|
||||
private final boolean embedded;
|
||||
|
||||
private boolean containsMany;
|
||||
|
||||
/**
|
||||
* Create with the original expression.
|
||||
*/
|
||||
public ElPropertyChainBuilder(boolean embedded, String expression) {
|
||||
this.embedded = embedded;
|
||||
this.expression = expression;
|
||||
}
|
||||
|
||||
public boolean isContainsMany() {
|
||||
return containsMany;
|
||||
}
|
||||
private final boolean embedded;
|
||||
|
||||
public void setContainsMany(boolean containsMany) {
|
||||
this.containsMany = containsMany;
|
||||
}
|
||||
private boolean containsMany;
|
||||
|
||||
public String getExpression() {
|
||||
return expression;
|
||||
}
|
||||
/**
|
||||
* Create with the original expression.
|
||||
*/
|
||||
public ElPropertyChainBuilder(boolean embedded, String expression) {
|
||||
this.embedded = embedded;
|
||||
this.expression = expression;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a ElGetValue element to the chain.
|
||||
*/
|
||||
public ElPropertyChainBuilder add(ElPropertyValue element) {
|
||||
if (element == null){
|
||||
throw new NullPointerException("element null in expression "+expression);
|
||||
}
|
||||
chain.add(element);
|
||||
return this;
|
||||
}
|
||||
public boolean isContainsMany() {
|
||||
return containsMany;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the immutable ElGetChain from the build information.
|
||||
*/
|
||||
public ElPropertyChain build() {
|
||||
return new ElPropertyChain(containsMany, embedded, expression, chain.toArray(new ElPropertyValue[chain.size()]));
|
||||
}
|
||||
public void setContainsMany(boolean containsMany) {
|
||||
this.containsMany = containsMany;
|
||||
}
|
||||
|
||||
public String getExpression() {
|
||||
return expression;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a ElGetValue element to the chain.
|
||||
*/
|
||||
public ElPropertyChainBuilder add(ElPropertyValue element) {
|
||||
if (element == null) {
|
||||
throw new NullPointerException("element null in expression " + expression);
|
||||
}
|
||||
chain.add(element);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the immutable ElGetChain from the build information.
|
||||
*/
|
||||
public ElPropertyChain build() {
|
||||
return new ElPropertyChain(containsMany, embedded, expression, chain.toArray(new ElPropertyValue[chain.size()]));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user