Connect for J.D. Edwards OneWorld User's Guide

APPENDIX A

ECMAScript Methods

The J2EE Connector framework of the exteNd Composer Connect for J.D. Edwards OneWorld implements a number of ECMAScript extension methods that are available for use through the Expression Builder (which is available in Function Actions and elsewhere). You will find the methods listed in the Functions/Methods pane of the Expression Builder:

ECMA

ToolTip help is available for each method.

For more information about working with the Expression Builder, see "Custom Scripting and XPath Logic in exteNd Composer" in the Novell exteNd Composer User's Guide.

 
Top of page

Adapter Interface Methods

 
Top of section

getAdapterType

This method calls the IGNVAdapterInterface.getAdapterType(), and returns the adapter type name (e.g., "jde").

Syntax: getAdapterType()

 
Top of page

Connection Interface Methods

The following CCI API metadata-wrapped methods are published through the Expression Builder.

 
Top of section

getAdapterMetaData

This method wraps calls on the javax.resource.cci.ResourceAdapterMetaData class.

Syntax:getAdapterMetaData(parameter)

Table 1: Parameters for getAdapterMetaData  

Parameter

Description

NAME

Returns the name of the adapter (e.g., "iWay JCA adapter").

EXECUTEWITHI

Returns true if the implementation class for the Interaction interface implements public Record execute method; otherwise the method returns false.

EXECUTEWITHIO

Returns true if the implementation class for the Interaction interface implements public boolean execute method; otherwise the method returns false.

VENDOR

Returns the name of the vendor that has provided the resource adapter (e.g., "iWay Software, Inc.").

VERSION

Returns the version of the resource adapter (e.g., "5.5").

INTERACTIONSPECS

Returns the fully-qualified name of the InteractionSpec type supported by this resource adapter (e.g., "com.ibi.afjca.IWAFInteractionSpec").

SPECVERSION

Returns a string representation of the version of the connector architecture specification that is supported by the resource adapter (e.g., "1.0").

LOCALTX

Returns true if the resource adapter implements the LocalTransaction interface and supports local transaction demarcation on the underlying EIS (Enterprise Information System) instance through the LocalTransaction interface.

 
Top of section

getConnectionMetaData

This method wraps calls on the javax.resource.cci.ConnectionMetaData class.

Syntax:getConnectionMetaData(parameter)

Table 2: Parameters for getConnectionMetaData

Parameter

Description

EISPRODUCTNAME

Returns the product name of the underlying EIS instance (e.g., "JDEdwards").

EISPRODUCTVERSION

Returns product version of the underlying EIS instance (e.g., "OneWorld").

USER

Returns the user name for an active connection as known to the underlying EIS instance.

 
Top of page

Additional Methods

The following ECMA-wrapped methods are not displayed by the Expression Builder user interface, but you can use them in the Expression Builder by typing them directly into expressions.

 
Top of section

getWarnings()

Returns line separated list of javax.resource.cci.ResourceWarning for the javax.resource.cci.Interaction.

 
Top of section

clearWarnings()

Calls javax.resource.cci.Interaction.clearWarnings().

 
Top of section

getLastError()

Returns last error, such as a javax.resource.ResourceException.




Copyright © 2004-2005 Novell, Inc. All rights reserved. Copyright © 1997, 1998, 1999, 2000, 2001, 2002, 2003 SilverStream Software, LLC. All rights reserved.  more ...