User: oleg
Date: 01/02/07 16:22:35
Modified: castorjdo/src/main/org/jboss/jdo/castor CastorJDOImpl.java
Log:
Added support for Castor 0.9
Revision Changes Path
1.9 +28 -5
contrib/castorjdo/src/main/org/jboss/jdo/castor/CastorJDOImpl.java
Index: CastorJDOImpl.java
===================================================================
RCS file:
/products/cvs/ejboss/contrib/castorjdo/src/main/org/jboss/jdo/castor/CastorJDOImpl.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- CastorJDOImpl.java 2001/01/04 09:52:12 1.8
+++ CastorJDOImpl.java 2001/02/08 00:22:34 1.9
@@ -50,7 +50,7 @@
* Castor JDO support
*
* @author Oleg Nitz ([EMAIL PROTECTED])
- * @version $Revision: 1.8 $
+ * @version $Revision: 1.9 $
*/
public class CastorJDOImpl extends ServiceMBeanSupport
implements DataObjects, ObjectFactory, Referenceable, Serializable,
@@ -75,12 +75,12 @@
public CastorJDOImpl() {
// Instance being used as ObjectFactory
}
-
+
public CastorJDOImpl(String dbConf, String jndiName, Integer lockTimeout,
Boolean logging)
throws Exception {
this(dbConf, jndiName, lockTimeout, logging, Boolean.FALSE);
}
-
+
public CastorJDOImpl(String dbConf, String jndiName, Integer lockTimeout,
Boolean logging, Boolean sameClassLoader) throws Exception
{
org.exolab.castor.jdo.conf.Database database;
@@ -184,11 +184,11 @@
}
n = n.getSuffix(1);
}
-
+
ctx.bind(n.get(0), val);
}
- // LogInterceptor implementation ----------------------------------
+ // LogInterceptor implementation for Castor 0.8 ----------------------
public void loading(Class objClass, Object identity) {
log.debug( "Loading " + objClass.getName() + " (" + identity + ")" );
}
@@ -208,6 +208,29 @@
log.debug( "Storing " + objClass.getName() + " (" + identity + ")" );
}
+
+ // LogInterceptor implementation for Castor 0.9 ----------------------
+ public void loading(Object objClass, Object identity) {
+ log.debug( "Loading " + objClass + " (" + identity + ")" );
+ }
+
+
+ public void creating(Object objClass, Object identity) {
+ log.debug( "Creating " + objClass + " (" + identity + ")" );
+ }
+
+
+ public void removing(Object objClass, Object identity) {
+ log.debug( "Removing " + objClass + " (" + identity + ")" );
+ }
+
+
+ public void storing(Object objClass, Object identity) {
+ log.debug( "Storing " + objClass + " (" + identity + ")" );
+ }
+
+
+ // LogInterceptor implementation - the rest part --------------------
public void storeStatement(String statement) {
log.debug(statement);