org.apache.activemq.store.jdbc.adapter
Class OracleBlobJDBCAdapter

java.lang.Object
  extended by org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter
      extended by org.apache.activemq.store.jdbc.adapter.BlobJDBCAdapter
          extended by org.apache.activemq.store.jdbc.adapter.OracleBlobJDBCAdapter
All Implemented Interfaces:
JDBCAdapter

public class OracleBlobJDBCAdapter
extends BlobJDBCAdapter

Implements all the default JDBC operations that are used by the JDBCPersistenceAdapter.

Subclassing is encouraged to override the default implementation of methods to account for differences in JDBC Driver implementations.

The JDBCAdapter inserts and extracts BLOB data using the getBytes()/setBytes() operations.

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
OracleBlobJDBCAdapter()
           
 
Method Summary
protected  byte[] getBinaryData(ResultSet rs, int index)
           
 void setStatements(Statements statements)
           
 
Methods inherited from class org.apache.activemq.store.jdbc.adapter.BlobJDBCAdapter
doAddMessage, doGetMessage
 
Methods inherited from class org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter
close, close, doAddMessageReference, doClearLastAck, doCommitAddOp, doCreateTables, doDeleteOldMessages, doDeleteSubscription, doDropTables, doGetAllSubscriptions, doGetDestinations, doGetDurableSubscriberMessageCount, doGetLastAckedDurableSubscriberMessageId, doGetLastMessageStoreSequenceId, doGetLastProducerSequenceId, doGetMessageById, doGetMessageCount, doGetMessageReference, doGetSubscriberEntry, doMessageIdScan, doRecordDestination, doRecover, doRecoverNextMessages, doRecoverNextMessages, doRecoverNextMessagesWithPriority, doRecoverPreparedOps, doRecoverSubscription, doRemoveAllMessages, doRemoveMessage, doSetLastAck, doSetLastAckWithPriority, doSetSubscriberEntry, dumpTables, dumpTables, getMaxRows, getStatements, getStoreSequenceId, isBatchStatments, printQuery, printQuery, setBatchStatments, setBinaryData, setMaxRows, setUseExternalMessageReferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleBlobJDBCAdapter

public OracleBlobJDBCAdapter()
Method Detail

setStatements

public void setStatements(Statements statements)
Specified by:
setStatements in interface JDBCAdapter
Overrides:
setStatements in class BlobJDBCAdapter

getBinaryData

protected byte[] getBinaryData(ResultSet rs,
                               int index)
                        throws SQLException
Overrides:
getBinaryData in class DefaultJDBCAdapter
Throws:
SQLException


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.