|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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,
ProtocolVariation protocol)
Retrieve the destination sequence with the specified identifier from persistent store. |
Collection<DestinationSequence> |
getDestinationSequences(String endpointIdentifier,
ProtocolVariation protocol)
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,
ProtocolVariation protocol)
Retrieve the source sequence with the specified identifier from persistent store. |
Collection<SourceSequence> |
getSourceSequences(String endpointIdentifier,
ProtocolVariation protocol)
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)
RMStore
RMSDestinationSequence
object.
createDestinationSequence
in interface RMStore
seq
- the sequencepublic void createSourceSequence(SourceSequence seq)
RMStore
RMSourceSequence
object.
createSourceSequence
in interface RMStore
seq
- the sequencepublic DestinationSequence getDestinationSequence(Identifier sid, ProtocolVariation protocol)
RMStore
getDestinationSequence
in interface RMStore
sid
- the sequence
public SourceSequence getSourceSequence(Identifier sid, ProtocolVariation protocol)
RMStore
getSourceSequence
in interface RMStore
sid
- the sequence
public void removeDestinationSequence(Identifier sid)
RMStore
removeDestinationSequence
in interface RMStore
sid
- the sequencepublic void removeSourceSequence(Identifier sid)
RMStore
removeSourceSequence
in interface RMStore
sid
- the sequencepublic Collection<DestinationSequence> getDestinationSequences(String endpointIdentifier, ProtocolVariation protocol)
RMStore
getDestinationSequences
in interface RMStore
endpointIdentifier
- the identifier for the destination
public Collection<SourceSequence> getSourceSequences(String endpointIdentifier, ProtocolVariation protocol)
RMStore
getSourceSequences
in interface RMStore
endpointIdentifier
- the identifier for the source
public Collection<RMMessage> getMessages(Identifier sid, boolean outbound)
RMStore
getMessages
in interface RMStore
sid
- the source sequence identifieroutbound
- true if the message is outbound
public void persistIncoming(DestinationSequence seq, RMMessage msg)
RMStore
RMMessage
parameter is null for non application (RM protocol) messages.
persistIncoming
in interface RMStore
seq
- the destination sequencemsg
- the incoming messagepublic void persistOutgoing(SourceSequence seq, RMMessage msg)
RMStore
RMMessage
parameter is null for non application (RM protocol) messages.
persistOutgoing
in interface RMStore
seq
- the source sequencemsg
- the outgoing messagepublic void removeMessages(Identifier sid, Collection<Long> messageNrs, boolean outbound)
RMStore
removeMessages
in interface RMStore
sid
- the identifier of the source sequencemessageNrs
- the collection of message numbersoutbound
- true if the message is outboundprotected void beginTransaction()
protected void commit() throws SQLException
SQLException
protected 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 |