You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2005/05/14 13:36:03 UTC
cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/sequence SequenceManager.java
arminw 2005/05/14 04:36:03
Modified: src/java/org/apache/ojb/broker/util/sequence Tag:
OJB_1_0_RELEASE SequenceManager.java
Log:
update javadoc
Revision Changes Path
No revision
No revision
1.10.2.3 +16 -12 db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManager.java
Index: SequenceManager.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManager.java,v
retrieving revision 1.10.2.2
retrieving revision 1.10.2.3
diff -u -r1.10.2.2 -r1.10.2.3
--- SequenceManager.java 22 Apr 2005 16:44:14 -0000 1.10.2.2
+++ SequenceManager.java 14 May 2005 11:36:02 -0000 1.10.2.3
@@ -40,24 +40,28 @@
public interface SequenceManager
{
/**
+ * This method is called to get an unique value <strong>before</strong> the object
+ * is written to persistent storage.
+ * <br/>
* Returns a unique object for the given field attribute.
* The returned value takes in account the jdbc-type
* and the FieldConversion.sql2java() conversion defined for <code>field</code>.
- * The returned object is unique accross all tables in the extent
- * of class the field belongs to.
+ * The returned object is unique accross all tables of "extent" classes the
+ * field belongs to.
+ * <br/>
+ * Implementations using native identity columns should return a unique
+ * incremented counter object for temporary use by OJB.
*/
public Object getUniqueValue(FieldDescriptor field) throws SequenceManagerException;
-
/**
- * This is to support auto_increment columns on the db side
- * <p>
- * high/low and other implementations may ignore this method.
- * <p>
- * Travis Reeder
- *
- * @param cld
- * @param obj
+ * This method is called <strong>after</strong> the object was written to the persistent storage.
+ * <br/>
+ * This is to support native Identity columns (auto_increment columns) on the db side.
+ * Other implementations may ignore this method.
+ * @param dbAccess Current used {@link org.apache.ojb.broker.accesslayer.JdbcAccess} instance
+ * @param cld Descriptor for specified object
+ * @param obj The object to associate with identity value
*/
public void afterStore(JdbcAccess dbAccess, ClassDescriptor cld, Object obj) throws SequenceManagerException;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org