public class Connection extends Object implements org.eclipse.datatools.connectivity.oda.IConnection
Modifier and Type | Class and Description |
---|---|
static class |
Connection.Constants
define constants ODAURL, ODAPassword, ODAUser, ODADriverClass, ODADataSource
|
Modifier and Type | Field and Description |
---|---|
protected Map |
appContext |
protected Connection |
jdbcConn
The JDBC Connection instance.
|
Constructor and Description |
---|
Connection() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
commit() |
protected void |
connectByUrl(String url,
Properties connProperties)
Opens a JDBC connection using the specified url and connection properties
|
protected org.eclipse.datatools.connectivity.oda.IQuery |
createStatement(Connection jdbcConn) |
protected Map<?,?> |
getAppContextMap()
Returns the application context Map set by
setAppContext(Object) . |
protected Collection<String> |
getDriverClassPath() |
int |
getMaxQueries() |
org.eclipse.datatools.connectivity.oda.IDataSetMetaData |
getMetaData(String dataSetType) |
boolean |
isOpen() |
org.eclipse.datatools.connectivity.oda.IQuery |
newQuery(String dataSourceType) |
void |
open(Properties connProperties) |
void |
rollback() |
void |
setAppContext(Object context) |
void |
setLocale(com.ibm.icu.util.ULocale locale) |
protected Connection jdbcConn
protected Map appContext
public Connection()
public boolean isOpen() throws org.eclipse.datatools.connectivity.oda.OdaException
isOpen
in interface org.eclipse.datatools.connectivity.oda.IConnection
org.eclipse.datatools.connectivity.oda.OdaException
public void open(Properties connProperties) throws org.eclipse.datatools.connectivity.oda.OdaException
open
in interface org.eclipse.datatools.connectivity.oda.IConnection
org.eclipse.datatools.connectivity.oda.OdaException
protected void connectByUrl(String url, Properties connProperties) throws org.eclipse.datatools.connectivity.oda.OdaException
connProperties
- org.eclipse.datatools.connectivity.oda.OdaException
protected Collection<String> getDriverClassPath()
public org.eclipse.datatools.connectivity.oda.IDataSetMetaData getMetaData(String dataSetType) throws org.eclipse.datatools.connectivity.oda.OdaException
getMetaData
in interface org.eclipse.datatools.connectivity.oda.IConnection
org.eclipse.datatools.connectivity.oda.OdaException
public org.eclipse.datatools.connectivity.oda.IQuery newQuery(String dataSourceType) throws org.eclipse.datatools.connectivity.oda.OdaException
newQuery
in interface org.eclipse.datatools.connectivity.oda.IConnection
org.eclipse.datatools.connectivity.oda.OdaException
protected org.eclipse.datatools.connectivity.oda.IQuery createStatement(Connection jdbcConn) throws org.eclipse.datatools.connectivity.oda.OdaException
org.eclipse.datatools.connectivity.oda.OdaException
public void commit() throws org.eclipse.datatools.connectivity.oda.OdaException
commit
in interface org.eclipse.datatools.connectivity.oda.IConnection
org.eclipse.datatools.connectivity.oda.OdaException
public void rollback() throws org.eclipse.datatools.connectivity.oda.OdaException
rollback
in interface org.eclipse.datatools.connectivity.oda.IConnection
org.eclipse.datatools.connectivity.oda.OdaException
public int getMaxQueries() throws org.eclipse.datatools.connectivity.oda.OdaException
getMaxQueries
in interface org.eclipse.datatools.connectivity.oda.IConnection
org.eclipse.datatools.connectivity.oda.OdaException
public void close() throws org.eclipse.datatools.connectivity.oda.OdaException
close
in interface org.eclipse.datatools.connectivity.oda.IConnection
org.eclipse.datatools.connectivity.oda.OdaException
public void setAppContext(Object context) throws org.eclipse.datatools.connectivity.oda.OdaException
setAppContext
in interface org.eclipse.datatools.connectivity.oda.IConnection
org.eclipse.datatools.connectivity.oda.OdaException
protected Map<?,?> getAppContextMap()
setAppContext(Object)
.public void setLocale(com.ibm.icu.util.ULocale locale) throws org.eclipse.datatools.connectivity.oda.OdaException
setLocale
in interface org.eclipse.datatools.connectivity.oda.IConnection
org.eclipse.datatools.connectivity.oda.OdaException
Copyright © 2004–2016 The Kuali Foundation. All rights reserved.