| Availability: |
| |||
| JavaScript syntax: | NES | myConnection = myDbPool.connection(aName, aTimeout) | ||
| Argument list: | aName | A connection name | ||
| aTimeout | Timeout 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.
<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>| Property | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
|---|---|---|---|---|---|---|---|---|---|---|---|
| prototype | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
| Method | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
|---|---|---|---|---|---|---|---|---|---|---|---|
| beginTransaction() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
| commitTransaction() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
| connected() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
| cursor() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
| execute() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
| majorErrorCode() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
| majorErrorMessage() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
| minorErrorCode() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
| minorErrorMessage() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
| release() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
| rollbackTransaction() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
| SQLTable() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
| storedProc() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| toString() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
| Prev | Home | Next |
| Conformance | Up | Connection.beginTransaction() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. | ||