Connection object (Object/NES)

An object that represents a connection from the server to the back-end database.

Availability:

JavaScript - 1.2
Netscape Enterprise Server - 3.0
JavaScript syntax:NESmyConnection = myDbPool.connection(aName, aTimeout)
Argument list:aNameA connection name
aTimeoutTimeout in seconds
Object properties:prototype
Object methods:beginTransaction(), commitTransaction(), connected(), cursor(), execute(), majorErrorCode(), majorErrorMessage(), minorErrorCode(), minorErrorMessage(), release(), rollbackTransaction(), SQLTable(), storedProc(), toString()

This object is used to maintain the connection state details between the Netscape Enterprise Server and the backend database it is retrieving data from.

A connection object is created by calling the connection() method of the DbPool object.

Example code:

   <SERVER>
   // An example of how to create a connection object
   // Based on the one in Wrox Professional JavaScript
   myDbPool     = new DbPool("ODBC", "myDatabase", "", "", "");
   myConnection = myDbPool.connection("ExampleConnection", 30);
   myConnection.SQLTable("SELECT * FROM MY_TABLE");
   </SERVER>

See also:DbPool.connection(), Netscape Enterprise Server, unwatch(), watch()

PropertyJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
prototype1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-

MethodJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
beginTransaction()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
commitTransaction()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
connected()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
cursor()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
execute()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
majorErrorCode()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
majorErrorMessage()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
minorErrorCode()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
minorErrorMessage()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
release()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
rollbackTransaction()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
SQLTable()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
storedProc()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/aWarning
toString()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-