User: salborini
Date: 00/09/13 15:44:08
Modified: src/main/org/jboss/ejb/plugins/jaws/jdbc JDBCCommand.java
Log:
I had to do this modification to be able to store objects (in Hypersonic). The
question is whether to let the jdbc driver deserialize the bytes or to do it
ourselves. It works like that but I'm not so sure of my solution.
Revision Changes Path
1.13 +5 -4 jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCCommand.java
Index: JDBCCommand.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCCommand.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- JDBCCommand.java 2000/09/09 02:52:55 1.12
+++ JDBCCommand.java 2000/09/13 22:44:07 1.13
@@ -51,7 +51,7 @@
* utility methods that database commands may need to call.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Justin Forder</a>
- * @version $Revision: 1.12 $
+ * @version $Revision: 1.13 $
*/
public abstract class JDBCCommand
{
@@ -376,19 +376,20 @@
}
}
- result = rs.getObject(idx);
+ /*result = rs.getObject(idx);
if(result == null)
return null;
if(destination.isAssignableFrom(result.getClass()))
- return result;
+ return result;*/
// DEBUG else System.out.println("Got a "+result.getClass().getName()+":
'"+result+"' while looking for a "+destination.getName());
// Also we should detect the EJB references here
// Get the underlying byte[]
- byte[] bytes = result instanceof byte[] ? (byte[])result : rs.getBytes(idx);
+ //byte[] bytes = result instanceof byte[] ? (byte[])result :
rs.getBytes(idx);
+ byte[] bytes = rs.getBytes(idx);
if( bytes == null ) {
result = null;