public class SQLDataServicesConnection extends Object implements DataServiceConnection
| Constructor and Description |
|---|
SQLDataServicesConnection(Connection jdbcConn,
boolean isXA) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection.
|
void |
commit()
Checks and commits the current connection if it is commitable.
|
Connection |
getJDBCConnection() |
boolean |
isXA()
Returns whether this is a connection that participates in a JTA transaction.
|
void |
rollback()
Rollback the connection.
|
String |
toString()
Returns information of the the connection object.
|
public SQLDataServicesConnection(Connection jdbcConn, boolean isXA)
public void commit()
throws DataServiceFault
DataServiceConnectioncommit in interface DataServiceConnectionDataServiceFaultpublic void rollback()
throws DataServiceFault
DataServiceConnectionrollback in interface DataServiceConnectionDataServiceFaultpublic void close()
throws DataServiceFault
DataServiceConnectionclose in interface DataServiceConnectionDataServiceFaultpublic boolean isXA()
DataServiceConnectionisXA in interface DataServiceConnectionpublic Connection getJDBCConnection()
public String toString()
DataServiceConnectiontoString in interface DataServiceConnectiontoString in class ObjectCopyright © 2019 WSO2. All rights reserved.