Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.3.0)

E17060-01

oracle.odi.interfaces.data
Class DataAccessInfo

java.lang.Object
  extended by oracle.odi.interfaces.data.DataAccessInfo

public class DataAccessInfo
extends java.lang.Object

Instances of this class contain information about how to query the runtime data from various source and target objects associated with an interface. The query information can be used to show or retrieve the data. Instances of this class are created by an <@link IOdiInterfaceDataAccessHelper> instance.


Constructor Summary
DataAccessInfo(javax.sql.DataSource pDataSource, java.lang.String pSql, boolean pJMS)
          Constructor for the data access info class.
 
Method Summary
 void executeSQL()
          Execute the SQL query to fetch source and target data that is associated with an interface.
 java.sql.Connection getConnectionFromDataSource()
          This method is only here to avoid a complex UI refactoring, and musn't be used otherwise.
In general it is discouraged to work on a Connection.
 java.lang.String getSQL()
          Retrieve the SQL query string that can be used to fetch source and target data associated with the interface.
 boolean isJMS()
          Return true if the source or target data is from a JMS (Java Messaging Service) data server technology, else false.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataAccessInfo

public DataAccessInfo(javax.sql.DataSource pDataSource,
                      java.lang.String pSql,
                      boolean pJMS)
Constructor for the data access info class. For internal use only.

Parameters:
pDataSource - The java data source instance used to get a connection to the runtime data.
pSql - The SQL query string used to access the runtime data.
pJMS - True if the runtime data is accessed from the JMS technology.
Method Detail

executeSQL

public void executeSQL()
                throws java.sql.SQLException
Execute the SQL query to fetch source and target data that is associated with an interface. The connection data source is part of this object and does not need to be provided for this call.

Throws:
java.sql.SQLException

getConnectionFromDataSource

public java.sql.Connection getConnectionFromDataSource()
                                                throws java.sql.SQLException
This method is only here to avoid a complex UI refactoring, and musn't be used otherwise.
In general it is discouraged to work on a Connection. FIXME remove this method when the UI doesn't use the Borland Grid anymore. For internal use only.

Returns:
The new jdbc connection used to access the runtime data.
Throws:
java.sql.SQLException

getSQL

public java.lang.String getSQL()
Retrieve the SQL query string that can be used to fetch source and target data associated with the interface. The query may include the filters, joins, lookups that are defined in the interface.

Returns:
The SQL query string.

isJMS

public boolean isJMS()
Return true if the source or target data is from a JMS (Java Messaging Service) data server technology, else false.

Returns:
The JMS data flag.

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.3.0)

E17060-01

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.