Cursor object (Object/NES)

This object encapsulates a cursor that was returned from the database as a result of an SQL query.

Availability:

JavaScript - 1.1
Netscape Enterprise Server - 2.0
JavaScript syntax:NESmyCursor = Connection.cursor(aQuery)
NESmyCursor = Database.cursor(aQuery)
Argument list:aQueryA valid SQL query for the database
Object properties:<column_name>
Object methods:blobImage(), blobLink(), close(), columnName(), columns(), deleteRow(), insertRow(), next(), updateRow()

You can construct a cursor object by requesting it via the Connection object or database object, both of which have cursor methods.

Example code:

   <SERVER>
   // An example cursor retrieved from a database
   // Based on the example from Wrox Professional JavaScript
   database.connect("ODBC", "myDatabase", "", "", "");
   myCursor = database.cursor("SELECT * FROM MY_TABLE");
   </SERVER>

See also:Connection.cursor(), database object, database.cursor(), Netscape Enterprise Server, unwatch(), watch()

PropertyJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
<column_name>1.1 1.1 n/a n/a n/a n/a2.0 2.0 n/a n/a n/a n/a-

MethodJavaScriptJScriptNIEOperaNESECMADOM           CSSHTMLNotes
blobImage()1.1 1.1 n/a n/a n/a n/a2.0 2.0 n/a n/a            n/a n/a-
blobLink()1.1 1.1 n/a n/a n/a n/a2.0 2.0 n/a n/a            n/a n/a-
close()1.1 1.1 n/a n/a n/a n/a2.0 2.0 n/a n/a            n/a n/a-
columnName()1.1 1.1 n/a n/a n/a n/a2.0 2.0 n/a n/a            n/a n/a-
columns()1.1 1.1 n/a n/a n/a n/a2.0 2.0 n/a n/a            n/a n/a-
deleteRow()1.1 1.1 n/a n/a n/a n/a2.0 2.0 n/a n/a            n/a n/a-
insertRow()1.1 1.1 n/a n/a n/a n/a2.0 2.0 n/a n/a            n/a n/a-
next()1.1 1.1 n/a n/a n/a n/a2.0 2.0 n/a n/a            n/a n/a-
updateRow()1.1 1.1 n/a n/a n/a n/a2.0 2.0 n/a n/a            n/a n/a-