org.codehaus.activemq.store.jdbc.adapter
Class BlobJDBCAdapter
java.lang.Object
org.codehaus.activemq.store.jdbc.adapter.DefaultJDBCAdapter
org.codehaus.activemq.store.jdbc.adapter.BlobJDBCAdapter
- All Implemented Interfaces:
- JDBCAdapter
- public class BlobJDBCAdapter
- extends DefaultJDBCAdapter
This JDBCAdapter inserts and extracts BLOB data using the
getBlob()/setBlob() operations. This is a little more involved
since to insert a blob you have to:
1: insert empty blob.
2: select the blob
3: finally update the blob with data value.
The databases/JDBC drivers that use this adapter are:
- Version:
- $Revision: 1.1 $
Methods inherited from class org.codehaus.activemq.store.jdbc.adapter.DefaultJDBCAdapter |
doAddXid, doCreateTables, doGetSubscriberEntry, doGetXids, doLoadPreparedTransactions, doRecover, doRecoverSubscription, doRemoveMessage, doRemoveXid, doSetLastAck, doSetSubscriberEntry, getBinaryData, getMessageSequenceId, getSequenceGenerator, initSequenceGenerator, setBinaryData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlobJDBCAdapter
public BlobJDBCAdapter()
BlobJDBCAdapter
public BlobJDBCAdapter(StatementProvider provider)
doAddMessage
public void doAddMessage(Connection c,
long seq,
String messageID,
String destinationName,
byte[] data)
throws SQLException,
JMSException
- Specified by:
doAddMessage
in interface JDBCAdapter
- Overrides:
doAddMessage
in class DefaultJDBCAdapter
- Throws:
SQLException
JMSException
doGetMessage
public byte[] doGetMessage(Connection c,
long seq)
throws SQLException
- Specified by:
doGetMessage
in interface JDBCAdapter
- Overrides:
doGetMessage
in class DefaultJDBCAdapter
- Throws:
SQLException
Copyright © 2004 Protique, Ltd.. All Rights Reserved.