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
- Direct Known Subclasses:
- InformixJDBCAdapter
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.activemq.store.jdbc.adapter.DefaultJDBCAdapter |
doAddMessage, doAddXid, doCreateTables, doDeleteExpiredMessage, doDeleteOldMessages, doDeleteSubscription, doDropTables, doGetExpiredMessages, doGetMessageForUpdate, doGetSubscriberEntry, doLoadPreparedTransactions, doRecover, doRecoverSubscription, doRemoveAllMessages, doRemoveMessage, doRemoveXid, doSetDeadLetterFlag, doSetLastAck, doSetSubscriberEntry, getBinaryData, getMessageSequenceId, getSequenceGenerator, getStatementProvider, 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
- 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-2009 Protique, Ltd.. All Rights Reserved.