|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mockrunner.mock.connector.cci.MockConnection
public class MockConnection
Mock implementation of Connection
.
Constructor Summary | |
---|---|
MockConnection()
|
Method Summary | |
---|---|
void |
close()
|
javax.resource.cci.Interaction |
createInteraction()
|
InteractionHandler |
getInteractionHandler()
|
java.util.List |
getInteractionList()
Returns the list of all created Interaction objects. |
javax.resource.cci.LocalTransaction |
getLocalTransaction()
|
javax.resource.cci.ConnectionMetaData |
getMetaData()
|
MockLocalTransaction |
getMockLocalTransaction()
Returns the MockLocalTransaction . |
javax.resource.cci.ResultSetInfo |
getResultSetInfo()
|
boolean |
isClosed()
Returns if this Connection is closed. |
void |
setInteractionHandler(InteractionHandler interactionHandler)
Sets this connections InteractionHandler |
void |
setLocalTransaction(javax.resource.cci.LocalTransaction localTransaction)
Sets the LocalTransaction |
void |
setMetaData(javax.resource.cci.ConnectionMetaData metaData)
Sets this connections meta data |
void |
setResultSetInfo(javax.resource.cci.ResultSetInfo resultSetInfo)
Sets this connections ResultSetInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockConnection()
Method Detail |
---|
public MockLocalTransaction getMockLocalTransaction()
MockLocalTransaction
. If the underlying
LocalTransaction
is not an instance of
MockLocalTransaction
, this method returns null
.
Otherwise it returns the same object as getLocalTransaction()
.
MockLocalTransaction
public java.util.List getInteractionList()
Interaction
objects.
Interaction
objectspublic void close() throws javax.resource.ResourceException
close
in interface javax.resource.cci.Connection
javax.resource.ResourceException
public javax.resource.cci.Interaction createInteraction() throws javax.resource.ResourceException
createInteraction
in interface javax.resource.cci.Connection
javax.resource.ResourceException
public javax.resource.cci.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException
getLocalTransaction
in interface javax.resource.cci.Connection
javax.resource.ResourceException
public javax.resource.cci.ConnectionMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface javax.resource.cci.Connection
javax.resource.ResourceException
public javax.resource.cci.ResultSetInfo getResultSetInfo() throws javax.resource.ResourceException
getResultSetInfo
in interface javax.resource.cci.Connection
javax.resource.ResourceException
public boolean isClosed()
Connection
is closed.
true
if this Interaction
is closed,
false
otherwisepublic InteractionHandler getInteractionHandler()
public void setResultSetInfo(javax.resource.cci.ResultSetInfo resultSetInfo)
ResultSetInfo
resultSetInfo
- the ResultSetInfo
public void setInteractionHandler(InteractionHandler interactionHandler)
InteractionHandler
interactionHandler
- the InteractionHandler
public void setMetaData(javax.resource.cci.ConnectionMetaData metaData)
metaData
- the meta datapublic void setLocalTransaction(javax.resource.cci.LocalTransaction localTransaction)
LocalTransaction
localTransaction
- the LocalTransaction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |