org.apache.activemq.store.jdbc.adapter
Class BlobJDBCAdapter
java.lang.Object
org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter
org.apache.activemq.store.jdbc.adapter.BlobJDBCAdapter
- All Implemented Interfaces:
- JDBCAdapter
- Direct Known Subclasses:
- InformixJDBCAdapter, OracleJDBCAdapter
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.2 $
Methods inherited from class org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter |
doAddMessage, doAddMessageReference, doCreateTables, doDeleteOldMessages, doDeleteSubscription, doDropTables, doGetAllSubscriptions, doGetDestinations, doGetDurableSubscriberMessageCount, doGetLastAckedDurableSubscriberMessageId, doGetLastMessageStoreSequenceId, doGetMessage, doGetMessageById, doGetMessageCount, doGetMessageReference, doGetNextDurableSubscriberMessageStatement, doGetSubscriberEntry, doMessageIdScan, doRecover, doRecoverNextMessages, doRecoverNextMessages, doRecoverSubscription, doRemoveAllMessages, doRemoveMessage, doSetLastAck, doSetSubscriberEntry, getBinaryData, getStatements, getStoreSequenceId, isBatchStatments, setBatchStatments, setBinaryData, setStatements, setUseExternalMessageReferences |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlobJDBCAdapter
public BlobJDBCAdapter()
doAddMessage
public void doAddMessage(Connection c,
long seq,
String messageID,
String destinationName,
byte[] data)
throws SQLException,
JMSException
- Throws:
SQLException
JMSException
doGetMessage
public byte[] doGetMessage(TransactionContext c,
long seq)
throws SQLException
- Throws:
SQLException
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.