No effective change - code cleanup - BeanFkeyProperty

This commit is contained in:
Robin Bygrave
2015-07-31 20:32:27 +12:00
parent f06c1b83a9
commit 19e3d82d98
3 changed files with 4 additions and 11 deletions
@@ -18,8 +18,8 @@ public final class BeanFkeyProperty implements ElPropertyValue {
private final int deployOrder;
public BeanFkeyProperty(String prefix, String name, String dbColumn, int deployOrder) {
this(prefix, name, dbColumn, deployOrder, false);
public BeanFkeyProperty(String name, String dbColumn, int deployOrder) {
this(null, name, dbColumn, deployOrder, false);
}
private BeanFkeyProperty(String prefix, String name, String dbColumn, int deployOrder, boolean containsMany) {
@@ -68,13 +68,6 @@ public final class BeanFkeyProperty implements ElPropertyValue {
return false;
}
/**
* Only usable as ElPropertyDeploy.
*/
public boolean isDeployOnly() {
return true;
}
@Override
public boolean containsFormulaWithJoin() {
return false;
@@ -37,7 +37,7 @@ public class ImportedIdEmbedded implements ImportedId {
for (int i = 0; i < imported.length; i++) {
String n = name+"."+foreignAssocOne.getName()+"."+embeddedProps[i].getName();
BeanFkeyProperty fkey = new BeanFkeyProperty(null, n, imported[i].localDbColumn, foreignAssocOne.getDeployOrder());
BeanFkeyProperty fkey = new BeanFkeyProperty(n, imported[i].localDbColumn, foreignAssocOne.getDeployOrder());
owner.getBeanDescriptor().add(fkey);
}
}
@@ -74,7 +74,7 @@ public final class ImportedIdSimple implements ImportedId, Comparable<ImportedId
}
public void addFkeys(String name) {
BeanFkeyProperty fkey = new BeanFkeyProperty(null, name+"."+foreignProperty.getName(), localDbColumn, owner.getDeployOrder());
BeanFkeyProperty fkey = new BeanFkeyProperty(name+"."+foreignProperty.getName(), localDbColumn, owner.getDeployOrder());
owner.getBeanDescriptor().add(fkey);
}