Chapter 1 Java Classes and Interfaces


jaguar.server.JContext class

Description

package com.sybase.jaguar.server;
public class JContext extends Object 

Instantiates objects that are used to send result sets from a Java component method and provides a method to forward rows from a java.sql.ResultSet to the client.

Constructors

None. All methods are static.

Methods

See Also

JServerResultSet, JServerResultSetMetaData


JContext.createServerResultSetMetaData()

Description

Creates a JServerResultSetMetaData object.

Syntax

Package com.sybase.jaguar.server
Class JContext
public static JServerResultSetMetaData 
     createServerResultSetMetaData() 
    throws SQLException 

Usage

The JServerResultSetMetaData reference can be used to describe result rows to be sent to the client.

See Also

createServerResultSet(JServerResultSetMetaData), forwardResultSet(ResultSet)


JContext.createServerResultSet(JServerResultSetMetaData)

Description

Creates a JServerResultSet object.

Syntax

Package com.sybase.jaguar.server
Class JContext
public static JServerResultSet  createServerResultSet 
    ( JServerResultSetMetaData metadata) 
    throws SQLException 

Parameters

metadata

A JServerResultSetMetaData object that has been initialized to describe the result set that will be sent.

See Also

createServerResultSetMetaData(), forwardResultSet(ResultSet)


JContext.forwardResultSet(ResultSet)

Description

Retrieves the rows from a java.sql.ResultSet object and forward them to the client.

Syntax

Package com.sybase.jaguar.server
Class JContext
public static void
     forwardResultSet( ResultSet rs) 
    throws SQLException 

Parameters

rs

A java.sql.ResultSet containing result rows from a JDBC query to a third-tier server.

See Also

java.sql.ResultSet


JContext.getComponentName()

Description

Retrieves the name of the currently executing component, as displayed in Jaguar Manager.

Syntax

Package com.sybase.jaguar.server
Class JContext
public static String
     getComponentName()

Return Values

The name of the component, as displayed in Jaguar Manager.

Usage

getPackageName() and getComponentName() allow you to determine the name of the currently executing component. Within a server, components are identified by the name of the Jaguar Manager package where they are installed and the Jaguar Manager component name.

See Also

getPackageName(), Jaguar.getServerName()


JContext.getPackageName()

Description

Determines the name of the package in which the currently executing component is installed.

Syntax

Package com.sybase.jaguar.server
Class JContext
public static String
     getPackageName()

Return Values

The name of the EAServer package, as displayed in Jaguar Manager.

Usage

getPackageName() and getComponentName() allow you to determine the name of the currently executing component. Within a server, components are uniquely identified by the name of the Jaguar Manager package where they are installed and the Jaguar Manager component name.

See Also

getComponentName(), Jaguar.getServerName()

 


Copyright © 2001 Sybase, Inc. All rights reserved.