Skip navigation links

Oracle® Ultra Search Java API Reference
11g Release 1 (11.1)

B28329-01


oracle.ultrasearch.query
Class QueryInstance

java.lang.Object
  extended by oracle.ultrasearch.query.Instance
      extended by oracle.ultrasearch.query.QueryInstance


public class QueryInstance
extends Instance

QueryInstance provides JDBC connection management on top of Instance.

QueryInstance can provide connection pooling by using a JNDI name of a data source, or use its connection cache.

Since:
9.0.2
See Also:
Instance

Constructor Summary
QueryInstance()
          Constructs a query instance.

 

Method Summary
 java.sql.Connection getConnection()
          Get a Connection object using a connection pool.
 java.lang.String getConnectionString()
          Get the JDBC connection string used to create a connection
 java.lang.String getDataSourceName()
          Get a JNDI name of the data source being used.
 java.lang.String getUser()
          Get the database username of the Ultra Search instance that should be accessed.
 void setConnectionString(java.lang.String url)
          Set the JDBC connection string used to create a connection
 void setDataSourceName(java.lang.String location)
          Set a JNDI name referring to a data source.
 void setPassword(java.lang.String str)
          Set the database username password of the Ultra Search instance that should be accessed.
 void setUser(java.lang.String str)
          Set the database username of the Ultra Search instance that should be accessed.

 

Methods inherited from class oracle.ultrasearch.query.Instance
clearCache, estimateHitCount, getFilePagePath, getInstanceName, getMailPagePath, getMetaData, getRefreshInterval, getResult, getResult, getResult, getTablePagePath, getUserManager, getVersion, isCloseConnection, setCloseConnection, setConnection, setFilePagePath, setInstanceName, setMailPagePath, setRefreshInterval, setTablePagePath, setUserManager, submitUrl, submitUrlToDataSource, submitUrlToGroup

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

QueryInstance

public QueryInstance()
Constructs a query instance. required for JavaBean support

Method Detail

setDataSourceName

public void setDataSourceName(java.lang.String location)
Set a JNDI name referring to a data source.
Parameters:
location - string name of the datasource location.

getDataSourceName

public java.lang.String getDataSourceName()
Get a JNDI name of the data source being used.

setConnectionString

public void setConnectionString(java.lang.String url)
Set the JDBC connection string used to create a connection
Parameters:
url - This must be an JDBC connection string valid for Oracle JDBC driver

getConnectionString

public java.lang.String getConnectionString()
Get the JDBC connection string used to create a connection

setUser

public void setUser(java.lang.String str)
Set the database username of the Ultra Search instance that should be accessed.
Parameters:
str - This must be an Oracle database username.

getUser

public java.lang.String getUser()
Get the database username of the Ultra Search instance that should be accessed.
Returns:
The Oracle database username.

setPassword

public void setPassword(java.lang.String str)
Set the database username password of the Ultra Search instance that should be accessed.
Parameters:
str - This must be an Oracle database username password.

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Get a Connection object using a connection pool. If a DataSource is set, then use the data source to get a Connection. If the data source is a ConnectionPoolDataSource, then get a Connection from its connection pool. Otherwise, use the internal connection manager to get a Connection.
Overrides:
getConnection in class Instance
Returns:
a Connection object
Throws:
java.sql.SQLException

Skip navigation links

Oracle® Ultra Search Java API Reference
11g Release 1 (11.1)

B28329-01


Copyright © 2002,2007, Oracle. All Rights Reserved.