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 2003/05/23 00:24:12 UTC
cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/sequence SequenceManagerInMemoryImpl.java SequenceManagerHighLowImpl.java
arminw 2003/05/22 15:24:09
Modified: src/java/org/apache/ojb/broker/util ConstructorHelper.java
src/java/org/apache/ojb/broker/util/sequence
SequenceManagerInMemoryImpl.java
SequenceManagerHighLowImpl.java
Log:
- fix javadoc
- add more logging
Revision Changes Path
1.3 +12 -10 db-ojb/src/java/org/apache/ojb/broker/util/ConstructorHelper.java
Index: ConstructorHelper.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/ConstructorHelper.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ConstructorHelper.java 16 Mar 2003 12:04:32 -0000 1.2
+++ ConstructorHelper.java 22 May 2003 22:24:09 -0000 1.3
@@ -61,9 +61,11 @@
* This class helps us to construct new instances.
* We don't want to rely on public default constructors and
* have to try hard to also use private or protected constructors.
- *
+ *
* @author Thomas Mahler
* @author Lance Eason
+ *
+ * @version $Id$
*/
public class ConstructorHelper
{
@@ -108,7 +110,7 @@
catch (NoSuchMethodException ex)
{
throw new ClassNotPersistenceCapableException(
- clazz.getName() + " does not provide a zero argument constructor!");
+ clazz.getName() + " does not provide a zero argument constructor!",ex);
}
//2. make is accessible
@@ -125,8 +127,8 @@
throw new ClassNotPersistenceCapableException(
"Could not instantiate "
+ clazz.getName()
- + ": "
- + t.getMessage() + ")");
+ + ": "
+ + t.getMessage() + ")",t);
}
}
@@ -148,9 +150,9 @@
throw new ClassNotPersistenceCapableException(
"A zero argument constructor was not provided!");
}
-
+
Object result = null;
-
+
try
{
result = constructor.newInstance(NO_ARGS);
@@ -158,12 +160,12 @@
catch (Throwable t)
{
throw new ClassNotPersistenceCapableException(
- "Could not instantiate "
+ "(Could not instantiate "
+ constructor.getDeclaringClass().getName()
- + ": "
- + t.getMessage() + ")");
+ + ": "
+ + t.getMessage() + ")", t);
}
-
+
return result;
}
1.11 +3 -2 db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerInMemoryImpl.java
Index: SequenceManagerInMemoryImpl.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerInMemoryImpl.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- SequenceManagerInMemoryImpl.java 11 Apr 2003 21:59:49 -0000 1.10
+++ SequenceManagerInMemoryImpl.java 22 May 2003 22:24:09 -0000 1.11
@@ -101,8 +101,9 @@
*
* @see org.apache.ojb.broker.util.sequence.SequenceManager
* @see org.apache.ojb.broker.util.sequence.SequenceManagerFactory
- * @see org.apache.ojb.broker.util.sequence.SequenceGenerator
* @see org.apache.ojb.broker.util.sequence.SequenceManagerHelper
+ *
+ *
* @author <a href="mailto:armin@codeAuLait.de">Armin Waibel</a>
* @version $Id$
*/
1.19 +1 -2 db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerHighLowImpl.java
Index: SequenceManagerHighLowImpl.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerHighLowImpl.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- SequenceManagerHighLowImpl.java 11 Apr 2003 21:59:49 -0000 1.18
+++ SequenceManagerHighLowImpl.java 22 May 2003 22:24:09 -0000 1.19
@@ -134,7 +134,6 @@
*
* @see org.apache.ojb.broker.util.sequence.SequenceManager
* @see org.apache.ojb.broker.util.sequence.SequenceManagerFactory
- * @see org.apache.ojb.broker.util.sequence.SequenceGenerator
* @see org.apache.ojb.broker.util.sequence.SequenceManagerHelper
*
* @author <a href="mailto:armin@codeAuLait.de">Armin Waibel</a>