com.reuters.rc.db.adb
Class AdbRequestBind

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

public class AdbRequestBind
extends java.lang.Object
implements DbRequestBind

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

Author:
Jawaid Hakim.
See Also:
AdbRequest

Field Summary
protected static java.lang.String ADB_COLUMN
          Column name.
protected static java.lang.String ADB_DATA
          Column data.
protected static java.lang.String ADB_POSITION
          Column position.
protected static int NOPOSITION
          No position specified in bind.
 
Constructor Summary
AdbRequestBind(int position, java.lang.Object data)
          Constructor.
AdbRequestBind(int position, java.lang.String column, java.lang.Object data)
          Constructor.
AdbRequestBind(java.lang.String column, java.lang.Object data)
          Constructor.
 
Method Summary
 com.tibco.tibrv.TibrvMsg getBind()
          Build request message.
 java.lang.String getColumnName()
          Get column position.
 java.lang.Object getData()
          Get column data.
 int getPosition()
          Get column position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADB_POSITION

protected static final java.lang.String ADB_POSITION
Column position.

ADB_COLUMN

protected static final java.lang.String ADB_COLUMN
Column name.

ADB_DATA

protected static final java.lang.String ADB_DATA
Column data.

NOPOSITION

protected static final int NOPOSITION
No position specified in bind.
Constructor Detail

AdbRequestBind

public AdbRequestBind(int position,
                      java.lang.String column,
                      java.lang.Object data)
Constructor.
Parameters:
position - Placeholder position.
column - Column name.
data - Column data. A reference to the parameter is stored so be careful about modifying the data.

AdbRequestBind

public AdbRequestBind(java.lang.String column,
                      java.lang.Object data)
Constructor. A reference to the parameter is stored so be careful about modifying the data.
Parameters:
column - Column name.
data - Column data. A reference to the parameter is stored so be careful about modifying the data.

AdbRequestBind

public AdbRequestBind(int position,
                      java.lang.Object data)
Constructor.
Parameters:
position - Placeholder position.
data - Column data. A reference to the parameter is stored so be careful about modifying the data.
Method Detail

getPosition

public final int getPosition()
Get column position.
Returns:
Sql statement.

getColumnName

public final java.lang.String getColumnName()
Get column position.
Returns:
Column name.

getData

public final java.lang.Object getData()
Get column data.
Returns:
Column data.

getBind

public final com.tibco.tibrv.TibrvMsg getBind()
                                       throws AdbSystemException
Build request message.
Specified by:
getBind in interface DbRequestBind
Returns:
Request message.
See Also:
TibrvMsg


Copyright © 2002-2003 Reuters. All Rights Reserved.