mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
#2359 - Rename internal methods - ElPropertyValue
This commit is contained in:
1 parent
dbc1ab7a57
commit
cb9295658c
9 files changed
+26
-24
No files matched your search
@@ -135,7 +135,7 @@ public final class BeanFkeyProperty implements ElPropertyValue {
|
||||
* Returns null as not an AssocOne.
|
||||
*/
|
||||
@Override
|
||||
public String getAssocIdInExpr(String prefix) {
|
||||
public String assocIdInExpr(String prefix) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -143,12 +143,12 @@ public final class BeanFkeyProperty implements ElPropertyValue {
|
||||
* Returns null as not an AssocOne.
|
||||
*/
|
||||
@Override
|
||||
public String getAssocIdInValueExpr(boolean not, int size) {
|
||||
public String assocIdInValueExpr(boolean not, int size) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAssocIsEmpty(SpiExpressionRequest request, String path) {
|
||||
public String assocIsEmpty(SpiExpressionRequest request, String path) {
|
||||
throw new RuntimeException("Not Supported or Expected");
|
||||
}
|
||||
|
||||
|
||||
@@ -849,7 +849,7 @@ public class BeanProperty implements ElPropertyValue, Property, STreeProperty {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAssocIsEmpty(SpiExpressionRequest request, String path) {
|
||||
public String assocIsEmpty(SpiExpressionRequest request, String path) {
|
||||
// overridden in BanePropertyAssocMany
|
||||
throw new RuntimeException("Not Supported or Expected");
|
||||
}
|
||||
@@ -867,13 +867,13 @@ public class BeanProperty implements ElPropertyValue, Property, STreeProperty {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAssocIdInExpr(String prefix) {
|
||||
public String assocIdInExpr(String prefix) {
|
||||
// Returns null as not an AssocOne.
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAssocIdInValueExpr(boolean not, int size) {
|
||||
public String assocIdInValueExpr(boolean not, int size) {
|
||||
// Returns null as not an AssocOne.
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -410,7 +410,7 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> implements ST
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAssocIsEmpty(SpiExpressionRequest request, String path) {
|
||||
public String assocIsEmpty(SpiExpressionRequest request, String path) {
|
||||
boolean softDelete = targetDescriptor.isSoftDelete();
|
||||
boolean needsX2Table = softDelete || getExtraWhere() != null;
|
||||
StringBuilder sb = new StringBuilder(50);
|
||||
@@ -470,7 +470,7 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> implements ST
|
||||
* Return the logical id value expression taking into account embedded id's.
|
||||
*/
|
||||
@Override
|
||||
public String getAssocIdInValueExpr(boolean not, int size) {
|
||||
public String assocIdInValueExpr(boolean not, int size) {
|
||||
return targetDescriptor.getIdBinder().getIdInValueExpr(not, size);
|
||||
}
|
||||
|
||||
@@ -478,7 +478,7 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> implements ST
|
||||
* Return the logical id in expression taking into account embedded id's.
|
||||
*/
|
||||
@Override
|
||||
public String getAssocIdInExpr(String prefix) {
|
||||
public String assocIdInExpr(String prefix) {
|
||||
return targetDescriptor.getIdBinder().getAssocIdInExpr(prefix);
|
||||
}
|
||||
|
||||
|
||||
@@ -501,7 +501,7 @@ public class BeanPropertyAssocOne<T> extends BeanPropertyAssoc<T> implements STr
|
||||
* Return the logical id value expression taking into account embedded id's.
|
||||
*/
|
||||
@Override
|
||||
public String getAssocIdInValueExpr(boolean not, int size) {
|
||||
public String assocIdInValueExpr(boolean not, int size) {
|
||||
return targetDescriptor.getIdBinder().getIdInValueExpr(not, size);
|
||||
}
|
||||
|
||||
@@ -509,7 +509,7 @@ public class BeanPropertyAssocOne<T> extends BeanPropertyAssoc<T> implements STr
|
||||
* Return the logical id in expression taking into account embedded id's.
|
||||
*/
|
||||
@Override
|
||||
public String getAssocIdInExpr(String prefix) {
|
||||
public String assocIdInExpr(String prefix) {
|
||||
return targetDescriptor.getIdBinder().getAssocIdInExpr(prefix);
|
||||
}
|
||||
|
||||
|
||||
@@ -166,8 +166,8 @@ public final class ElPropertyChain implements ElPropertyValue {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAssocIsEmpty(SpiExpressionRequest request, String path) {
|
||||
return lastElPropertyValue.getAssocIsEmpty(request, path);
|
||||
public String assocIsEmpty(SpiExpressionRequest request, String path) {
|
||||
return lastElPropertyValue.assocIsEmpty(request, path);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -183,13 +183,13 @@ public final class ElPropertyChain implements ElPropertyValue {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAssocIdInExpr(String prefix) {
|
||||
return lastElPropertyValue.getAssocIdInExpr(prefix);
|
||||
public String assocIdInExpr(String prefix) {
|
||||
return lastElPropertyValue.assocIdInExpr(prefix);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAssocIdInValueExpr(boolean not, int size) {
|
||||
return lastElPropertyValue.getAssocIdInValueExpr(not, size);
|
||||
public String assocIdInValueExpr(boolean not, int size) {
|
||||
return lastElPropertyValue.assocIdInValueExpr(not, size);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -14,17 +14,17 @@ public interface ElPropertyValue extends ElPropertyDeploy, ExpressionPath {
|
||||
/**
|
||||
* Return the logical id value expression taking into account embedded id's.
|
||||
*/
|
||||
String getAssocIdInValueExpr(boolean not, int size);
|
||||
String assocIdInValueExpr(boolean not, int size);
|
||||
|
||||
/**
|
||||
* Return the logical id in expression taking into account embedded id's.
|
||||
*/
|
||||
String getAssocIdInExpr(String prefix);
|
||||
String assocIdInExpr(String prefix);
|
||||
|
||||
/**
|
||||
* Return the logical where clause to support "Is empty".
|
||||
*/
|
||||
String getAssocIsEmpty(SpiExpressionRequest request, String path);
|
||||
String assocIsEmpty(SpiExpressionRequest request, String path);
|
||||
|
||||
/**
|
||||
* Return true if this is an ManyToOne or OneToOne associated bean property.
|
||||
|
||||
@@ -145,8 +145,8 @@ final class InExpression extends AbstractExpression {
|
||||
}
|
||||
|
||||
if (prop != null) {
|
||||
request.append(prop.getAssocIdInExpr(propName));
|
||||
request.append(prop.getAssocIdInValueExpr(not, bindValues.size()));
|
||||
request.append(prop.assocIdInExpr(propName));
|
||||
request.append(prop.assocIdInValueExpr(not, bindValues.size()));
|
||||
} else {
|
||||
request.append(propName);
|
||||
request.appendInExpression(not, bindValues);
|
||||
|
||||
@@ -84,7 +84,7 @@ final class IsEmptyExpression extends AbstractExpression {
|
||||
}
|
||||
request
|
||||
.append("exists (select 1 from ")
|
||||
.append(prop.getAssocIsEmpty(request, propertyPath))
|
||||
.append(prop.assocIsEmpty(request, propertyPath))
|
||||
.append(")");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user