org.activemq.store.jdbc.adapter
Class BlobJDBCAdapter
java.lang.Object
org.activemq.store.jdbc.adapter.DefaultJDBCAdapter
org.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 $
Method Summary |
void |
doAddMessage(java.sql.Connection c,
long seq,
java.lang.String messageID,
java.lang.String destinationName,
byte[] data)
|
byte[] |
doGetMessage(java.sql.Connection c,
long seq)
|
Methods inherited from class org.activemq.store.jdbc.adapter.DefaultJDBCAdapter |
doAddMessage, doAddXid, doCreateTables, doDeleteOldMessages, doDeleteSubscription, doDropTables, doGetSubscriberEntry, doLoadPreparedTransactions, doRecover, doRecoverSubscription, doRemoveAllMessages, 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(java.sql.Connection c,
long seq,
java.lang.String messageID,
java.lang.String destinationName,
byte[] data)
throws java.sql.SQLException,
javax.jms.JMSException
- Throws:
java.sql.SQLException
javax.jms.JMSException
doGetMessage
public byte[] doGetMessage(java.sql.Connection c,
long seq)
throws java.sql.SQLException
- Specified by:
doGetMessage
in interface JDBCAdapter
- Overrides:
doGetMessage
in class DefaultJDBCAdapter
- Throws:
java.sql.SQLException
Copyright © 2004-2005 Protique, Ltd.. All Rights Reserved.