|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.enablement.oda.ws.impl.Connection
public class Connection
Implementation class of IConnection for an ODA runtime driver.
| Constructor Summary | |
|---|---|
Connection()
|
|
| Method Summary | |
|---|---|
void |
close()
Attempts to close this connection. |
void |
commit()
Commits all changes made since the previous commit/rollback. |
int |
getMaxQueries()
Returns the maximum number of active queries for any data set types that the driver can support for this connection. |
IDataSetMetaData |
getMetaData(java.lang.String dataSetType)
Returns an IDataSetMetaData object of the the given data set type. |
boolean |
isOpen()
Checks whether this has an established connection |
IQuery |
newQuery(java.lang.String dataSetType)
Returns an IQuery object of the given data set type. |
void |
open(java.util.Properties connProperties)
Attempts to establish a connection based on the given connection properties. |
void |
rollback()
Undoes all changes made since the previous commit/rollback. |
void |
setAppContext(java.lang.Object context)
Sets the connection context passed through from an application. |
void |
setLocale(com.ibm.icu.util.ULocale locale)
Specifies the locale setting for all locale-sensitive tasks in this connection. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Connection()
| Method Detail |
|---|
public void open(java.util.Properties connProperties)
throws OdaException
IConnectionorg.eclipse.datatools.connectivity.oda.util.manifest
utility package to obtain information on itself,
such as the content of its plug-in manifest and the driver's
installation location.
open in interface IConnectionconnProperties - Properties necessary to establish a connection.
OdaException - if data source error occurs
public void setAppContext(java.lang.Object context)
throws OdaException
IConnection
setAppContext in interface IConnectioncontext - Application context object of this instance.
OdaException - if data source error occurs
public void close()
throws OdaException
IConnection
close in interface IConnectionOdaException - if data source error occurs
public boolean isOpen()
throws OdaException
IConnection
isOpen in interface IConnectionOdaException - if data source error occurs
public IDataSetMetaData getMetaData(java.lang.String dataSetType)
throws OdaException
IConnection
getMetaData in interface IConnectiondataSetType - String representation of a data set type.
OdaException - if data source error occurs
public IQuery newQuery(java.lang.String dataSetType)
throws OdaException
IConnection
newQuery in interface IConnectiondataSetType - String representation of a data set type.
OdaException - if data source error occurs
public int getMaxQueries()
throws OdaException
IConnection
getMaxQueries in interface IConnectionOdaException - if driver error occurs
public void commit()
throws OdaException
IConnection
commit in interface IConnectionOdaException - if data source error occurs
public void rollback()
throws OdaException
IConnection
rollback in interface IConnectionOdaException - if data source error occurs
public void setLocale(com.ibm.icu.util.ULocale locale)
throws OdaException
IConnection
setLocale in interface IConnectionOdaException - if data source error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||