org.activemq.store.jdbc
Interface JDBCAdapter

All Known Implementing Classes:
DefaultJDBCAdapter

public interface JDBCAdapter

Version:
$Revision: 1.1 $

Nested Class Summary
static interface JDBCAdapter.ExpiredMessageResultHandler
           
static interface JDBCAdapter.MessageListResultHandler
           
 
Method Summary
 void doAddMessage(Connection c, long seq, String messageID, String destinationName, byte[] data, long expiration)
           
 void doAddXid(Connection c, ActiveMQXid xid)
           
 void doCreateTables(Connection c)
           
 void doDeleteExpiredMessage(Connection c, MessageIdentity messageIdentity)
           
 void doDeleteOldMessages(Connection c)
           
 void doDeleteSubscription(Connection c, String destinationName, String subscription)
           
 void doDropTables(Connection c)
           
 void doGetExpiredMessages(Connection c, JDBCAdapter.ExpiredMessageResultHandler handler)
           
 byte[] doGetMessage(Connection c, long seq)
           
 void doGetMessageForUpdate(Connection c, long seq, boolean useLocking, JDBCAdapter.ExpiredMessageResultHandler handler)
           
 SubscriberEntry doGetSubscriberEntry(Connection c, String destinationName, String sub)
           
 void doLoadPreparedTransactions(Connection c, TransactionStore.RecoveryListener listener)
           
 void doRecover(Connection c, String destinationName, JDBCAdapter.MessageListResultHandler listener)
           
 void doRecoverSubscription(Connection c, String destinationName, String sub, JDBCAdapter.MessageListResultHandler listener)
           
 void doRemoveAllMessages(Connection c, String destinationName)
           
 void doRemoveMessage(Connection c, long seq)
           
 void doRemoveXid(Connection c, ActiveMQXid xid)
           
 void doSetDeadLetterFlag(Connection c, long seq)
           
 void doSetLastAck(Connection c, String destinationName, String sub, long seq)
           
 void doSetSubscriberEntry(Connection c, String destinationName, String sub, SubscriberEntry subscriberEntry)
           
 Long getMessageSequenceId(Connection c, String messageID)
           
 LongSequenceGenerator getSequenceGenerator()
           
 StatementProvider getStatementProvider()
           
 void initSequenceGenerator(Connection c)
           
 

Method Detail

getSequenceGenerator

public LongSequenceGenerator getSequenceGenerator()

doCreateTables

public void doCreateTables(Connection c)
                    throws SQLException
Throws:
SQLException

doDropTables

public void doDropTables(Connection c)
                  throws SQLException
Throws:
SQLException

initSequenceGenerator

public void initSequenceGenerator(Connection c)

doAddMessage

public void doAddMessage(Connection c,
                         long seq,
                         String messageID,
                         String destinationName,
                         byte[] data,
                         long expiration)
                  throws SQLException,
                         JMSException
Throws:
SQLException
JMSException

doGetMessage

public byte[] doGetMessage(Connection c,
                           long seq)
                    throws SQLException
Throws:
SQLException

doGetMessageForUpdate

public void doGetMessageForUpdate(Connection c,
                                  long seq,
                                  boolean useLocking,
                                  JDBCAdapter.ExpiredMessageResultHandler handler)
                           throws SQLException,
                                  JMSException
Throws:
SQLException
JMSException

doRemoveMessage

public void doRemoveMessage(Connection c,
                            long seq)
                     throws SQLException
Throws:
SQLException

doRecover

public void doRecover(Connection c,
                      String destinationName,
                      JDBCAdapter.MessageListResultHandler listener)
               throws SQLException,
                      JMSException
Throws:
SQLException
JMSException

doRemoveXid

public void doRemoveXid(Connection c,
                        ActiveMQXid xid)
                 throws SQLException,
                        XAException
Throws:
SQLException
XAException

doAddXid

public void doAddXid(Connection c,
                     ActiveMQXid xid)
              throws SQLException,
                     XAException
Throws:
SQLException
XAException

doLoadPreparedTransactions

public void doLoadPreparedTransactions(Connection c,
                                       TransactionStore.RecoveryListener listener)
                                throws SQLException
Throws:
SQLException

doSetLastAck

public void doSetLastAck(Connection c,
                         String destinationName,
                         String sub,
                         long seq)
                  throws SQLException,
                         JMSException
Throws:
SQLException
JMSException

doRecoverSubscription

public void doRecoverSubscription(Connection c,
                                  String destinationName,
                                  String sub,
                                  JDBCAdapter.MessageListResultHandler listener)
                           throws SQLException,
                                  JMSException
Throws:
SQLException
JMSException

doSetSubscriberEntry

public void doSetSubscriberEntry(Connection c,
                                 String destinationName,
                                 String sub,
                                 SubscriberEntry subscriberEntry)
                          throws SQLException,
                                 JMSException
Throws:
SQLException
JMSException

doGetSubscriberEntry

public SubscriberEntry doGetSubscriberEntry(Connection c,
                                            String destinationName,
                                            String sub)
                                     throws SQLException,
                                            JMSException
Throws:
SQLException
JMSException

getMessageSequenceId

public Long getMessageSequenceId(Connection c,
                                 String messageID)
                          throws SQLException,
                                 JMSException
Throws:
SQLException
JMSException

doRemoveAllMessages

public void doRemoveAllMessages(Connection c,
                                String destinationName)
                         throws SQLException,
                                JMSException
Throws:
SQLException
JMSException

doDeleteSubscription

public void doDeleteSubscription(Connection c,
                                 String destinationName,
                                 String subscription)
                          throws SQLException,
                                 JMSException
Throws:
SQLException
JMSException

doDeleteOldMessages

public void doDeleteOldMessages(Connection c)
                         throws SQLException,
                                JMSException
Throws:
SQLException
JMSException

doGetExpiredMessages

public void doGetExpiredMessages(Connection c,
                                 JDBCAdapter.ExpiredMessageResultHandler handler)
                          throws SQLException,
                                 JMSException
Throws:
SQLException
JMSException

doDeleteExpiredMessage

public void doDeleteExpiredMessage(Connection c,
                                   MessageIdentity messageIdentity)
                            throws SQLException,
                                   JMSException
Throws:
SQLException
JMSException

doSetDeadLetterFlag

public void doSetDeadLetterFlag(Connection c,
                                long seq)
                         throws SQLException,
                                JMSException
Throws:
SQLException
JMSException

getStatementProvider

public StatementProvider getStatementProvider()


Copyright © 2004-2007 Protique, Ltd.. All Rights Reserved.