No effective change - code cleanup - remove unused methods

This commit is contained in:
Robin Bygrave
2015-07-31 20:49:21 +12:00
parent ea5ceb61ca
commit e800a18b31
3 changed files with 3 additions and 59 deletions
@@ -63,13 +63,6 @@ public final class PersistRequestOrmUpdate extends PersistRequest {
this.rowCount = count;
}
/**
* Always false.
*/
public boolean useGeneratedKeys() {
return false;
}
/**
* Not called for this type of request.
*/
@@ -63,13 +63,6 @@ public final class PersistRequestUpdateSql extends PersistRequest {
this.rowCount = count;
}
/**
* Always false.
*/
public boolean useGeneratedKeys() {
return false;
}
/**
* Not called for this type of request.
*/
@@ -1,9 +1,5 @@
package com.avaje.ebeaninternal.server.deploy;
import java.sql.SQLException;
import java.util.LinkedHashMap;
import com.avaje.ebean.bean.EntityBean;
import com.avaje.ebeaninternal.server.core.InternString;
import com.avaje.ebeaninternal.server.deploy.meta.DeployBeanProperty;
import com.avaje.ebeaninternal.server.deploy.meta.DeployTableJoin;
@@ -12,17 +8,14 @@ import com.avaje.ebeaninternal.server.query.SplitName;
import com.avaje.ebeaninternal.server.query.SqlBeanLoad;
import com.avaje.ebeaninternal.server.query.SqlJoinType;
import java.sql.SQLException;
import java.util.LinkedHashMap;
/**
* Represents a join to another table.
*/
public final class TableJoin {
/**
* Flag set when the imported key maps to the primary key. This occurs for
* intersection tables (ManyToMany).
*/
private final boolean importedPrimaryKey;
/**
* The joined table.
*/
@@ -33,11 +26,6 @@ public final class TableJoin {
*/
private final SqlJoinType type;
/**
* The persist cascade info.
*/
private final BeanCascadeInfo cascadeInfo;
private final InheritInfo inheritInfo;
/**
@@ -60,10 +48,8 @@ public final class TableJoin {
*/
public TableJoin(DeployTableJoin deploy, LinkedHashMap<String, BeanProperty> propMap) {
this.importedPrimaryKey = deploy.isImportedPrimaryKey();
this.table = InternString.intern(deploy.getTable());
this.type = deploy.getType();
this.cascadeInfo = deploy.getCascadeInfo();
this.inheritInfo = deploy.getInheritInfo();
DeployTableJoinColumn[] deployCols = deploy.columns();
@@ -125,27 +111,6 @@ public final class TableJoin {
}
}
public Object readSet(DbReadContext ctx, EntityBean bean, Class<?> type) throws SQLException {
for (int i = 0, x = properties.length; i < x; i++) {
properties[i].readSet(ctx, bean, type);
}
return null;
}
/**
* Return true if the imported foreign key maps to the primary key.
*/
public boolean isImportedPrimaryKey() {
return importedPrimaryKey;
}
/**
* Return the persist info.
*/
public BeanCascadeInfo getCascadeInfo() {
return cascadeInfo;
}
/**
* Return the join columns.
*/
@@ -174,13 +139,6 @@ public final class TableJoin {
return type;
}
/**
* Return true if this join is a left outer join.
*/
public boolean isOuterJoin() {
return type == SqlJoinType.OUTER;
}
public SqlJoinType addJoin(SqlJoinType joinType, String prefix, DbSqlContext ctx) {
String[] names = SplitName.split(prefix);