You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by hu...@apache.org on 2002/08/20 23:33:02 UTC
cvs commit: jakarta-commons-sandbox/scaffold/src/java/org/apache/commons/scaffold/util StorageBean.java
husted 2002/08/20 14:33:02
Modified: scaffold/src/java/org/apache/commons/scaffold/util
StorageBean.java
Log:
+ StorageBeanBase.retrieve, recycle,delete: Add call to result.setSingleForm.
+ StorageBeanBase.findElement: Swap key,command parameters
+ StorageBeanBase: Added findCollection convenience methods.
+ StorageBeanBase: Add marked as a base property.
Revision Changes Path
1.2 +12 -5 jakarta-commons-sandbox/scaffold/src/java/org/apache/commons/scaffold/util/StorageBean.java
Index: StorageBean.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/scaffold/src/java/org/apache/commons/scaffold/util/StorageBean.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- StorageBean.java 19 Aug 2002 22:33:01 -0000 1.1
+++ StorageBean.java 20 Aug 2002 21:33:02 -0000 1.2
@@ -166,7 +166,14 @@
/**
* Retrieve object from data storage.
- * <p>
+ * <P>
+ * <B>NOTE</B> that the precursor to this inteface,
+ * the <CODE>AccessBase</CODE> class reversed the
+ * command and key parameters.
+ * This was inconsistent with how the parameters were
+ * used elsewhere.
+ * If you are converting from AccessBase, be sure to
+ * submit the parameters in the correct order.
* @return True if object is found
* @exception ResourceException if SQL error occurs
* @param target Object to use as factory when populating
@@ -177,8 +184,8 @@
*/
public boolean findElement(
Object target,
- Object key,
- String command) throws ResourceException;
+ String command,
+ Object key) throws ResourceException;
/**
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>