com.reuters.rc.db.adb
Class AdbRequestStmt

java.lang.Object
  |
  +--com.reuters.rc.db.adb.AdbRequestStmt
All Implemented Interfaces:
DbRequestStmt

public class AdbRequestStmt
extends java.lang.Object
implements DbRequestStmt

This class represents a request statement sent to ADB. Each instance of this class is immutable - instances can be freely shared among threads.

Author:
Jawaid Hakim.
See Also:
AdbRequest

Constructor Summary
AdbRequestStmt(java.lang.String sql)
          Constructor.
AdbRequestStmt(java.lang.String sql, DbRequestBind bind)
          Constructor.
AdbRequestStmt(java.lang.String sql, DbRequestBind[] binds)
          Constructor.
AdbRequestStmt(java.lang.String sql, DbRequestBind[] binds, int maxRows)
          Constructor.
AdbRequestStmt(java.lang.String sql, DbRequestBind bind, int maxRows)
          Constructor.
AdbRequestStmt(java.lang.String sql, int maxRows)
          Constructor.
 
Method Summary
 int getMaxRows()
          Get the maximum number of result rows returned from request.
 java.lang.String getSql()
          Get the sql statement.
 com.tibco.tibrv.TibrvMsg getStmt()
          Build request message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdbRequestStmt

public AdbRequestStmt(java.lang.String sql)
Constructor.
Parameters:
sql - The SQL statement to execute on the ADB.

AdbRequestStmt

public AdbRequestStmt(java.lang.String sql,
                      int maxRows)
Constructor.
Parameters:
sql - The SQL statement to execute on the ADB.
maxRows - Maximum number of result rows returned from request.
See Also:
getMaxRows(), AdbRequestBind

AdbRequestStmt

public AdbRequestStmt(java.lang.String sql,
                      DbRequestBind bind)
Constructor. A reference to the parameter is stored so be careful about modifying the data.
Parameters:
sql - The SQL statement to execute on the ADB.
bind - Bind data.
See Also:
AdbRequestBind

AdbRequestStmt

public AdbRequestStmt(java.lang.String sql,
                      DbRequestBind bind,
                      int maxRows)
Constructor.
Parameters:
sql - The SQL statement to execute on the ADB.
bind - Bind data.
maxRows - Maximum number of result rows returned from request.
See Also:
getMaxRows(), AdbRequestBind

AdbRequestStmt

public AdbRequestStmt(java.lang.String sql,
                      DbRequestBind[] binds)
Constructor. A reference to the parameter is stored so be careful about modifying the data.
Parameters:
sql - The SQL statement to execute on the ADB.
binds - Bind data.
See Also:
AdbRequestBind

AdbRequestStmt

public AdbRequestStmt(java.lang.String sql,
                      DbRequestBind[] binds,
                      int maxRows)
Constructor. A reference to the parameter is stored so be careful about modifying the data.
Parameters:
sql - The SQL statement to execute on the ADB.
binds - Bind data.
maxRows - Maximum number of result rows returned from request.
See Also:
getMaxRows(), AdbRequestBind
Method Detail

getSql

public final java.lang.String getSql()
Get the sql statement.
Specified by:
getSql in interface DbRequestStmt
Returns:
Sql statement.

getMaxRows

public final int getMaxRows()
Get the maximum number of result rows returned from request. The default maxRows is set to DEFAULT_MAXROWS which implies no constraints on the result set size.
Specified by:
getMaxRows in interface DbRequestStmt
Returns:
maxRows Maximum number of result rows returned from request.
See Also:
AdbRequest.sendRequest(TibrvTransport, String)

getStmt

public final com.tibco.tibrv.TibrvMsg getStmt()
                                       throws AdbBusinessException,
                                              AdbSystemException
Build request message.
Specified by:
getStmt in interface DbRequestStmt
Returns:
Request message.
See Also:
TibrvMsg


Copyright © 2002-2003 Reuters. All Rights Reserved.