| 
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.ws.rm.persistence.jdbc.RMTxStore
public class RMTxStore
| Field Summary | |
|---|---|
static String | 
DEFAULT_DATABASE_NAME
 | 
| Constructor Summary | |
|---|---|
RMTxStore()
 | 
|
| Method Summary | |
|---|---|
protected  void | 
abort()
 | 
protected  void | 
beginTransaction()
 | 
protected  void | 
commit()
 | 
 void | 
createDestinationSequence(DestinationSequence seq)
Create a destination sequence in the persistent store, with the sequence attributes as specified in the RMSDestinationSequence object. | 
 void | 
createSourceSequence(SourceSequence seq)
Create a source sequence in the persistent store, with the sequence attributes as specified in the RMSourceSequence object. | 
protected  void | 
createTables()
 | 
static void | 
deleteDatabaseFiles()
 | 
static void | 
deleteDatabaseFiles(String dbName,
                    boolean now)
 | 
 DestinationSequence | 
getDestinationSequence(Identifier sid)
Retrieve the destination sequence with the specified identifier from persistent store.  | 
 Collection<DestinationSequence> | 
getDestinationSequences(String endpointIdentifier)
Retrieves all sequences managed by the identified RM destination endpoint from persistent store.  | 
 String | 
getDriverClassName()
 | 
 Collection<RMMessage> | 
getMessages(Identifier sid,
            boolean outbound)
Retrieves the outbound/inbound messages stored for the source/destination sequence with the given identifier.  | 
 String | 
getPassword()
 | 
 SourceSequence | 
getSourceSequence(Identifier sid)
Retrieve the source sequence with the specified identifier from persistent store.  | 
 Collection<SourceSequence> | 
getSourceSequences(String endpointIdentifier)
Retrieves all sequences managed by the identified RM source endpoint from persistent store.  | 
 int | 
getTableExistsCode()
 | 
 String | 
getTableExistsState()
 | 
 String | 
getUrl()
 | 
 String | 
getUserName()
 | 
 void | 
init()
 | 
protected  boolean | 
isTableExistsError(SQLException ex)
 | 
 void | 
persistIncoming(DestinationSequence seq,
                RMMessage msg)
Called by an RM source upon processing an outbound message.  | 
 void | 
persistOutgoing(SourceSequence seq,
                RMMessage msg)
Called by an RM source upon processing an outbound message.  | 
 void | 
removeDestinationSequence(Identifier sid)
Remove the destination sequence with the specified identifier from persistent store.  | 
 void | 
removeMessages(Identifier sid,
               Collection<Long> messageNrs,
               boolean outbound)
Removes the messages with the given message numbers and identifiers from the store of outbound/inbound messages.  | 
 void | 
removeSourceSequence(Identifier sid)
Remove the source sequence with the specified identifier from persistent store.  | 
 void | 
setConnection(Connection c)
 | 
 void | 
setDriverClassName(String dcn)
 | 
 void | 
setPassword(String p)
 | 
 void | 
setTableExistsCode(int tableExistsCode)
 | 
 void | 
setTableExistsState(String tableExistsState)
 | 
 void | 
setUrl(String u)
 | 
 void | 
setUserName(String un)
 | 
protected  void | 
storeMessage(Identifier sid,
             RMMessage msg,
             boolean outbound)
 | 
protected  void | 
updateDestinationSequence(DestinationSequence seq)
 | 
protected  void | 
updateSourceSequence(SourceSequence seq)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String DEFAULT_DATABASE_NAME
| Constructor Detail | 
|---|
public RMTxStore()
| Method Detail | 
|---|
public void setDriverClassName(String dcn)
public String getDriverClassName()
public void setPassword(String p)
public String getPassword()
public void setUrl(String u)
public String getUrl()
public void setUserName(String un)
public String getUserName()
public String getTableExistsState()
public void setTableExistsState(String tableExistsState)
public int getTableExistsCode()
public void setTableExistsCode(int tableExistsCode)
public void setConnection(Connection c)
public void createDestinationSequence(DestinationSequence seq)
RMStoreRMSDestinationSequence object.
createDestinationSequence in interface RMStoreseq - the sequencepublic void createSourceSequence(SourceSequence seq)
RMStoreRMSourceSequence object.
createSourceSequence in interface RMStoreseq - the sequencepublic DestinationSequence getDestinationSequence(Identifier sid)
RMStore
getDestinationSequence in interface RMStoresid - the sequence
public SourceSequence getSourceSequence(Identifier sid)
RMStore
getSourceSequence in interface RMStoresid - the sequence
public void removeDestinationSequence(Identifier sid)
RMStore
removeDestinationSequence in interface RMStoresid - the sequencepublic void removeSourceSequence(Identifier sid)
RMStore
removeSourceSequence in interface RMStoresid - the sequencepublic Collection<DestinationSequence> getDestinationSequences(String endpointIdentifier)
RMStore
getDestinationSequences in interface RMStoreendpointIdentifier - the identifier for the destination
public Collection<SourceSequence> getSourceSequences(String endpointIdentifier)
RMStore
getSourceSequences in interface RMStoreendpointIdentifier - the identifier for the source
public Collection<RMMessage> getMessages(Identifier sid,
                                         boolean outbound)
RMStore
getMessages in interface RMStoresid - the source sequence identifieroutbound - true if the message is outbound
public void persistIncoming(DestinationSequence seq,
                            RMMessage msg)
RMStoreRMMessage
 parameter is null for non application (RM protocol) messages.
persistIncoming in interface RMStoreseq - the destination sequencemsg - the incoming message
public void persistOutgoing(SourceSequence seq,
                            RMMessage msg)
RMStoreRMMessage
 parameter is null for non application (RM protocol) messages.
persistOutgoing in interface RMStoreseq - the source sequencemsg - the outgoing message
public void removeMessages(Identifier sid,
                           Collection<Long> messageNrs,
                           boolean outbound)
RMStore
removeMessages in interface RMStoresid - the identifier of the source sequencemessageNrs - the collection of message numbersoutbound - true if the message is outboundprotected void beginTransaction()
protected void commit()
               throws SQLException
SQLExceptionprotected void abort()
protected void storeMessage(Identifier sid,
                            RMMessage msg,
                            boolean outbound)
                     throws IOException,
                            SQLException
IOException
SQLException
protected void updateSourceSequence(SourceSequence seq)
                             throws SQLException
SQLException
protected void updateDestinationSequence(DestinationSequence seq)
                                  throws SQLException,
                                         IOException
SQLException
IOException
protected void createTables()
                     throws SQLException
SQLException@PostConstruct public void init()
public static void deleteDatabaseFiles()
public static void deleteDatabaseFiles(String dbName,
                                       boolean now)
protected boolean isTableExistsError(SQLException ex)
  | 
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||