[jboss-cvs] JBossCache/src/org/jboss/cache/loader ...
Galder Zamarreno
galder.zamarreno at jboss.com
Thu Apr 19 17:51:20 EDT 2007
User: gzamarreno
Date: 07/04/19 17:51:19
Modified: src/org/jboss/cache/loader AdjListJDBCCacheLoader.java
Log:
[JBCACHE-964] unit tests for transforming cache loaders now run from build.xml and are also executed as part of the cc tests
Revision Changes Path
1.5 +3 -3 JBossCache/src/org/jboss/cache/loader/AdjListJDBCCacheLoader.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AdjListJDBCCacheLoader.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/loader/AdjListJDBCCacheLoader.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- AdjListJDBCCacheLoader.java 14 Mar 2007 16:42:17 -0000 1.4
+++ AdjListJDBCCacheLoader.java 19 Apr 2007 21:51:19 -0000 1.5
@@ -423,7 +423,7 @@
// ObjectOutputStream oos = new ObjectOutputStream(baos);
// oos.writeObject(node);
- byte[] byteStream = getMarshaller().objectToByteBuffer(node);
+ byte[] byteStream = marshall(node);
ByteArrayInputStream bais = new ByteArrayInputStream(byteStream);
ps.setBinaryStream(2, bais, byteStream.length);
}
@@ -506,7 +506,7 @@
// ObjectOutputStream oos = new ObjectOutputStream(baos);
// oos.writeObject(node);
- byte[] byteStream = getMarshaller().objectToByteBuffer(node);
+ byte[] byteStream = marshall(node);
ByteArrayInputStream bais = new ByteArrayInputStream(byteStream);
ps.setBinaryStream(1, bais, byteStream.length);
@@ -679,7 +679,7 @@
return getMarshaller().objectFromStream(from);
}
- protected Object marshall(Object obj) throws Exception
+ protected byte[] marshall(Object obj) throws Exception
{
return getMarshaller().objectToByteBuffer(obj);
}
More information about the jboss-cvs-commits
mailing list