|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.oda.consumer.helper.OdaObject
org.eclipse.datatools.connectivity.oda.consumer.helper.OdaConnection
OdaConnection is the Oda wrapper for connections.
Method Summary | |
void |
clearDriverError()
|
void |
close()
Attempts to close this connection. |
void |
commit()
Commits all changes made since the previous commit/rollback. |
java.lang.Object |
findAndInvokeMethod(java.lang.String methodName,
java.lang.Class[] parameterTypes,
java.lang.Object[] args)
|
java.lang.String |
getDriverErrorMessage()
|
int |
getDriverErrorNumber()
|
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(java.lang.String localeString)
|
static void |
setThrowAndSetOdaException()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public int getDriverErrorNumber()
public java.lang.String getDriverErrorMessage()
public void clearDriverError()
public int getMaxQueries() throws OdaException
IConnection
getMaxQueries
in interface IConnection
OdaException
- if driver error occurspublic void open(java.util.Properties connProperties) throws OdaException
IConnection
org.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 IConnection
connProperties
- Properties necessary to establish a connection.
OdaException
- if data source error occurspublic void setAppContext(java.lang.Object context) throws OdaException
IConnection
setAppContext
in interface IConnection
context
- Application context object of this instance.
OdaException
- if data source error occurspublic void close() throws OdaException
IConnection
close
in interface IConnection
OdaException
- if data source error occurspublic boolean isOpen() throws OdaException
IConnection
isOpen
in interface IConnection
OdaException
- if data source error occurspublic IDataSetMetaData getMetaData(java.lang.String dataSetType) throws OdaException
IConnection
getMetaData
in interface IConnection
dataSetType
- String representation of a data set type.
OdaException
- if data source error occurspublic IQuery newQuery(java.lang.String dataSetType) throws OdaException
IConnection
newQuery
in interface IConnection
dataSetType
- String representation of a data set type.
OdaException
- if data source error occurspublic void commit() throws OdaException
IConnection
commit
in interface IConnection
OdaException
- if data source error occurspublic void rollback() throws OdaException
IConnection
rollback
in interface IConnection
OdaException
- if data source error occurspublic void setLocale(java.lang.String localeString) throws java.lang.Throwable
java.lang.Throwable
public static void setThrowAndSetOdaException()
public java.lang.Object findAndInvokeMethod(java.lang.String methodName, java.lang.Class[] parameterTypes, java.lang.Object[] args) throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, OdaException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
OdaException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |