Previous     Contents     Index     DocHome     Next     
iPlanet Unified Integration Framework Developer's Guide



Chapter 7   API Reference


This chapter describes the interfaces and methods used from your Servlet, JSP, or EJB to access and manipulate data stored on an EIS system.

This chapter contains the following sections:



IBSPRuntime Interface

The IBSPRuntime interface defines the methods to create service provider and function objects.


Package

netscape.bsp.runtime


Methods




Method

Description

createFunctionObject()  

Creates a function object.  

createServiceProvider()  

Creates a service provider object.  

getServerContext()  

Retrieves the server's context object.  


createFunctionObject()

Creates a function object.


Syntax
public
netscape.bsp.runtime.IBSPFunctionObject createFunctionObject(
      java.lang.String pAdapterName,
      java.lang.String pFunctionObjectName);

pAdapterName - A string that specifies the connector name.

pFunctionObjectName - A string that specifies the function object name.


Usage
Specify the datasource name and a function object name from the repository.


Example
IBSPFunctionObject fn = null;

if( (runtime != null) && (sp != null) )

   {

      fn = runtime.createFunctionObject("<connector>", "phonebook");

   }


Return Value
An IBSPFunctionObject.


createServiceProvider()

Creates a service provider object.


Syntax
public
netscape.bsp.runtime.IBSPServiceProvider createServiceProvider(
      java.lang.String pAdapterName,
      java.lang.String pServiceProviderName);

pAdapterName - A string that specifies the connector name.

pServiceProviderName - A string that specifies the service provider name.


Usage
Specify the datasource name and a service provider name from the repository.


Example
IBSPServiceProvider sp = null;

if (runtime != null)

{

   sp = runtime.createServiceProvider("<connector>", "<connector>_sp1");

}


Return Value
An IBSPServiceProviderObject object.


getServerContext()

Retrieves the server's context object.


Syntax
public com.kivasoft.IContext getServerContext();


Return Value
The IContext object associated with this runtime object.



IBSPServiceProvider Interface



The IBSPServiceProvider interface defines the methods to enable or disable a connection to an EIS server from a Servlet, JSP, or EJB.


Package

netscape.bsp.runtime


Methods




Method

Description

disable()  

Disables the EIS connection.  

enable()  

Enables the EIS connection.  

extendBindDuration()  

Extends the bind duration.  

getConfig()  

Determines the configuration of the EIS connection.  

isEnabled()  

Determines whether the EIS connection is enabled.  


disable()

Disables the EIS connection.


Syntax
public int disable();


Usage
The disable() method causes the connection with the EIS to be dropped. The application needs to disable sp-bound connections after they are no longer needed. After calling the disable() method, the connection is no longer valid and the connection is returned to the pool. The application can call enable() to reestablish the connection.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


enable()

Enables the EIS connection.


Syntax
public int enable();


Usage
The enable() method validates the logical connection with the EIS system and establishes a physical connection. The application must enable the connection before it associates a service provider with a function object. For method-bound connections, the connection is automatically released after the method call.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


extendBindDuration()

Extends the bind duration.


Syntax
public int extendBindDuration();


Usage
The extendBindDuration() method increases the bind duration timeout value beyond the bind duration specified in the repository. Call this method when the application expects a long transaction and want to hold the same physical connection. For information about bind durations, see "Bind Durations" on page 73.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


getConfig()

Determines the configuration of the EIS connection.


Syntax
public netscape.bsp.dataobject.IBSPDataObject getConfig();


Usage
Use this method to set up configuration information for an EIS connection.


Return Value
An IBSPDataObject object that contains the configuration information.


isEnabled()

Determines whether the EIS connection is enabled.


Syntax
public boolean isEnabled();


Return Value
A boolean value that is true if the connection is enabled; otherwise, it is false.



IBSPFunctionObject Interface



The IBSPFunctionObject interface defines the methods the application needs to specify a service provider which prepares and executes an EIS request to obtain properties and data from the EIS.


Package

netscape.bsp.runtime


Methods




Method

Description

execute()  

Executes an EIS request.  

getDataBlock()  

Retrieves a data block from the EIS system.  

getProperties()  

Determines the EIS system properties.  

getServiceProvider()  

Determines the service provider.  

prepare()  

Prepares an EIS request.  

useServiceProvider()  

Specifies the service provider to use.  


execute()

Executes an EIS request.


Syntax
public int execute();


Usage
Calls the prepare() method before calling execute().


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


getDataBlock()

Retrieves a data block from the EIS system.


Syntax
public netscape.bsp.dataobject.IBSPDataObject getDataBlock();


Return Value
An IBSPDataObject object that contains the data block.


getProperties()

Determines the EIS system properties.


Syntax
public netscape.bsp.dataobject.IBSPDataObject getProperties();


Return Value
An IBSPDataObject object that contains the properties for the current operation.


getServiceProvider()

Determines the service provider.


Syntax
public netscape.bsp.dataobject.IBSPServiceProvider getServiceProvider();


Return Value
An IBSPServiceProvider object that represents a connection to the EIS.


prepare()

Prepares an EIS request.


Syntax
public int prepare(java.lang.String pOperation);

pOperation - A string that specifies the operation to perform.


Usage
Specify an operation by name from the repository. The prepare() method sets up the data block and properties for the specified operation and causes the specified operation to become the current operation for this function object.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails



IBSPDataObjectMgr Interface

The IBSPDataObjectMgr interface implements a method for examining the contents of a data object. The following example shows how to create an reference to an IBSPDataObjectMgr object:

netscape.bsp.dataobject.IBSPDataObjectMgr doMgr =
netscape.bsp.dataobject.access_cDataObject.getcDataObject(
      context, null, null);



Note

Currently, data object creation methods are not exposed. The application can only create a data object by creating the object info in the repository and accessing the repository.




Package

netscape.bsp.dataobject


Methods




Method

Description

dumpDataObject()  

Displays the data contained in a data object.  


dumpDataObject()

Displays the data contained in a data object on the console.


Syntax
public int dumpDataObject(
   netscape.bsp.dataobject.IBSPDataObject dataObject);

dataObject - The IBSPDataObject object whose data the application wants to display.


Usage
Use the dumpDataObject() method for debugging. The data is displayed on the console.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails



IBSPDataObject Interface

The IBSPDataObject interface implements methods for accessing data objects and their attributes.


Package

netscape.bsp.dataobject


Attribute Access Methods




Method

Description

getAttr()  

Determines the attribute at the specified path.  

getAttrBinary()  

Determines the value of a byte array attribute.  

getAttrDouble()  

Determines the value of a double precision floating point attribute.  

getAttrFloat()  

Determines the value of a floating point attribute.  

getAttrFString()  

Determines the value of a fixed length string attribute.  

getAttrInt()  

Determines the value of an integer attribute.  

getAttrString()  

Determines the value of a string attribute.  

getAttrVBinary()  

Determines the value of a variable size byte array attribute.  

setAttrBinary()  

Sets the value of a byte array attribute.  

setAttrDataObject()  

Sets the value of an attribute to a data object.  

setAttrDataObjectList()  

Sets the value of an attribute to a new empty list.  

setAttrDataObjectStructure()  

Sets the value of an attribute to a new empty structure.  

setAttrDouble()  

Sets the value of a double precision floating point attribute.  

setAttrFloat()  

Sets the value of a floating point attribute.  

setAttrFString()  

Sets the value of a fixed length string attribute.  

setAttrInt()  

Sets the value of an integer attribute.  

setAttrString()  

Sets the value of a string attribute.  

setAttrVBinary()  

Sets the value of a variable size byte array attribute.  


Other Methods




Method

Description

attrExists()  

Determines whether an attribute exists in the instance.  

attrIsDefined()  

Determines whether an attribute is defined in the repository.  

copy()  

Creates a copy of this object.  

equal()  

Compares with another data object to determine if their values equal.  

getAttrBinarySize()  

Determines the current size of a byte array attribute.  

getAttrCount()  

Determines the number of attributes in the data object.  

getAttrFStringMaxLen()  

Determines the maximum length of a fixed size string attribute.  

getAttrFStringSize()  

Determines the current size of a fixed size string attribute.  

getAttrStringSize()  

Determines the current size of a string attribute.  

getAttrType()  

Determines the data type of an attribute.  

getAttrVBinarySize()  

Determines the current size of a variable byte array attribute.  

getDataItr()  

Retrieves the data iterator for this object.  

getMetadataItr()  

Retrieves the meta data iterator for this object.  

getTypeInfo()  

Determines the type information for this object.  

isAttrType()  

Determines whether an attribute's type matches the specified type.  

isType()  

Determines whether the type matches the specified type.  

removeAttr()  

Removes an attribute.  


attrExists()

Determines whether an attribute exists in the instance.


Syntax
public boolean attrExists(java.lang.String path);

path - The path to a data attribute the application wants to check.


Usage
Specify the path for the data object attribute, that needs checking.


Return Value
A boolean value that is true if the attribute exits; otherwise, it is false.


attrIsDefined()

Determines whether an attribute is defined in the repository.


Syntax
public boolean attrIsDefined(java.lang.String path);

path - The path to a data attribute the application wants to check.


Usage
Specify the path for the data object attribute, that needs checking.


Return Value
A boolean value that is true if the attribute is defined; otherwise, it is false.


copy()

Creates a copy of this object.


Syntax
public netscape.bsp.dataobject.IBSPDataObject copy();


Usage
The copy() method performs a deep copy.


Return Value
A copy of the data object.


getAttr()

Determines the attribute at the specified path.


Syntax
public netscape.bsp.dataobject.IBSPDataObject
   getAttr(java.lang.String path);

path - The path to a data attribute the application wants to check.


Usage
Specify the path of the Data Object attribute to obtain the attribute value.


Return Value
An IBSPDataObject object that contains the attribute.


getAttrBinary()

Determines the value of a byte array attribute.


Syntax
public byte[] getAttrBinary(java.lang.String path);

path - The path to a data attribute the application wants to check.


Return Value
A byte array that contains the value.


getAttrBinarySize()

Determines the current size of a byte array attribute.


Syntax
public int getAttrBinarySize(java.lang.String path);

path - The path to a byte array attribute whose size the application wants to obtain.


Return Value
An integer that contains the size, in bytes.


getAttrCount()

Determines the number of attributes in the data object.


Syntax
public int getAttrCount();


Return Value
An integer that specifies the number of attributes.


getAttrDouble()

Determines the value of a double precision floating point attribute.

Syntax

public double getAttrDouble(java.lang.String path);

path - The path to a data attribute the application wants to check.


Return Value
A double precision floating point number that contains the value.


getAttrFloat()

Determines the value of a floating point attribute.


Syntax
public float getAttrFloat(java.lang.String path);

path - The path to a data attribute whose value the application wants to obtain.


Return Value
A floating point number that contains the value.


getAttrFString()

Determines the value of a fixed length string attribute.


Syntax
public java.lang.String getAttrFString(java.lang.String path);

path - The path to a data attribute whose value the application wants to obtain.


Return Value
A string that contains the value.


getAttrFStringMaxLen()

Determines the maximum length of a fixed size string attribute.


Syntax
public int getAttrFStringMaxLen(java.lang.String path);

path - The path to a fixed length string attribute whose maximum length the application wants to obtain.


Return Value
An integer that contains the maximum length, in bytes.


getAttrInt()

Determines the value of an integer attribute.


Syntax
public int getAttrInt(java.lang.String path);

path - The path to a data attribute whose value the application wants to obtain.


Return Value
An integer that contains the value.


getAttrString()

Determines the value of a string attribute.


Syntax
public java.lang.String getAttrString(java.lang.String path);

path - The path to a data attribute whose value the application wants to obtain.


Return Value
A string that contains the value.


getAttrType()

Determines the data type of an attribute.


Syntax
public int getAttrType(java.lang.String path);

path - The path to a data attribute whose value the application wants to determine.


Usage
The attribute type may be one of the following:




Constant

Value

TN_BINARY.TN_BINARY  

5  

TN_DATAOBJECT.TN_DATAOBJECT  

128  

TN_DATAOBJECT_ARRAY.TN_DATAOBJECT_ARRAY  

161  

TN_DATAOBJECT_ARRAY_INFO.TN_DATAOBJECT_ARRAY_INFO  

211  

TN_DATAOBJECT_LIST.TN_DATAOBJECT_LIST  

160  

TN_DATAOBJECT_LIST_INFO.TN_DATAOBJECT_LIST_INFO  

210  

TN_DATAOBJECT_PRIM_INFO.TN_DATAOBJECT_PRIM_INFO  

209  

TN_DATAOBJECT_STRUCT_INFO.TN_DATAOBJECT_STRUCT_INFO  

212  

TN_DOUBLE.TN_DOUBLE  

3  

TN_FLOAT.TN_FLOAT  

2  

TN_FSTRING.TN_FSTRING  

6  

TN_STRING.TN_STRING  

4  

TN_UNDEFINED.TN_UNDEFINED  

0  

TN_VBINARY.TN_VBINARY  

7  

The application should always use a constant instead of a value in its Servlet, JSP, or EJB.


Return Value
An integer that contains the type number.


getAttrVBinary()

Determines the value of a variable size byte array attribute.


Syntax
public byte[] getAttrVBinary(java.lang.String path);

path - The path to a data attribute whose value the application wants to obtain.


Return Value
A byte array that contains the value.


getAttrVBinarySize()

Determines the current size of a variable byte array attribute.


Syntax
public int getAttrVBinarySize(java.lang.String path);

path - The path to a variable length byte array attribute whose size the application wants to obtain.


Return Value
An integer that contains the size, in bytes.


getDataItr()

Retrieves the data iterator for this object.


Syntax
public
netscape.bsp.dataobject.IBSPDataObjectDataItr getDataItr();


Usage
For information about the IBSPDataObjectDataItr interface, see "IBSPDataObjectDataItr Interface" on page 163.


Return Value
An IBSPDataObjectDataItr object.


getTypeInfo()

Determines the type information for this object.


Syntax
public
netscape.bsp.dataobject.IBSPDataObjectInfo getTypeInfo();


Return Value
An IBSPDataObjectInfo object.


isAttrType()

Determines whether an attribute's type matches the specified type.


Syntax
public
boolean isAttrType(java.lang.String path, int typeNumber);

typeNumber - The specified type.


Usage
The attribute type may be one of the following:




Constant

Value

TN_BINARY.TN_BINARY  

5  

TN_DATAOBJECT.TN_DATAOBJECT  

128  

TN_DATAOBJECT_ARRAY.TN_DATAOBJECT_ARRAY  

161  

TN_DATAOBJECT_ARRAY_INFO.TN_DATAOBJECT_ARRAY_INFO  

211  

TN_DATAOBJECT_LIST.TN_DATAOBJECT_LIST  

160  

TN_DATAOBJECT_LIST_INFO.TN_DATAOBJECT_LIST_INFO  

210  

TN_DATAOBJECT_PRIM_INFO.TN_DATAOBJECT_PRIM_INFO  

209  

TN_DATAOBJECT_STRUCT_INFO.TN_DATAOBJECT_STRUCT_INFO  

212  

TN_DOUBLE.TN_DOUBLE  

3  

TN_FLOAT.TN_FLOAT  

2  

TN_FSTRING.TN_FSTRING  

6  

TN_STRING.TN_STRING  

4  

TN_UNDEFINED.TN_UNDEFINED  

0  

TN_VBINARY.TN_VBINARY  

7  


Return Value
A boolean value that is true if the types match; otherwise, it is false.


isType()

Determines whether the type matches the specified type.


Syntax
public boolean isType(int typeNumber);

typeNumber - The specified type.


Usage
The attribute type may be one of the following:




Constant

Value

TN_BINARY.TN_BINARY  

5  

TN_DATAOBJECT.TN_DATAOBJECT  

128  

TN_DATAOBJECT_ARRAY.TN_DATAOBJECT_ARRAY  

161  

TN_DATAOBJECT_ARRAY_INFO.TN_DATAOBJECT_ARRAY_INFO  

211  

TN_DATAOBJECT_LIST.TN_DATAOBJECT_LIST  

160  

TN_DATAOBJECT_LIST_INFO.TN_DATAOBJECT_LIST_INFO  

210  

TN_DATAOBJECT_PRIM_INFO.TN_DATAOBJECT_PRIM_INFO  

209  

TN_DATAOBJECT_STRUCT_INFO.TN_DATAOBJECT_STRUCT_INFO  

212  

TN_DOUBLE.TN_DOUBLE  

3  

TN_FLOAT.TN_FLOAT  

2  

TN_FSTRING.TN_FSTRING  

6  

TN_STRING.TN_STRING  

4  

TN_UNDEFINED.TN_UNDEFINED  

0  

TN_VBINARY.TN_VBINARY  

7  


Return Value
A boolean value that is true if the types match; otherwise, it is false.


removeAttr()

Removes an attribute.


Syntax
public int removeAttr(java.lang.String path);

path - The path to a data attribute the application wants to remove.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setAttrBinary()

Sets the value of a byte array attribute.


Syntax
public int setAttrBinary(java.lang.String path, byte[] buf);

path - The path to a data attribute whose value the application wants to set.

buf - The value with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setAttrDataObject()

Sets the value of an attribute to a data object.


Syntax
public int setAttrDataObject(java.lang.String path,
      netscape.bsp.dataobject.IBSPDataObject value);

path - The path to a data attribute whose value the application wants to set.

value - The object that the application wants to associate with the attribute.


Usage
A value for a primitive data type is unwrapped and copied when it is set in the object; in other words, the value is stored in the object, not an object that contains the value. Otherwise, the data object itself is set to the value.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setAttrDataObjectList()

Sets the value of an attribute to a new empty list.


Syntax
public int setAttrDataObjectList(java.lang.String path);

path - The path to a data attribute whose value the application wants to set.


Usage
An empty list is created at the specified path.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setAttrDataObjectStructure()

Sets the value of an attribute to a new empty structure.


Syntax
public int setAttrDataObjectStructure(java.lang.String path);

path - The path to a data attribute whose value the application wants to set.


Usage
An empty structure is created at the specified path.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setAttrDouble()

Sets the value of a double precision floating point attribute.


Syntax
public int setAttrDouble(java.lang.String path, double value);

path - The path to a data attribute whose value the application wants to set.

value - The value with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setAttrFloat()

Sets the value of a floating point attribute.


Syntax
public int setAttrFloat(java.lang.String path, float value);

path - The path to a data attribute whose value the application wants to set.

value - The value with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setAttrFString()

Sets the value of a fixed length string attribute.


Syntax
public int setAttrFString( java.lang.String path,
      java.lang.String stringValue);

path - The path to a data attribute whose value the application wants to set.

stringValue - The value with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setAttrInt()

Sets the value of an integer attribute.


Syntax
public int setAttrInt(java.lang.String path, int intValue);

path - The path to a data attribute whose value the application wants to set.

intValue - The value with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setAttrString()

Sets the value of a string attribute.


Syntax
public int setAttrString(java.lang.String path,
      java.lang.String stringValue);

path - The path to a data attribute whose value the application wants to set.

stringValue - The value with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setAttrVBinary()

Sets the value of a variable size byte array attribute.


Syntax
public int setAttrVBinary(java.lang.String path, byte[] buf);

path - The path to a data attribute whose value the application wants to set.

buf - The value with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails



IBSPDataObjectPrimitive Interface

The IBSPDataObjectPrimitive interface defines methods for accessing primitive data objects, which include integers, floating point numbers, double precision floating point numbers, byte arrays, and strings.


Package

netscape.bsp.dataobject


Methods




Method

Description

getBinary()  

Determines the value of a byte array.  

getBinarySize()  

Determines the size of a byte array.  

getDouble()  

Determines the value of a double precision floating point number.  

getFloat()  

Determines the value of a floating point number.  

getFString()  

Determines the value of a fixed length string.  

getFStringMaxLen()  

Determines the maximum length of a fixed-size string.  

getInt()  

Determines the value of an integer.  

getString()  

Determines the value of a string.  

getVBinary()  

Determines the value of a variable size binary number.  

getVBinarySize()  

Determines the size of a variable byte array.  

setBinary()  

Sets the value of a binary number.  

setDouble()  

Sets the value of a double precision floating point number.  

setFloat()  

Sets the value of a floating point number.  

setFString()  

Sets the value of a fixed length string.  

setInt()  

Sets the value of an integer.  

setString()  

Sets the value of a string.  

setVBinary()  

Sets the value of a variable size byte array.  


getBinary()

Determines the value of a byte array.


Syntax
public byte[] getBinary();


Return Value
A byte array that contains the value.


getBinarySize()

Determine the size of a byte array.


Syntax
public int getBinarySize();


Return Value
An integer that contains the size, in bytes.


getDouble()

Determines the value of a double precision floating point number.


Syntax
public double getDouble();


Return Value
A double precision floating point number that contains the value.


getFloat()

Determines the value of a floating point number.


Syntax
public float getFloat();


Return Value
A floating point number that contains the value.


getFString()

Determines the value of a fixed length string.


Syntax
public java.lang.String getFString();


Return Value
A string that contains the value.


getFStringMaxLen()

Determines the maximum length of a fixed size string.


Syntax
public int getFStringMaxLen();


Return Value
An integer that contains the maximum length, in bytes.


getInt()

Determines the value of an integer.


Syntax
public int getInt();


Return Value
An integer that contains the value.


getString()

Determines the value of a string.


Syntax
public java.lang.String getString();


Return Value
A string that contains the value.


getVBinary()

Determines the value of a variable size binary number.


Syntax
public byte[] getVBinary();


Return Value
A byte array that contains the value.


getVBinarySize()

Determine the size of a variable byte array.


Syntax
public int getVBinarySize();


Return Value
An integer that contains the size, in bytes.


setBinary()

Sets the value of a binary number.


Syntax
public int setBinary(byte[] buf);

buf - The value with which to set the object.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setDouble()

Sets the value of a double precision floating point number.


Syntax
public int setDouble(double value);

value - The value with which to set the object.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setFloat()

Sets the value of a floating point number.


Syntax
public int setFloat(float value);

value - The value with which to set the object.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setFString()

Sets the value of a fixed length string.


Syntax
public int setFString(java.lang.String stringValue);

stringValue - The value with which to set the object.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setInt()

Sets the value of an integer.


Syntax
public int setInt(int intValue);

intValue - The value with which to set the object.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setString()

Sets the value of a string.


Syntax
public int setString(java.lang.String stringValue);

stringValue - The value with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setVBinary()

Sets the value of a variable size byte array.


Syntax
public int setVBinary(byte[] buf);

buf - The value with which to set the object.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails



IBSPDataObjectPrimitiveInfo Interface

The IBSPDataObjectPrimitiveInfo interface defines methods for getting and setting the default values and lengths of primitive data types.


Package

netscape.bsp.dataobject


Methods




Method

Description

getPrimDefault()  

Determines the default primitive data object.  

getPrimDefaultBinary()  

Determines the default value of a byte array.  

getPrimDefaultDataObject()  

Determines the default primitive data object.  

getPrimDefaultDouble()  

Determines the default value of a double precision floating point number.  

getPrimDefaultFloat()  

Determines the default value of a floating point number.  

getPrimDefaultFString()  

Determines the default value of a fixed length string.  

getPrimDefaultFStringMaxLen()  

Determines the default maximum length of a fixed-size string.  

getPrimDefaultInt()  

Determines the default value of an integer.  

getPrimDefaultVBinary()  

Determines the default value of a variable size byte array.  

getPrimSize()  

Determines the size of the defined primitive data object.  

getPrimType()  

Determines the data type of the defined primitive data object.  

setPrimDefaultBinary()  

Sets the default value of a binary number.  

setPrimDefaultDataObject()  

Sets the default primitive data object.  

setPrimDefaultDouble()  

Sets the default value of a double precision floating point number.  

setPrimDefaultFloat()  

Sets the default value of a floating point number.  

setPrimDefaultFString()  

Sets the default value of a fixed length string.  

setPrimDefaultInt()  

Sets the default value of an integer.  

setPrimDefaultString()  

Sets the default value of a string.  

setPrimDefaultVBinary()  

Sets the default value of a variable size byte array.  


getPrimDefault()

Determines the default primitive data object.


Syntax
public netscape.bsp.dataobject.IBSPDataObjectPrimitive
      getPrimDefault();


Return Value
The default IBSPDataObjectPrimitive object.


getPrimDefaultBinary()

Determines the default value of a byte array.


Syntax
public byte[] getPrimDefaultBinary();


Return Value
A byte array that contains the value.


getPrimDefaultDataObject()

Determines the default primitive data object.


Syntax
public netscape.bsp.dataobject.IBSPDataObjectPrimitive
      getPrimDefaultDataObject();


Return Value
The default IBSPDataObjectPrimitive object.


getPrimDefaultDouble()

Determines the default value of a double precision floating point number.


Syntax
public double getPrimDefaultDouble();


Return Value
A double precision floating point number that contains the value.


getPrimDefaultFloat()

Determines the default value of a floating point number.


Syntax
public float getPrimDefaultFloat();


Return Value
A floating point number that contains the value.


getPrimDefaultFString()

Determines the default value of a fixed length string.


Syntax
public java.lang.String getPrimDefaultFString();


Return Value
A string that contains the value.


getPrimDefaultFStringMaxLen()

Determines the default maximum length of a fixed size string.


Syntax
public int getPrimDefaultFStringMaxLen();


Return Value
An integer that contains the size, in bytes.


getPrimDefaultInt()

Determines the default value of an integer.


Syntax
public int getPrimDefaultInt();


Return Value
An integer that contains the value.


getPrimDefaultVBinary()

Determines the default value of a variable size byte array.


Syntax
public byte[] getPrimDefaultVBinary();


Return Value
A byte array that contains the value.


getPrimSize()

Determines the size of the defined primitive data object.


Syntax
public int getPrimSize();


Return Value
An integer that contains the size, in bytes.


getPrimType()

Determines the data type of the defined primitive data object.

public int getPrimType();


Usage
The primitive type may be one of the following:




Constant

Value

TN_BINARY.TN_BINARY  

5  

TN_DATAOBJECT.TN_DATAOBJECT  

128  

TN_DOUBLE.TN_DOUBLE  

3  

TN_FLOAT.TN_FLOAT  

2  

TN_FSTRING.TN_FSTRING  

6  

TN_STRING.TN_STRING  

4  

TN_UNDEFINED.TN_UNDEFINED  

0  

TN_VBINARY.TN_VBINARY  

7  

The application should always use a constant instead of a value in its Servlet, JSP, or EJB.


Return Value
An integer that contains the type number.


setPrimDefaultBinary()

Sets the default value of a binary number.


Syntax
public int setPrimDefaultBinary(byte[] buf);

buf - The default value with which to set the default.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setPrimDefaultDataObject()

Sets the default primitive data object.


Syntax
public int setPrimDefaultDataObject(
      netscape.bsp.dataobject.IBSPDataObjectPrimitive value);

value - The value with which to set the default.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setPrimDefaultDouble()

Sets the default value of a double precision floating point number.


Syntax
public int setPrimDefaultDouble(double value);

value - The value with which to set the default.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setPrimDefaultFloat()

Sets the default value of a floating point number.


Syntax
public int setPrimDefaultFloat(float value);

value - The value with which to set the default.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setPrimDefaultFString()

Sets the default value of a fixed length string.


Syntax
public int setPrimDefaultFString(java.lang.String value);

stringValue - The value with which to set the default.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setPrimDefaultInt()

Sets the default value of an integer.


Syntax
public int setInt(int intValue);

intValue - The value with which to set the default.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setPrimDefaultString()

Sets the default value of a string.


Syntax
public int setString(java.lang.String stringValue);

stringValue - The value with which to set the default.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setPrimDefaultVBinary()

Sets the default value of a variable size byte array.


Syntax
public int setVBinary(byte[] buf);

buf - The value with which to set the default.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails



IBSPDataObjectCollection Interface

The IBSPDataObjectCollection interface defines an interface from which collections, such as data object lists and structures are derived. The interface currently has no methods.



IBSPDataObjectList Interface



The IBSPDataObjectList interface defines methods for accessing elements of list data objects. The interface defines an ordered list in which new elements are added to the end.

Note

An element must be added to the list before the element can be set.




Package

netscape.bsp.dataobject


Access Methods




Method

Description

getElem()  

Determines the value of an element.  

getElemBinary()  

Determines the value of a byte array element.  

getElemDouble()  

Determines the value of a double precision floating point number element.  

getElemFloat()  

Determines the value of a floating point number element.  

getElemFString()  

Determines the value of a fixed length string element.  

getElemDataObject()  

Determines the data object stored in an element.  

getElemInt()  

Determines the value of an integer element.  

getElemString()  

Determines the value of a string element.  

getElemVBinary()  

Determines the value of a variable size byte array element.  

setElemBinary()  

Sets the value of a binary number element.  

setElemDataObject()  

Sets the data object stored in an element.  

setElemDataObjectList()  

Sets an element to a new empty list.  

setElemDataObjectStructure()  

Sets an element to a new empty structure.  

setElemDouble()  

Sets the value of a double precision floating point number element.  

setElemFloat()  

Sets the value of a floating point number element.  

setElemFString()  

Sets the value of a fixed length string element.  

setElemInt()  

Sets the value of an integer element.  

setElemString()  

Sets the value of a string element.  

setElemVBinary()  

Sets the value of a variable size byte array element.  


Element Insertion and Deletion Methods




Method

Description

addElemBinary()  

Adds a byte array as an element in the list.  

addElemDataObject()  

Adds a data object as an element in the list.  

addElemDataObjectList()  

Adds a new empty list as an element in the list.  

addElemDataObjectStructure()  

Adds a new empty structure as an element in the list.  

addElemDouble()  

Adds a double precision floating point number as an element in the list.  

addElemFloat()  

Adds a floating point number as an element in the list.  

addElemFString()  

Adds a fixed length string as an element in the list.  

addElemInt()  

Adds an integer number as an element in the list.  

addElemString()  

Adds a string as an element in the list.  

addElemVBinary()  

Adds a variable length byte array as an element in the list.  

removeElem()  

Removes an element in the list.  


Other Methods




Method

Description

elemExists()  

Determines whether an element exists in the instance.  

elemIsDefined()  

Determines whether an element is defined in the repository.  

getElemBinarySize()  

Determines the size of a byte array element.  

getElemCount()  

Determines the current number of elements in the list.  

getElemFStringMaxLen()  

Determines the maximum length of a fixed length string element.  

getElemType()  

Determines the type of an element.  

getElemVBinarySize()  

Determines the size of a variable byte array element.  

getMaxElemCount()  

Determines the maximum number of elements in the list.  

isElemType()  

Compares the element with the specified type.  

setMaxElemCount()  

Specifies the maximum number of elements in the list.  


addElemBinary()

Adds a byte array as an element in the list.


Syntax
public int addElemBinary(byte[] buf);

buf - The value with which to set the element.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


addElemDataObject()

Adds a data object as an element in the list.


Syntax
public int addElemDataObject
      (netscape.bsp.dataobject.IBSPDataObject value);

value - The value with which to set the element.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


addElemDataObjectList()

Adds a new empty list as an element in the list.


Syntax
public int addElemDataObjectList();


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


addElemDataObjectStructure()

Adds a new empty structure as an element in the list.


Syntax
public int addElemDataObjectStructure();


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


addElemDouble()

Adds a double precision floating point number as an element in the list.


Syntax
public int addElemDouble(double value);

value - The value with which to set the element.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


addElemFloat()

Adds a floating point number as an element in the list.


Syntax
public int addElemFloat(float value);

value - The value with which to set the element.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


addElemFString()

Adds a fixed length string as an element in the list.


Syntax
public int addElemFString(java.lang.String value);

value - The value with which to set the element.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


addElemInt()

Adds an integer number as an element in the list.


Syntax
public int addElemInt(int value);

value - The value with which to set the element.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


addElemString()

Adds a string as an element in the list.


Syntax
public int addElemString(java.lang.String value);

value - The value with which to set the element.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


addElemVBinary()

Adds a variable length byte array as an element in the list.


Syntax
public int addElemVBinary(byte[] buf);

buf - The value with which to set the element.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


elemExists()

Determines whether an element exists in the instance.


Syntax
public boolean elemExists(int index);

index - The position of the element to test.


Usage
An element exists if its value exists in the object. The first index position in the list is 0.


Return Value
A boolean value that is true if the element exists; otherwise, it is false.


elemIsDefined()

Determines whether an element is defined in the repository.


Syntax
public boolean elemIsDefined(int index);

index - The position of the element to test.


Usage
An element is defined if its index is between 0 and one less than the maximum element count, inclusive.


Return Value
A boolean value that is true if the element is defined; otherwise, it is false.


getElem()

Determines the value of an element.


Syntax
public
netscape.bsp.dataobject.IBSPDataObject getElem(int index);

index - The position of the element whose value the application wants to determine.


Usage
If the returned value is of a primitive data type, it is copied into a primitive data object and the primitive data object is returned; otherwise, a reference to the data object is returned. The first index position in the list is 0.


Return Value
An IBSPDataObject object that contains the value.


getElemBinary()

Determines the value of a byte array element.


Syntax
public byte[] getElemBinary(int index);

index - The position of the element whose value the application wants to determine.


Usage
The first index position in the list is 0.


Return Value
A byte array that contains the value.


getElemBinarySize()

Determines the size of a byte array element.


Syntax
public byte[] getElemBinaryize(int index);

index - The position of the element whose size the application wants to determine.


Usage
The first index position in the list is 0.


Return Value
An integer that contains the size, in bytes.


getElemCount()

Determines the current number of elements in the list.


Syntax
public int getElemCount();


Return Value
An integer that contains the number of elements.


getElemDataObject()

Determines the data object stored in an element.


Syntax
public netscape.bsp.dataobject.IBSPDataObject getElemDataObject
      (int index);

index - The position of the element whose value the application wants to determine.


Usage
The first index position in the list is 0.


Return Value
A double precision floating point number that contains the value.


getElemDouble()

Determines the value of a double precision floating point number element.


Syntax
public double getElemDouble(int index);

index - The position of the element whose value the application wants to determine.


Usage
The first index position in the list is 0.


Return Value
A double precision floating point number that contains the value.


getElemFloat()

Determines the value of a floating point number element.


Syntax
public float getElemFloat(int index);

index - The position of the element whose value the application wants to determine.


Usage
The first index position in the list is 0.


Return Value
A floating point number that contains the value.


getElemFString()

Determines the value of a fixed length string element.


Syntax
public java.lang.String getElemFString(int index);

index - The position of the element whose value the application wants to determine.


Usage
The first index position in the list is 0.


Return Value
A string that contains the value.


getElemFStringMaxLen()

Determines the maximum length of a fixed length string element.


Syntax
public int getElemStringMaxLen(int index);

index - The position of the element whose value the application wants to determine.


Usage
The first index position in the list is 0.


Return Value
An integer that contains the size, in bytes.


getElemInt()

Determines the value of an integer element.


Syntax
public int getElemInt(int index);

index - The position of the element whose value the application wants to determine.


Usage
The first index position in the list is 0.


Return Value
An integer that contains the value.


getElemString()

Determines the value of a string element.


Syntax
public java.lang.String getElemString(int index);

index - The position of the element whose value the application wants to determine.


Usage
The first index position in the list is 0.


Return Value
A string that contains the value.


getElemType()

Determines the type of an element.


Syntax
public int getElemType(int index);

index - The position of the element whose value the application wants to determine.


Usage
The first index position in the list is 0.


Return Value
An integer value that specifies the type, which may be one of the following types:




Constant

Value

TN_BINARY.TN_BINARY  

5  

TN_DATAOBJECT.TN_DATAOBJECT  

128  

TN_DATAOBJECT_ARRAY.TN_DATAOBJECT_ARRAY  

161  

TN_DATAOBJECT_ARRAY_INFO.TN_DATAOBJECT_ARRAY_INFO  

211  

TN_DATAOBJECT_LIST.TN_DATAOBJECT_LIST  

160  

TN_DATAOBJECT_LIST_INFO.TN_DATAOBJECT_LIST_INFO  

210  

TN_DATAOBJECT_PRIM_INFO.TN_DATAOBJECT_PRIM_INFO  

209  

TN_DATAOBJECT_STRUCT_INFO.TN_DATAOBJECT_STRUCT_INFO  

212  

TN_DOUBLE.TN_DOUBLE  

3  

TN_FLOAT.TN_FLOAT  

2  

TN_FSTRING.TN_FSTRING  

6  

TN_STRING.TN_STRING  

4  

TN_UNDEFINED.TN_UNDEFINED  

0  

TN_VBINARY.TN_VBINARY  

7  


getElemVBinary()

Determines the value of a variable size byte array element.


Syntax
public byte[] getElemVBinary(int index);

index - The position of the element whose value the application wants to determine.


Variable Size Usage
The first index position in the list is 0.


Return Value
A byte array that contains the value.


getElemVBinarySize()

Determines the size of a variable byte array element.


Syntax
public int getElemVBinarySize(int index);

index - The position of the element whose value the application wants to determine.


Usage
The first index position in the list is 0.


Return Value
An integer that contains the size, in bytes.


getMaxElemCount()

Determines the maximum number of elements in the list.


Syntax
public int getMaxElemCount();


Return Value
An integer that contains the number of elements.


isElemType()

Compares the element with the specified type.


Syntax
public boolean isElemType(int index,int typeNumber);

index - The position of the element whose value the application wants to determine.

typeNumber - The type with which the application wants to compare this element.


Usage
The first index position in the list is 0. The type may be one of the following:




Constant

Value

TN_BINARY.TN_BINARY  

5  

TN_DATAOBJECT.TN_DATAOBJECT  

128  

TN_DATAOBJECT_ARRAY.TN_DATAOBJECT_ARRAY  

161  

TN_DATAOBJECT_ARRAY_INFO.TN_DATAOBJECT_ARRAY_INFO  

211  

TN_DATAOBJECT_LIST.TN_DATAOBJECT_LIST  

160  

TN_DATAOBJECT_LIST_INFO.TN_DATAOBJECT_LIST_INFO  

210  

TN_DATAOBJECT_PRIM_INFO.TN_DATAOBJECT_PRIM_INFO  

209  

TN_DATAOBJECT_STRUCT_INFO.TN_DATAOBJECT_STRUCT_INFO  

212  

TN_DOUBLE.TN_DOUBLE  

3  

TN_FLOAT.TN_FLOAT  

2  

TN_FSTRING.TN_FSTRING  

6  

TN_STRING.TN_STRING  

4  

TN_UNDEFINED.TN_UNDEFINED  

0  

TN_VBINARY.TN_VBINARY  

7  

The application should always use a constant instead of a value in its Servlet, JSP, or EJB.


Return Value
A boolean value that is true if the type of the element matches the specified type; otherwise, it is false.


removeElem()

Removes an element in the list.


Syntax
public int removeElem(int index);

index - The position of the element to remove.


Usage
Elements after the element that was removed are moved down by one position in the list; for example, if the application removes element 0, all elements are shifted down by one such that element 1 becomes element 0, element 2 becomes element 1, and so on. The first index position in the list is 0.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setElemBinary()

Sets the value of a binary number element.


Syntax
public int setElemBinary(int index, byte[] buf);

index - The position of the element whose value the application wants to set.

buf - The value with which to set the object.


Usage
The first index position in the list is 0.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setElemDataObject()

Sets the data object stored in an element.


Syntax
public int setElemDataObject(int index,
      netscape.bsp.dataobject.IBSPDataObject value);

index - The position of the element whose value the application wants to set.

value - The value with which to set the element.


Usage
A value for a primitive data type is unwrapped and copied when it is set in the object; in other words, the value is stored in the object, not an object that contains the value. Otherwise, the data object itself is set to the value. The first index position in the list is 0.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setElemDataObjectList()

Sets an element to a new empty list.


Syntax
public int setElemDataObjectList(int index);

index - The position of the element to set.


Usage
An empty list is created at the specified index. The first index position in the list is 0.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setElemDataObjectStructure()

Sets an element to a new empty structure.


Syntax
public int setElemDataObjectStructure(int index);

index - The position of the element to set.


Usage
An empty structure is created at the specified index. The first index position in the list is 0.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setElemDouble()

Sets the value of a double precision floating point number element.


Syntax
public int setElemDouble(int index, double value);

index - The position of the element whose value the application wants to set.

value - The value with which to set the element.


Usage
The first index position in the list is 0.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setElemFloat()

Sets the value of a floating point number element.


Syntax
public int setElemFloat(int index, float value);

index - The position of the element whose value the application wants to set.

value - The value with which to set the element.


Usage
The first index position in the list is 0.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setElemFString()

Sets the value of a fixed length string element.


Syntax
public
int setElemFString(int index, java.lang.String stringValue);

index - The position of the element whose value the application wants to set.

stringValue - The value with which to set the element.


Usage
The first index position in the list is 0.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setElemInt()

Sets the value of an integer element.


Syntax
public int setElemInt(int index, int intValue);

index - The position of the element whose value the application wants to set.

intValue - The value with which to set the element.


Usage
The first index position in the list is 0.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setElemString()

Sets the value of a string element.


Syntax
public
int setElemString(int index, java.lang.String stringValue);

index - The position of the element whose value the application wants to set.

stringValue - The value with which to set the element.


Usage
The first index position in the list is 0.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setElemVBinary()

Sets the value of a variable size byte array element.


Syntax
public int setElemBinary(int index, byte[] buf);

index - The position of the element whose value the application wants to set.

buf - The value with which to set the element.


Usage
The first index position in the list is 0.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setMaxElemCount()

Specifies the maximum number of elements in the list.


Syntax
public int setMaxElemCount(int maxElemCount);

maxElemCount - The maximum number of elements the application wants to specify.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails



IBSPDataObjectArray Interface

The IBSPDataObjectArray interface extends the IBSPDataObjectList interface to provide methods for accessing homogeneous data objects; an array's elements are homogeneous. An IBSPDataObjectInfo object is associated with an array to define the type of objects that the array contains.


Package

netscape.bsp.dataobject


Methods




Method

Description

addElem()  

Add an element to an array.  

getElemTypeInfo()  

Determine the type information associated with an array.  


addElem()

Add an element to an array.


Syntax
public int addElem();


Usage
The method creates an instance of the element type info object and adds it to the array. The data type of the element added is determined by the type information object associated with this array.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


getElemTypeInfo()

Determine the type information associated with an array.


Syntax
public
netscape.bsp.dataobject.IBSPDataObjectInfo getElemTypeInfo();


Return Value
An IBSPDataObjectInfo object that contains the type information.



IBSPDataObjectStructure Interface



The IBSPDataObjectStructure interface defines methods for accessing fields in a structure.


Package

netscape.bsp.dataobject


Access Methods




Method

Description

getField()  

Determines the value of a field.  

getFieldBinary()  

Determines the value of a byte array field.  

getFieldDouble()  

Determines the value of a double precision floating point number field.  

getFieldFloat()  

Determines the value of a floating point number field.  

getFieldFString()  

Determines the value of a fixed length string field.  

getFieldDataObject()  

Determines the data object stored in an field.  

getFieldInt()  

Determines the value of an integer field.  

getFieldString()  

Determines the value of a string field.  

getFieldVBinary()  

Determines the value of a variable size byte array field.  

setFieldBinary()  

Sets the value of a binary number field.  

setFieldDataObject()  

Sets the data object stored in an field.  

setFieldDataObjectList()  

Sets an element to a new empty list.  

setFieldDataObjectStructure()  

Sets an element to a new empty structure.  

setFieldDouble()  

Sets the value of a double precision floating point number. field.  

setFieldFloat()  

Sets the value of a floating point number field.  

setFieldFString()  

Sets the value of a fixed length string field.  

setFieldInt()  

Sets the value of an integer field.  

setFieldString()  

Sets the value of a string field.  

setFieldVBinary()  

Sets the value of a variable size byte array field.  


Other Methods




Method

Description

fieldExists()  

Determines whether a field exists in the instance.  

fieldIsDefined()  

Determines whether a field is defined in the repository.  

getFieldBinarySize()  

Determines the size of a byte array field.  

getFieldCount()  

Determines the current number of fields in the structure.  

getFieldFStringMaxLen()  

Determines the maximum length of a fixed length string field.  

getFieldType()  

Determines the type of a field.  

getFieldVBinarySize()  

Determines the size of a variable byte array field.  

isFieldType()  

Compares the field type with the specified type.  

removeField()  

Removes a field.  


fieldExists()

Determines whether a field exists in the instance.


Syntax
public boolean fieldExists(java.lang.String fieldName);

fieldName - The name of the field to test.


Usage
A field exists if its value exists in the object.


Return Value
A boolean value that is true if the field exists; otherwise, it is false.


fieldIsDefined()

Determines whether a field is defined in the repository.


Syntax
public boolean fieldIsDefined(java.lang.String fieldName);

fieldName - The name of the field to test.


Usage
A field is defined if its type information is defined in the repository.


Return Value
A boolean value that is true if the field is defined; otherwise, it is false.


getField()

Determines the value of a field.


Syntax
public netscape.bsp.dataobject.IBSPDataObject getField(
      java.lang.String fieldName);

fieldName - The name of the field whose value the application wants to determine.


Usage
If the returned value is of a primitive data type, it is copied into a new primitive data object and the primitive data object is returned; otherwise, a reference to the data object is returned.


Return Value
An IBSPDataObject object that contains the value.


getFieldBinary()

Determines the value of a byte array field.


Syntax
public byte[] getFieldBinary(java.lang.String fieldName);

fieldName - The name of the field whose value the application wants to determine.


Return Value
A byte array that contains the value.


getFieldBinarySize()

Determine the size of a byte array field.


Syntax
public int getFieldBinarySize(java.lang.String fieldName);

fieldName - The name of the field whose value the application wants to determine.


Return Value
An integer that contains the size, in bytes.


getFieldCount()

Determines the current number of fields in the structure.


Syntax
public int getFieldCount();


Return Value
An integer that contains the number of fields.


getFieldDataObject()

Determines the data object stored in an field.


Syntax
public
netscape.bsp.dataobject.IBSPDataObject getFieldDataObject(
      java.lang.String fieldName);

fieldName - The name of the field whose value the application wants to determine.


Return Value
An IBSPDataObject object.


getFieldDouble()

Determines the value of a double precision floating point number field.


Syntax
public double getFieldDouble(java.lang.String fieldName);

fieldName - The name of the field whose value the application wants to determine.


Return Value
A double precision floating point number that contains the value.


getFieldFloat()

Determines the value of a floating point number field.


Syntax
public float getFieldFloat(java.lang.String fieldName);

fieldName - The name of the field whose value the application wants to determine.


Return Value
A floating point number that contains the value.


getFieldFString()

Determines the value of a fixed length string field.


Syntax
public java.lang.String getFieldFString(java.lang.String fieldName);

fieldName - The name of the field whose value the application wants to determine.


Return Value
A string that contains the value.


getFieldFStringMaxLen()

Determines the maximum length of a fixed length string field.


Syntax
public int getFieldFStringMaxLen(java.lang.String fieldName);

fieldName - The name of the field whose size the application wants to determine.


Return Value
An integer that contains the size, in bytes.


getFieldInt()

Determines the value of an integer field.


Syntax
public int getFieldInt(java.lang.String fieldName);

fieldName - The name of the field whose value the application wants to determine.


Return Value
An integer that contains the value.


getFieldString()

Determines the value of a string field.


Syntax
public
java.lang.String getFieldString(java.lang.String fieldName);

fieldName - The name of the field whose value the application wants to determine.


Return Value
A string that contains the value.


getFieldType()

Determines the type of a field.


Syntax
public int getFieldType(java.lang.String fieldName);

fieldName - The name of the field whose value the application wants to determine.


Usage
The first index position in the list is 0.


Return Value
An integer value that specifies the type, which may be one of the following types:




Constant

Value

TN_BINARY.TN_BINARY  

5  

TN_DATAOBJECT.TN_DATAOBJECT  

128  

TN_DATAOBJECT_ARRAY.TN_DATAOBJECT_ARRAY  

161  

TN_DATAOBJECT_ARRAY_INFO.TN_DATAOBJECT_ARRAY_INFO  

211  

TN_DATAOBJECT_LIST.TN_DATAOBJECT_LIST  

160  

TN_DATAOBJECT_LIST_INFO.TN_DATAOBJECT_LIST_INFO  

210  

TN_DATAOBJECT_PRIM_INFO.TN_DATAOBJECT_PRIM_INFO  

209  

TN_DATAOBJECT_STRUCT_INFO.TN_DATAOBJECT_STRUCT_INFO  

212  

TN_DOUBLE.TN_DOUBLE  

3  

TN_FLOAT.TN_FLOAT  

2  

TN_FSTRING.TN_FSTRING  

6  

TN_STRING.TN_STRING  

4  

TN_UNDEFINED.TN_UNDEFINED  

0  

TN_VBINARY.TN_VBINARY  

7  


getFieldVBinary()

Determines the value of a variable size byte array field.


Syntax
public byte[] getFieldVBinary(java.lang.String fieldName);

fieldName - The name of the field whose value the application wants to determine.


Return Value
A byte array that contains the value.


getFieldVBinarySize()

Determines the size of a variablebyte array field.


Syntax
public int getFieldVBinarySize(java.lang.String fieldName);

fieldName - The name of the field whose value the application wants to determine.


Return Value
An integer that contains the size, in bytes.


isFieldType()

Compares the field type with the specified type.


Syntax
public boolean isFieldType(java.lang.String fieldName,
      int typeNumber);

fieldName - The name of the field whose value the application wants to determine.

typeNumber - The type with which the application wants to compare this element.


Usage
The first index position in the list is 0. The type may be one of the following:




Constant

Value

TN_BINARY.TN_BINARY  

5  

TN_DATAOBJECT.TN_DATAOBJECT  

128  

TN_DATAOBJECT_ARRAY.TN_DATAOBJECT_ARRAY  

161  

TN_DATAOBJECT_ARRAY_INFO.TN_DATAOBJECT_ARRAY_INFO  

211  

TN_DATAOBJECT_LIST.TN_DATAOBJECT_LIST  

160  

TN_DATAOBJECT_LIST_INFO.TN_DATAOBJECT_LIST_INFO  

210  

TN_DATAOBJECT_PRIM_INFO.TN_DATAOBJECT_PRIM_INFO  

209  

TN_DATAOBJECT_STRUCT_INFO.TN_DATAOBJECT_STRUCT_INFO  

212  

TN_DOUBLE.TN_DOUBLE  

3  

TN_FLOAT.TN_FLOAT  

2  

TN_FSTRING.TN_FSTRING  

6  

TN_STRING.TN_STRING  

4  

TN_UNDEFINED.TN_UNDEFINED  

0  

TN_VBINARY.TN_VBINARY  

7  

The application should always use a constant instead of a value in its Servlet, JSP, or EJB; values are subject to change.


Return Value
A boolean value that is true if the type of the element matches the specified type; otherwise, it is false.


removeField()

Removes a field.


Syntax
public int removeField(java.lang.String fieldName);

fieldName - The name of the field the application wants to remove.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setFieldBinary()

Sets the value of a binary number field.


Syntax
public
int setFieldBinary(java.lang.String fieldName, byte[] buf);

fieldName - The name of the field whose value the application wants to set.

buf - The value with which to set the field.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setFieldDataObject()

Sets the data object stored in an field.


Syntax
public int setFieldDataObject(java.lang.String fieldName,
      netscape.bsp.dataobject.IBSPDataObject value;

fieldName - The name of the field whose value the application wants to set.

value - The value with which to set the field.


Usage
A value for a primitive data type is unwrapped and copied when it is set in the object; in other words, the value is stored in the object, not an object that contains the value. Otherwise, the data object itself is set to the value.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setFieldDataObjectList()

Sets an element to a new empty list.


Syntax
public int setFieldDataObjectList(java.lang.String fieldName);

fieldName - The name of the field whose value the application wants to set.


Usage
An empty list is created in the specified field.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setFieldDataObjectStructure()

Sets an element to a new empty structure.


Syntax
public
int setFieldDataObjectStructure(java.lang.String fieldName);

fieldName - The name of the field whose value the application wants to set.


Usage
An empty structure is created in the specified field.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setFieldDouble()

Sets the value of a double precision floating point number. field.


Syntax
public
int setFieldDouble(java.lang.String fieldName, double value);

fieldName - The name of the field whose value the application wants to set.

value - The value with which to set the field.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setFieldFloat()

Sets the value of a floating point number field.


Syntax
public
int setFieldFloat(java.lang.String fieldName, float value);

fieldName - The name of the field whose value the application wants to set.

value - The value with which to set the field.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setFieldFString()

Sets the value of a fixed length string field.


Syntax
public
int setFieldFString(java.lang.String fieldName,
      java.lang.String stringValue);

fieldName - The name of the field whose value the application wants to set.

stringValue - The value with which to set the field.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setFieldInt()

Sets the value of an integer field.


Syntax
public
int setFieldInt(java.lang.String fieldName, int intValue);

fieldName - The name of the field whose value the application wants to set.

intValue - The value with which to set the field.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setFieldString()

Sets the value of a string field.


Syntax
public int setFieldString( java.lang.String fieldName,
      java.lang.String stringValue);

fieldName - The name of the field whose value the application wants to set.

stringValue - The value with which to set the field.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setFieldVBinary()

Sets the value of a variable size byte array field.


Syntax
public
int setFieldBinary(java.lang.String fieldName, byte[] buf);

fieldName - The name of the field whose value the application wants to set.

buf - The value with which to set the field.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails



IBSPDataObjectStructureInfo Interface

The IBSPDataObjectStructureInfo interface defines methods for obtaining information about a IBSPDataObjectStructure object.


Package

netscape.bsp.dataobject


Methods




Method

Description

definesField()  

Determines if a field is defined in the structure information.  

getFieldInfo()  

Determines the field information for a field in a structure object.  

getFields()  

Determines which fields are in a structure object.  


definesField()

Determines if a field is defined in the structure information.


Syntax
public boolean definesField(java.lang.String fieldName);

fieldName - The name of the field to test.


Return Value
A boolean value that is true if the field is defined; otherwise, it is false.


getFieldInfo()

Determines the field information for a field in a structure object.


Syntax
public netscape.bsp.dataobject.IBSPDataObjectInfo getFieldInfo(
      java.lang.String fieldName);

fieldName - The name of the field whose information the application wants to obtain.


Return Value
A IBSPDataObject object the contains the field information.


getFields()

Determines which fields are in a structure object.


Syntax
public netscape.bsp.dataobject.IBSPDataObjectStructure getFields);


Return Value
A IBSPDataObjectStructure object the contains the fields.



IBSPDataObjectInfo Interface



The IBSPDataObjectInfo interface defines a method for creating an instance of a data object of the same type as the interface.


Package

netscape.bsp.dataobject


Methods




Method

Description

createInstance()  

Creates an instance of the IBSPDataObjectInfo object.  


createInstance()

Creates an instance of the IBSPDataObjectInfo object.


Syntax
public netscape.bsp.dataobject.IBSPDataObject createInstance();


Return Value
An instance of an IBSPDataObject object.



IBSPDataObjectListInfo Interface



The IBSPDataObjectListInfo interface defines methods for determining or specifying the initial size and maximum size of a list object.


Package

netscape.bsp.dataobject


Methods




Method

Description

getInitialSize()  

Determines the initial capacity of the list.  

getMaxElemCount()  

Determines the maximum number of elements.  

setInitialSize()  

Specifies the initial capacity of the list.  

setMaxElemCount()  

Specifies the maximum number of elements.  


getInitialSize()

Determines the initial capacity of the list.


Syntax
public int getInitialSize();


Return Value
An integer that contains the initial size of the list.


getMaxElemCount()

Determines the maximum number of elements.


Syntax
public int getInitialSize();


Return Value
An integer that contains the maximum size of the list.


setInitialSize()

Specifies the initial capacity of the list.


Syntax
public int setInitialSize(int intialSize);

initialSize - The initial capacity of the list.


Usage
The list does not physically grow until the capacity has been exceeded.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setMaxElemCount()

Specifies the maximum number of elements.


Syntax
public int setMaxElemCount(int maxElemCount);

maxElemCount - The maximum size of the list.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails



IBSPDataObjectArrayInfo Interface

The IBSPDataObjectArrayInfo interface extends the IBSPDataObjectListInfo interface to define methods for getting and setting the type of elements in the array and the info object associated with the array.


Package

netscape.bsp.dataobject


Methods




Method

Description

getArrayElemType()  

Determines the array's element type.  

getArrayElemTypeInfo()  

Retrieves the array's type info object.  

setArrayElemType()  

Specifies the array's element type.  

setArrayElemTypeInfo()  

Sets the array's type info object.  


getArrayElemType()

Determines the array's element type.


Syntax
public int getArrayElemType();


Usage
Use this method if the type is primitive; otherwise, use setArrayElemTypeInfo(). The element type may be one of the following:




Constant

Value

TN_BINARY.TN_BINARY  

5  

TN_DATAOBJECT.TN_DATAOBJECT  

128  

TN_DATAOBJECT_ARRAY.TN_DATAOBJECT_ARRAY  

161  

TN_DATAOBJECT_ARRAY_INFO.TN_DATAOBJECT_ARRAY_INFO  

211  

TN_DATAOBJECT_LIST.TN_DATAOBJECT_LIST  

160  

TN_DATAOBJECT_LIST_INFO.TN_DATAOBJECT_LIST_INFO  

210  

TN_DATAOBJECT_PRIM_INFO.TN_DATAOBJECT_PRIM_INFO  

209  

TN_DATAOBJECT_STRUCT_INFO.TN_DATAOBJECT_STRUCT_INFO  

212  

TN_DOUBLE.TN_DOUBLE  

3  

TN_FLOAT.TN_FLOAT  

2  

TN_FSTRING.TN_FSTRING  

6  

TN_STRING.TN_STRING  

4  

TN_UNDEFINED.TN_UNDEFINED  

0  

TN_VBINARY.TN_VBINARY  

7  

The application should always use a constant instead of a value in its Servlet, JSP, or EJB.


Return Value
An integer that contains the type number.


getArrayElemTypeInfo()

Retrieves the array's type info object.


Syntax
public netscape.bsp.dataobject.IBSPDataObjectInfo
      getArrayElemTypeInfo();


Return Value
An IBSPDataObjectInfo object.


setArrayElemType()

Specifies the array's element type.


Syntax
public int setArrayElemType(int elemTypeNumber);

elemTypeNumber - The type of elements in the array.


Usage
Use this method if the type is primitive; otherwise, use setArrayElemTypeInfo(). The element type may be one of the following:




Constant

Value

TN_BINARY.TN_BINARY  

5  

TN_DATAOBJECT.TN_DATAOBJECT  

128  

TN_DATAOBJECT_ARRAY.TN_DATAOBJECT_ARRAY  

161  

TN_DATAOBJECT_ARRAY_INFO.TN_DATAOBJECT_ARRAY_INFO  

211  

TN_DATAOBJECT_LIST.TN_DATAOBJECT_LIST  

160  

TN_DATAOBJECT_LIST_INFO.TN_DATAOBJECT_LIST_INFO  

210  

TN_DATAOBJECT_PRIM_INFO.TN_DATAOBJECT_PRIM_INFO  

209  

TN_DATAOBJECT_STRUCT_INFO.TN_DATAOBJECT_STRUCT_INFO  

212  

TN_DOUBLE.TN_DOUBLE  

3  

TN_FLOAT.TN_FLOAT  

2  

TN_FSTRING.TN_FSTRING  

6  

TN_STRING.TN_STRING  

4  

TN_UNDEFINED.TN_UNDEFINED  

0  

TN_VBINARY.TN_VBINARY  

7  

The application should always use a constant instead of a value in its Servlet, JSP, or EJB.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setArrayElemTypeInfo()

Sets the array's type info object.


Syntax
public int setArrayElemTypeInfo
      (netscape.bsp.dataobject.IBSPDataObjectInfo elemTypeInfo);

elemTypeInfo - The type info object to associate with this array.


Usage
Use this method if the type is not primitive; otherwise, use setArrayElemType(). This method calls setArrayElemType() to set the element type.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails



IBSPDataObjectDataItr Interface

The IBSPDataObjectDataItr interface defines methods for iterating over objects in a list, array, or structure. The application calls the next() method to move to the next position in the list, array, or structure. The application calls the getCurrentType() method to determine the type of object at the current location.


Package

netscape.bsp.dataobject


Accessor Methods




Method

Description

getCurrent()  

Determines the value of the attribute at the current position.  

getCurrentBinary()  

Determines the value of a byte array attribute at the current position.  

getCurrentDataObject()  

Determines the value of a data object attribute at the current position.  

getCurrentDouble()  

Determines the value of a double precision floating point number attribute at the current position.  

getCurrentFloat()  

Determines the value of a floating point number attribute at the current position.  

getCurrentFString()  

Determines the value of a fixed length string attribute at the current position.  

getCurrentInt()  

Determines the value of an integer attribute at the current position.  

getCurrentString()  

Determines the value of a string attribute at the current position.  

getCurrentVBinary()  

Determines the value of a variable length byte array attribute at the current position.  

setCurrentBinary()  

Specifies the value of a byte array attribute at the current position.  

setCurrentDataObject()  

Specifies the value of a data object attribute at the current position.  

setCurrentDouble()  

Specifies the value of a double precision floating point number attribute at the current position.  

setCurrentFloat()  

Specifies the value of a floating point number attribute at the current position.  

setCurrentFString()  

Specifies the value of a fixed length string attribute at the current position.  

setCurrentInt()  

Specifies the value of an integer attribute at the current position.  

setCurrentString()  

Specifies the value of a string attribute at the current position.  

setCurrentVBinary()  

Specifies the value of a variable length byte array attribute at the current position.  


Other Methods




Method

Description

getCurrentBinarySize()  

Determines the size of the byte array attribute at the current position.  

getCurrentFieldName()  

Determines the field name of the field at the current position.  

getCurrentType()  

Determines the type of the attribute at the current position.  

getCurrentVBinarySize()  

Determines the size of the variable length byte array attribute at the current position.  

isCurrentType()  

Compares the type of the attribute at the current position with the specified type.  

next()  

Advances the current position to the next attribute.  


getCurrent()

Determines the value of the attribute at the current position.


Syntax
public netscape.bsp.dataobject.IBSPDataObject getCurrent();


Usage
If the returned value is of a primitive data type, it is copied into a new primitive data object and the primitive data object is returned; otherwise, a reference to the data object is returned.


Return Value
An IBSPDataObject object that contains the value at the current position.


getCurrentBinary()

Determines the value of a byte array attribute at the current position.


Syntax
public byte[] getCurrentBinary();


Return Value
A byte array that contains the value.


getCurrentBinarySize()

Determines the size of the byte array attribute at the current position.


Syntax
public int getCurrentBinarySize();


Return Value
An integer that contains the size, in bytes.


getCurrentDataObject()

Determines the value of a data object attribute at the current position.


Syntax
public netscape.bsp.dataobject.IBSPDataObject
      getCurrentDataObject();


Return Value
An IBSPDataObject object.


getCurrentDouble()

Determines the value of a double precision floating point number attribute at the current position.


Syntax
public double getCurrentDouble();


Return Value
A double precision floating point number that contains the value.


getCurrentFieldName()

Determines the field name of the field at the current position.


Syntax
public java.lang.String getCurrentFieldName();


Usage
When iterating over a structure, the field name is returned. When iterating over a list or array, the element number is returned as a string enclosed in brackets; for example, [0] is returned for the first element.


Return Value
An string that contains the name.


getCurrentFloat()

Determines the value of a floating point number attribute at the current position.


Syntax
public float getCurrentFloat();


Return Value
A floating point number that contains the value.


getCurrentFString()

Determines the value of a fixed length string attribute at the current position.


Syntax
public java.lang.String getCurrentFString();


Return Value
A string that contains the value.


getCurrentInt()

Determines the value of an integer attribute at the current position.


Syntax
public int getCurrentInt();


Return Value
An integer that contains the value.


getCurrentString()

Determines the value of a string attribute at the current position.


Syntax
public java.lang.String getCurrentString();


Return Value
A string that contains the value.


getCurrentType()

Determines the type of the attribute at the current position.


Syntax
public int getCurrentType();


Return Value
An integer value that specifies the type. The type may be one of the following:




Constant

Value

TN_BINARY.TN_BINARY  

5  

TN_DATAOBJECT.TN_DATAOBJECT  

128  

TN_DATAOBJECT_ARRAY.TN_DATAOBJECT_ARRAY  

161  

TN_DATAOBJECT_ARRAY_INFO.TN_DATAOBJECT_ARRAY_INFO  

211  

TN_DATAOBJECT_LIST.TN_DATAOBJECT_LIST  

160  

TN_DATAOBJECT_LIST_INFO.TN_DATAOBJECT_LIST_INFO  

210  

TN_DATAOBJECT_PRIM_INFO.TN_DATAOBJECT_PRIM_INFO  

209  

TN_DATAOBJECT_STRUCT_INFO.TN_DATAOBJECT_STRUCT_INFO  

212  

TN_DOUBLE.TN_DOUBLE  

3  

TN_FLOAT.TN_FLOAT  

2  

TN_FSTRING.TN_FSTRING  

6  

TN_STRING.TN_STRING  

4  

TN_UNDEFINED.TN_UNDEFINED  

0  

TN_VBINARY.TN_VBINARY  

7  


getCurrentVBinary()

Determines the value of a variable length byte array attribute at the current position.


Syntax
public byte[] getCurrentBinary();


Return Value
A byte array that contains the value.


getCurrentVBinarySize()

Determines the size of the variable length byte array attribute at the current position.


Syntax
public int getCurrentVBinarySize();


Return Value
An integer that contains the size, in bytes.


isCurrentType()

Compares the type of the attribute at the current position with the specified type.


Syntax
public boolean isCurrentType(int typeNumber);

TypeNumber - The type with which the application wants to compare the attribute at this position.


Usage
The type may be one of the following:




Constant

Value

TN_BINARY.TN_BINARY  

5  

TN_DATAOBJECT.TN_DATAOBJECT  

128  

TN_DATAOBJECT_ARRAY.TN_DATAOBJECT_ARRAY  

161  

TN_DATAOBJECT_ARRAY_INFO.TN_DATAOBJECT_ARRAY_INFO  

211  

TN_DATAOBJECT_LIST.TN_DATAOBJECT_LIST  

160  

TN_DATAOBJECT_LIST_INFO.TN_DATAOBJECT_LIST_INFO  

210  

TN_DATAOBJECT_PRIM_INFO.TN_DATAOBJECT_PRIM_INFO  

209  

TN_DATAOBJECT_STRUCT_INFO.TN_DATAOBJECT_STRUCT_INFO  

212  

TN_DOUBLE.TN_DOUBLE  

3  

TN_FLOAT.TN_FLOAT  

2  

TN_FSTRING.TN_FSTRING  

6  

TN_STRING.TN_STRING  

4  

TN_UNDEFINED.TN_UNDEFINED  

0  

TN_VBINARY.TN_VBINARY  

7  

The application should always use a constant instead of a value in its Servlet, JSP, or EJB.


Return Value
A boolean value that is true if the type of the attribute matches the specified type; otherwise, it is false.


next()

Advances the current position to the next attribute.


Syntax
public boolean next();


Usage
Use the next() method to advance the current position to the next one in the list or structure. After the application calls next() the first time, the current position becomes 0.


Return Value
A boolean value that is true if there are more attributes in the list or structure; it is false if the current position is the last position in the list or structure.


setCurrentBinary()

Specifies the value of a byte array attribute at the current position.


Syntax
public int setCurrentBinary(byte[] buf);

buf - The value with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setCurrentDataObject()

Specifies the value of a data object attribute at the current position.


Syntax
public int setCurrentDataObject(
      netscape.bsp.dataobject.IBSPDataObject value);

value - The value with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setCurrentDouble()

Specifies the value of a double precision floating point number attribute at the current position.


Syntax
public int setCurrentDouble(double value);

value - The double precision floating point number with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setCurrentFloat()

Specifies the value of a floating point number attribute at the current position.


Syntax
public int setCurrentFloat(float value);

value - The floating point number with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setCurrentFString()

Specifies the value of a fixed length string attribute at the current position.


Syntax
public int setCurrentFString(java.lang.String value);

value - The string value with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setCurrentInt()

Specifies the value of an integer attribute at the current position.


Syntax
public int setCurrentInt(int value);

value - The floating point number with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setCurrentString()

Specifies the value of a string attribute at the current position.


Syntax
public int setCurrentString(java.lang.String value);

value - The string value with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails


setCurrentVBinary()

Specifies the value of a string attribute at the current position.


Syntax
public int setCurrentVBinary(byte[] buf);

buf - The value with which to set the attribute.


Return Value
An integer that contains:

GXE.SUCCESS - if the operation is successful

GXE.FAIL - if the operation fails



BspException Class

The netscape.bsp.BspException exception extends the java.lang.RuntimeException. All exceptions thrown in UIF and the enterprise connector extend the netscape.bsp.BspException class.


Package

netscape.bsp


Methods




Method

Description

getInfo()  

Gets the exception details information on the Exception  


getInfo()

Gets the exception information details.


Syntax
public IBSPDataObjectStructure getInfo();


Return Value
IBSPDataObjectStructure object containing the exception information.



DataObjectException Class



The DataObjectException exception is thrown when a data object exception occurs in the UIF runtime. DataObjectException extends netscape.bsp.BspException. Note that all data object exceptions extend the DataObjectException interface.


Package

netscape.bsp.dataobject.exceptions



FieldNameIsNullException Class



The FieldNameIsNullException is thrown when a data object field name being accesed is null. Please check the UIF Repository contents to determine the availability of the field being accessed and make sure a name is assigned to a field.


Package

netscape.bsp.dataobject.exceptions



FieldNameTooLongException Class



The FieldNameTooLongException exception is thrown when a data object field is being accessed whose name is too long. The maximum field length allowed is 64. Please check the UIF repository content and modify the name accordingly.


Package

netscape.bsp.dataobject.exceptions



FieldNotFoundException Class



The FieldNotFoundException exception is thrown when a data object field or the data object is not found in the repository. Check the UIF Repository content and make sure the field being accessed exist in the UIF Repository.


Package

netscape.bsp.dataobject.exceptions



IllegalPathException Class



The IllegalPathException exception is thrown when a data object or data object field name is specified wrong. Please verify the application against the UIF Repository contents and modify the application accordingly.


Package

netscape.bsp.dataobject.exceptions



IllegalRecusionException Class



The IllegalRecusionException exception is thrown when data objects are being accessed in the wrong manner. Please refer to Chapter 5 "Programming Model" for more details on the illegal data object recursions.


Package

netscape.bsp.dataobject.exceptions



IndexOutOfBoundsException Class



The IndexOutOfBoundsException exception is thrown when the application tries to traverse a non existing index.


Package

netscape.bsp.dataobject.exceptions



MethodUnsupportedException Class



The MethodUnsupportedException exception is thrown when the application tries to access a method that is unsupported on a given data object.


Package

netscape.bsp.dataobject.exceptions



TypeMismatchException Class



The TypeMismatchException exception is thrown when a type mismatch in the data object values are being set by the application. Please check the data type in the UIF Repository and set the values accordingly.


Package

netscape.bsp.dataobject.exceptions


Previous     Contents     Index     DocHome     Next     
Copyright © 2000 Sun Microsystems, Inc. Some preexisting portions Copyright © 2000 Netscape Communications Corp. All rights reserved.

Last Updated October 19, 2000