Visual Cafe Pro Language Reference Constructor index | Variable index | Method index | Bottom

Class: symantec.itools.db.pro.Request

Purpose Contains information for creating a RelationView.
Hierarchy java.lang.Object
|
+----symantec.itools.db.pro.Request
Syntax public class Request
extends Object
Description Request contains information for creating a RelationView. This information includes connection information, a SQL statement, an optimistic concurrency setting, and the initial record position.
See also RelationView

Constructor Index

Variable index | Method index | Top | Bottom
Request(Session, ConnectionInfo)
 o Creates a Request object.

Variable Index

Constructor index | Method index | Top | Bottom
ALL
 o Specifies the all value for an optimistic concurrency setting.
REC_POS_FIRST
 o Specifies the first record as the initial current record for a new RelationView.
REC_POS_NEW
 o Specifies a new record as the initial current record for a new RelationView.
REC_POS_NOPOS
 o Specifies not to specify the initial current record for a new RelationView.
UNIQUE
 o Specifies the unique value for an optimistic concurrency setting.
UNIQUE_MODIFIED
 o Specifies the unique modified value for an optimistic concurrency setting.

Method Index

Constructor index | Variable index | Top | Bottom
executeRequest( )
 o Executes a SQL statement.
getConnectionInfo( )
 o Returns connection information.
getOptConc( )
 o Returns an optimistic concurrency setting.
getRequestProperties( )
 o Returns properties.
getSQL( )
 o Returns a SQL statement.
setConnectionInfo(ConnectionInfo)
 o Sets connection information.
setRequestProperties(Properties)
 o Sets Request properties.
setSQL(String)
 o Sets a SQL statement.

Variables

Constructor index | Variable index | Method index | Top | Bottom

Variable: ALL

Purpose Specifies the all value for an optimistic concurrency setting.
Syntax public final static String ALL

Variable: REC_POS_FIRST

Purpose Specifies the first record as the initial current record for a new RelationView.
Syntax public final static String REC_POS_FIRST

Variable: REC_POS_NEW

Purpose Specifies a new record as the initial current record for a new RelationView.
Syntax public final static String REC_POS_NEW

Variable: REC_POS_NOPOS

Purpose Specifies not to specify the initial current record for a new RelationView.
Syntax public final static String REC_POS_NOPOS

Variable: UNIQUE

Purpose Specifies the unique value for an optimistic concurrency setting.
Syntax public final static String UNIQUE

Variable: UNIQUE_MODIFIED

Purpose Specifies the unique modified value for an optimistic concurrency setting.
Syntax public final static String UNIQUE_MODIFIED

Constructors

Constructor index | Variable index | Method index | Top | Bottom

Constructor: Request

Purpose Creates a Request object.
Syntax public Request(Session sess,
ConnectionInfo conn)
Parameters sess = Session object.

conn = ConnectionInfo object.

Description Creates a Request object.

Methods

Constructor index | Variable index | Method index | Top | Bottom

Method: executeRequest

Purpose Executes a SQL statement.
Syntax public RelationView executeRequest( ) throws SQLException
Parameters None.
Description Executes a SQL statement.

Method: getConnectionInfo

Purpose Returns connection information.
Syntax public ConnectionInfo getConnectionInfo( )
Parameters None.
Description Returns connection information.

Method: getOptConc

Purpose Returns an optimistic concurrency setting.
Syntax protected int getOptConc( )
Parameters None.
Description Returns an optimistic concurrency setting.

Method: getRequestProperties

Purpose Returns properties.
Syntax public Properties getRequestProperties( )
Parameters None.
Description Returns properties.

Method: getSQL

Purpose Returns a SQL statement.
Syntax public String getSQL( )
Parameters None.
Description Returns a SQL statement.

Method: setConnectionInfo

Purpose Sets connection information.
Syntax public void setConnectionInfo(ConnectionInfo conn)
Parameters conn = ConnectionInfo object.
Description Sets connection information.

Method: setRequestProperties

Purpose Sets Request properties.
Syntax public void setRequestProperties(Properties requestProps)
Parameters requestProps = Request properties. This object defines the following properties:
Property Description
optConc Optimistic concurrency setting for the RelationView created by the SQL statement. The default value is UNIQUE_MODIFIED. Possible values:
 o UNIQUE
 o UNIQUE_MODIFIED
 o ALL
recPosition Initial record position for the RelationView created by the SQL statement. Possible values:
 o REC_POS_FIRST
 o REC_POS_NEW
 o REC_POS_NOPOS
 o The default value is REC_POS_NOPOS.
Description Sets Request properties. Since these properties have default values, you don't need to call setRequestProperties to execute a Request.
See also RelationView

Method: setSQL

Purpose Sets a SQL statement.
Syntax public void setSQL(String sql)
Parameters sql = SQL statement.
Description Sets a SQL statement.

Constructor index | Variable index | Method index | Top

Copyright © 1996 Symantec Corporation. All rights reserved.