From 19287550f410939b104dcb357d0b876525bc98bd Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 30 Sep 2008 00:23:57 +0000 Subject: [PATCH] More javadoc cleanup. --- .../jdbc/depot/DepotRepository.java | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/java/com/samskivert/jdbc/depot/DepotRepository.java b/src/java/com/samskivert/jdbc/depot/DepotRepository.java index 05af9ca..6716c85 100644 --- a/src/java/com/samskivert/jdbc/depot/DepotRepository.java +++ b/src/java/com/samskivert/jdbc/depot/DepotRepository.java @@ -482,8 +482,7 @@ public abstract class DepotRepository * * @param type the type of the persistent object to be modified. * @param primaryKey the primary key to match in the update. - * @param fieldsValues an mapping from the names of the fields/columns ti the values to be - * assigned. + * @param updates an mapping from the names of the fields/columns ti the values to be assigned. * * @return the number of rows modified by this action. */ @@ -522,7 +521,6 @@ public abstract class DepotRepository * primary key. * * @param type the type of the persistent object to be modified. - * @param primaryKey the primary key to match in the update. * @param fieldsValues an array containing the names of the fields/columns and the values to be * assigned, in key, value, key, value, etc. order. * @@ -541,7 +539,6 @@ public abstract class DepotRepository * primary key. * * @param type the type of the persistent object to be modified. - * @param primaryKey the primary key to match in the update. * @param fieldsValues an array containing the names of the fields/columns and the values to be * assigned, in key, value, key, value, etc. order. * @@ -636,11 +633,11 @@ public abstract class DepotRepository * @return the number of rows modified by this action. */ protected int updateLiteral ( - Class type, Comparable primaryKey, Map fieldsToValues) + Class type, Comparable primaryKey, Map fieldsValues) throws DatabaseException { Key key = _ctx.getMarshaller(type).makePrimaryKey(primaryKey); - return updateLiteral(type, key, key, fieldsToValues); + return updateLiteral(type, key, key, fieldsValues); } /** @@ -654,7 +651,6 @@ public abstract class DepotRepository * * * @param type the type of the persistent object to be modified. - * @param primaryKey the key to match in the update. * @param fieldsValues an array containing the names of the fields/columns and the values to be * assigned, in key, literal value, key, literal value, etc. order. * @@ -662,11 +658,11 @@ public abstract class DepotRepository */ protected int updateLiteral ( Class type, String ix1, Comparable val1, String ix2, Comparable val2, - Map fieldsToValues) + Map fieldsValues) throws DatabaseException { Key key = new Key(type, ix1, val1, ix2, val2); - return updateLiteral(type, key, key, fieldsToValues); + return updateLiteral(type, key, key, fieldsValues); } /** @@ -680,7 +676,6 @@ public abstract class DepotRepository * * * @param type the type of the persistent object to be modified. - * @param primaryKey the key to match in the update. * @param fieldsValues an array containing the names of the fields/columns and the values to be * assigned, in key, literal value, key, literal value, etc. order. * @@ -688,11 +683,11 @@ public abstract class DepotRepository */ protected int updateLiteral ( Class type, String ix1, Comparable val1, String ix2, Comparable val2, - String ix3, Comparable val3, Map fieldsToValues) + String ix3, Comparable val3, Map fieldsValues) throws DatabaseException { Key key = new Key(type, ix1, val1, ix2, val2, ix3, val3); - return updateLiteral(type, key, key, fieldsToValues); + return updateLiteral(type, key, key, fieldsValues); } /** @@ -714,7 +709,7 @@ public abstract class DepotRepository */ protected int updateLiteral ( Class type, final WhereClause key, CacheInvalidator invalidator, - Map fieldsToValues) + Map fieldsValues) throws DatabaseException { requireNotComputed(type, "updateLiteral"); @@ -725,10 +720,10 @@ public abstract class DepotRepository key.validateQueryType(type); // and another // separate the arguments into keys and values - final String[] fields = new String[fieldsToValues.size()]; + final String[] fields = new String[fieldsValues.size()]; final SQLExpression[] values = new SQLExpression[fields.length]; int ii = 0; - for (Map.Entry entry : fieldsToValues.entrySet()) { + for (Map.Entry entry : fieldsValues.entrySet()) { fields[ii] = entry.getKey(); values[ii] = entry.getValue(); ii ++;