flash.data

# SQLTransactionLockType - AS3

Package | flash.data
Class | public class SQLTransactionLockType
Inheritance | SQLTransactionLockType Object

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0

This class contains the constants that represent the possible values for the `option` parameter of the `SQLConnection.begin()` method.

Related API Elements

flash.data.SQLConnection.begin()

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Public Constants

| Constant | Defined By
--- | --- | ---
|  | DEFERRED : String = "deferred" [static] Specifies the deferred locking transaction option. | SQLTransactionLockType
|  | EXCLUSIVE : String = "exclusive" [static] Specifies the exclusive locking transaction option. | SQLTransactionLockType
|  | IMMEDIATE : String = "immediate" [static] Specifies the immediate locking transaction option. | SQLTransactionLockType

Constant Detail

### DEFERRED

Constant

`public static const DEFERRED:String = "deferred"`

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0

Specifies the deferred locking transaction option. A deferred-lock transaction does not acquire a lock on the database until the database is first accessed. With a deferred transaction, a lock is not acquired until the first read or write operation.

Related API Elements

flash.data.SQLConnection.begin()

### EXCLUSIVE

Constant

`public static const EXCLUSIVE:String = "exclusive"`

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0

Specifies the exclusive locking transaction option. An exclusive-locked transaction acquires a lock on the database immediately. Other SQLStatement objects executing against the same database through a different SQLConnection (in the same AIR application or a different one) can't read data from or write data to the database.

Related API Elements

flash.data.SQLConnection.begin()

### IMMEDIATE

Constant

`public static const IMMEDIATE:String = "immediate"`

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0

Specifies the immediate locking transaction option. An immediate-locked transaction acquires a lock on the database immediately. SQLStatement objects executing against the same database through a different SQLConnection (in the same AIR application or a different one) can read data from the database but can't write data to it. However, for those other connections reading data from the database, the initial state of the data in the database is identical to the state of the database before the in-transaction SQLConnection instance's `begin()` method was called. Any uncommitted data changes made within the immediate-locked transaction are not available to the other connections.

Related API Elements

flash.data.SQLConnection.begin()

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00