|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter
org.apache.activemq.store.jdbc.adapter.BlobJDBCAdapter
public class BlobJDBCAdapter
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:
| Field Summary |
|---|
| Fields inherited from class org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter |
|---|
batchStatments, cleanupExclusiveLock, MAX_ROWS, maxRows, prioritizedMessages, statements |
| Constructor Summary | |
|---|---|
BlobJDBCAdapter()
|
|
| Method Summary | |
|---|---|
void |
doAddMessage(TransactionContext c,
long sequence,
MessageId messageID,
ActiveMQDestination destination,
byte[] data,
long expiration,
byte priority)
|
byte[] |
doGetMessage(TransactionContext c,
MessageId id)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlobJDBCAdapter()
| Method Detail |
|---|
public void doAddMessage(TransactionContext c,
long sequence,
MessageId messageID,
ActiveMQDestination destination,
byte[] data,
long expiration,
byte priority)
throws java.sql.SQLException,
java.io.IOException
doAddMessage in interface JDBCAdapterdoAddMessage in class DefaultJDBCAdapterjava.sql.SQLException
java.io.IOException
public byte[] doGetMessage(TransactionContext c,
MessageId id)
throws java.sql.SQLException,
java.io.IOException
doGetMessage in interface JDBCAdapterdoGetMessage in class DefaultJDBCAdapterjava.sql.SQLException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||