diff --git a/src/main/java/com/avaje/ebeaninternal/server/deploy/DeployUpdateMapFactory.java b/src/main/java/com/avaje/ebeaninternal/server/deploy/DeployUpdateMapFactory.java deleted file mode 100644 index 93e5f80df..000000000 --- a/src/main/java/com/avaje/ebeaninternal/server/deploy/DeployUpdateMapFactory.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.avaje.ebeaninternal.server.deploy; - -import java.util.HashMap; -import java.util.Map; - -import com.avaje.ebeaninternal.server.deploy.id.ImportedId; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * Build a map of logical to physical names for use in Orm Updates. - * - */ -public class DeployUpdateMapFactory { - - private static final Logger logger = LoggerFactory.getLogger(DeployUpdateMapFactory.class); - - /** - * Build a map of logical to physical names for use in Orm Updates for a given descriptor. - *
- * This includes the dbWrite scalar properties and imported foreign key properties. - *
- */ - public static Map- * Both columns need to be defined. If one is null then typically it is - * derived as the primary key column. - *
- */ - public boolean hasNullColumn() { - return localDbColumn == null || foreignDbColumn == null; - } - - /** - * When only ONE column has been set by deployment information return that one. - *- * Used with hasNullColumn() to set the foreignDbColumn for OneToMany joins. - *
- */ - public String getNonNullColumn() { - if (localDbColumn == null && foreignDbColumn == null) { - throw new IllegalStateException("expecting only one null column?"); - - } else if (localDbColumn != null && foreignDbColumn != null) { - throw new IllegalStateException("expecting one null column?"); - } - if (localDbColumn != null) { - return localDbColumn; - } else { - return foreignDbColumn; - } - } - /** * Return true if this column should be insertable. */ @@ -150,17 +119,6 @@ public class DeployTableJoinColumn { return foreignDbColumn; } - /** - * Set the foreign database column name. - *- * Used when this is derived from Primary Key and not set explicitly in the - * deployment information. - *
- */ - public void setForeignDbColumn(String foreignDbColumn) { - this.foreignDbColumn = foreignDbColumn; - } - /** * Return the local database column name. */ @@ -168,11 +126,4 @@ public class DeployTableJoinColumn { return localDbColumn; } - /** - * Set the local database column name. - */ - public void setLocalDbColumn(String localDbColumn) { - this.localDbColumn = localDbColumn; - } - }