Oracle Ultra Search APIs
9.2

oracle.ultrasearch.query
Class DisplayUtil

java.lang.Object
  |
  +--oracle.ultrasearch.query.DisplayUtil

public class DisplayUtil
extends java.lang.Object

Class DisplayUtil provides methods to display table and file data source contents.

Since:
9.0.2

Constructor Summary
DisplayUtil()
          Default constructor

 

Method Summary
 void displayFileUrl(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
          Call this method to display the contents of a file data source document.
 void displayTableUrl(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
          Call this method to display the contents of a table data source (database row cell).
 void setInstance(Instance inst)
          Sets the Instance object used by the class to create database connections to the Ultra Search instance.

 

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

 

Constructor Detail

DisplayUtil

public DisplayUtil()
Default constructor
Method Detail

setInstance

public void setInstance(Instance inst)
Sets the Instance object used by the class to create database connections to the Ultra Search instance.
Parameters:
inst - The instance object

displayTableUrl

public void displayTableUrl(javax.servlet.ServletRequest request,
                            javax.servlet.ServletResponse response)
                     throws java.io.IOException,
                            java.sql.SQLException
Call this method to display the contents of a table data source (database row cell).

This method makes a database call which returns the contents the database row cell. The table may reside on a separate database which must be accessible by the Ultra Search database via a database link.

Parameters:
request - The incoming Servlet request object containing all request data.
response - The outgoing Servlet response object whose PrintWriter this method will print text to.
Throws:
java.io.IOException - when an error occurs during printing of text to the response object's PrintWriter.
java.sql.SQLException - when a database error occurs.

displayFileUrl

public void displayFileUrl(javax.servlet.ServletRequest request,
                           javax.servlet.ServletResponse response)
                    throws java.io.IOException,
                           java.sql.SQLException
Call this method to display the contents of a file data source document.

This method makes a database call which returns the contents of the file. Therefore, the file must be accessible by the database server.

Parameters:
request - The incoming Servlet request object containing all request data.
response - The outgoing Servlet response object whose PrintWriter this method will print text to.
Throws:
java.io.IOException - when an error occurs during printing of text to the response object's PrintWriter.
java.sql.SQLException - when a database error occurs.

Oracle Ultra Search APIs
9.2