13.08.2012 Views

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>ACTIONSCRIPT</strong> 3.0 DEVELOPER’S GUIDE<br />

Working with local SQL databases in AIR<br />

Class Description<br />

flash.data.SQLViewSchema Provides information describing a single view in a database.<br />

flash.data.SQLIndexSchema Provides information describing a single column of a table or view in a database.<br />

flash.data.SQLTriggerSchem<br />

a<br />

Other classes in the flash.data package provide constants that are used with the SQLConnection class and the<br />

SQLColumnSchema class:<br />

Class Description<br />

In addition, the following classes in the flash.ev<strong>en</strong>ts package repres<strong>en</strong>t the ev<strong>en</strong>ts (and supporting constants) that you use:<br />

Finally, the following classes in the flash.errors package provide information about database operation errors:<br />

About synchronous and asynchronous execution modes<br />

Adobe AIR 1.0 and later<br />

Provides information describing a single trigger in a database.<br />

flash.data.SQLMode Defines a set of constants repres<strong>en</strong>ting the possible values for the op<strong>en</strong>Mode parameter of the<br />

SQLConnection.op<strong>en</strong>() and SQLConnection.op<strong>en</strong>Async() methods.<br />

flash.data.SQLColumnNameStyle Defines a set of constants repres<strong>en</strong>ting the possible values for the SQLConnection.columnNameStyle<br />

property.<br />

flash.data.SQLTransactionLockType Defines a set of constants repres<strong>en</strong>ting the possible values for the option parameter of the<br />

SQLConnection.begin() method.<br />

flash.data.SQLCollationType Defines a set of constants repres<strong>en</strong>ting the possible values for the<br />

SQLColumnSchema.defaultCollationType property and the defaultCollationType parameter<br />

of the SQLColumnSchema() constructor.<br />

Class Description<br />

flash.ev<strong>en</strong>ts.SQLEv<strong>en</strong>t Defines the ev<strong>en</strong>ts that a SQLConnection or SQLStatem<strong>en</strong>t instance dispatches wh<strong>en</strong> any of its operations<br />

execute successfully. Each operation has an associated ev<strong>en</strong>t type constant defined in the SQLEv<strong>en</strong>t class.<br />

flash.ev<strong>en</strong>ts.SQLErrorEv<strong>en</strong>t Defines the ev<strong>en</strong>t that a SQLConnection or SQLStatem<strong>en</strong>t instance dispatches wh<strong>en</strong> any of its operations<br />

results in an error.<br />

flash.ev<strong>en</strong>ts.SQLUpdateEv<strong>en</strong><br />

t<br />

Class Description<br />

Defines the ev<strong>en</strong>t that a SQLConnection instances dispatches wh<strong>en</strong> table data in one of its connected<br />

databases changes as a result of an INSERT, UPDATE, or DELETE SQL statem<strong>en</strong>t being executed.<br />

flash.errors.SQLError Provides information about a database operation error, including the operation that was being attempted<br />

and the cause of the failure.<br />

flash.errors.SQLErrorOperati<br />

on<br />

Defines a set of constants repres<strong>en</strong>ting the possible values for the SQLError class’s operation property,<br />

which indicates the database operation that resulted in an error.<br />

Wh<strong>en</strong> you’re writing code to work with a local SQL database, you specify that database operations execution in one of<br />

two execution modes: asynchronous or synchronous execution mode. In g<strong>en</strong>eral, the code examples show how to<br />

perform each operation in both ways, so that you can use the example that’s most appropriate for your needs.<br />

Last updated 6/6/2012<br />

716

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!