|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.connector.IeSPILocalTransaction
SPI LocalTransaction implementation
Field Summary | |
private IeConnection |
cx
|
private javax.resource.cci.Interaction |
is
|
private IeInteractionSpec |
isSpec
|
private Log |
log
|
private String |
session_id
|
private String |
session_instance
|
private int |
state
|
(package private) static int |
STATE_COMMITTING
|
(package private) static int |
STATE_EXECUTING
|
(package private) static int |
STATE_READY
|
(package private) static int |
STATE_ROLLINGBACK
|
Constructor Summary | |
(package private) |
IeSPILocalTransaction(IeConnection cx,
Log l)
create a new transaction tied to a connection handle this handle should NOT be closed. |
Method Summary | |
void |
begin()
start a new transaction |
void |
commit()
commit the current transaction |
private Group |
execute(String functionName)
execute a named function on teh "com.infoengine.connector" SOAP class. |
(package private) String |
getSessionId()
get this transaction's sessionId (Windchill sessionId to be attached to further interactions in order for them to be transacted). |
(package private) String |
getSessionInstance()
get this transaction's sessionInstance (Windchill instance further interactions should be sent to in order for them to be transacted). |
(package private) int |
getState()
get the current state of this transaction |
private void |
resetState()
reset the state of this transaction to ready and re-initialize sessionId and sessionInstance |
void |
rollback()
rollback the current transaction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final int STATE_READY
static final int STATE_EXECUTING
static final int STATE_COMMITTING
static final int STATE_ROLLINGBACK
private Log log
private IeConnection cx
private javax.resource.cci.Interaction is
private IeInteractionSpec isSpec
private int state
private String session_instance
private String session_id
Constructor Detail |
IeSPILocalTransaction(IeConnection cx, Log l) throws javax.resource.ResourceException
cx
- connection handlel
- Log
javax.resource.ResourceException
- if there's a problem interacting with cxMethod Detail |
String getSessionId()
String getSessionInstance()
int getState()
private void resetState()
public void begin() throws javax.resource.ResourceException
begin
in interface javax.resource.spi.LocalTransaction
javax.resource.ResourceException
- if there's a problem interacting with the connection
javax.resource.spi.LocalTransactionException
- if in the wrong statepublic void commit() throws javax.resource.ResourceException
commit
in interface javax.resource.spi.LocalTransaction
javax.resource.ResourceException
- if there's a problem interacting with the connection
javax.resource.spi.LocalTransactionException
- if in the wrong statepublic void rollback() throws javax.resource.ResourceException
rollback
in interface javax.resource.spi.LocalTransaction
javax.resource.ResourceException
- if there's a problem interacting with the connection
javax.resource.spi.LocalTransactionException
- if in the wrong stateprivate Group execute(String functionName) throws javax.resource.ResourceException
functionName
- the function to execute
javax.resource.ResourceException
- if there's a problem interacting with the connection
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |