flash.data

# SQLSchemaResult - AS3

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

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0

A SQLSchemaResult instance contains the information resulting from a call to the `SQLConnection.loadSchema()` method. It contains four Array properties that hold the requested schema data, based on the argument values used when calling `SQLConnection.loadSchema()`.

To retrieve the SQLSchemaResult instance for a `SQLConnection.loadSchema()` call, call the SQLConnection instance's `getSchemaResult()` method. Generally, developer code does not create SQLSchemaResult instances directly.

Related API Elements

flash.data.SQLConnection.loadSchema()
flash.data.SQLConnection.getSchemaResult()

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
|  | indices : Array [read-only] An array of SQLIndexSchema instances requested in a call to SQLConnection.loadSchema(). | SQLSchemaResult
|  | tables : Array [read-only] An array of SQLTableSchema instances requested in a call to SQLConnection.loadSchema(). | SQLSchemaResult
|  | triggers : Array [read-only] An array of SQLTriggerSchema instances requested in a call to SQLConnection.loadSchema(). | SQLSchemaResult
|  | views : Array [read-only] An array of SQLViewSchema instances requested in a call to SQLConnection.loadSchema(). | SQLSchemaResult

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | SQLSchemaResult(tables:Array, views:Array, indices:Array, triggers:Array) Creates a SQLSchemaResult instance. | SQLSchemaResult
|  | 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

Property Detail

### indices

property

`indices:Array` [read-only]

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0

An array of SQLIndexSchema instances requested in a call to `SQLConnection.loadSchema()`. If the specified databases do not contain any indices, or if the `loadSchema()` call specifies to exclude indices from the result, the `indices` property is an empty array (an array whose `length` property is 0).

Implementation
`public function get indices():Array`

Related API Elements

flash.data.SQLConnection.loadSchema()
flash.data.SQLIndexSchema

### tables

property

`tables:Array` [read-only]

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0

An array of SQLTableSchema instances requested in a call to `SQLConnection.loadSchema()`. If the specified databases do not contain any tables, or if the `loadSchema()` call specifies to exclude tables from the result, the `tables` property is an empty array (an array whose `length` property is 0).

Implementation
`public function get tables():Array`

Related API Elements

flash.data.SQLConnection.loadSchema()
flash.data.SQLTableSchema

### triggers

property

`triggers:Array` [read-only]

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0

An array of SQLTriggerSchema instances requested in a call to `SQLConnection.loadSchema()`. If the specified databases do not contain any triggers, or if the `loadSchema()` call specifies to exclude triggers from the result, the `triggers` property is an empty array (an array whose `length` property is 0).

Implementation
`public function get triggers():Array`

Related API Elements

flash.data.SQLConnection.loadSchema()
flash.data.SQLTriggerSchema

### views

property

`views:Array` [read-only]

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0

An array of SQLViewSchema instances requested in a call to `SQLConnection.loadSchema()`. If the specified databases do not contain any views, or if the `loadSchema()` call indicates that views should be excluded from the result, the `views` property is an empty array (an array whose `length` property is 0).

Implementation
`public function get views():Array`

Related API Elements

flash.data.SQLConnection.loadSchema()
flash.data.SQLViewSchema
Constructor Detail

### SQLSchemaResult

()
Constructor

`public function SQLSchemaResult(tables:Array, views:Array, indices:Array, triggers:Array)`

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0

Creates a SQLSchemaResult instance. Generally, developer code does not call the SQLSchemaResult constructor directly. To obtain schema information for a database, call the `SQLConnection.loadSchema()` method.

Parameters

| `tables:Array` — An array of SQLTableSchema instances as specified in the `loadSchema()` request.
| `views:Array` — An array of SQLViewSchema instances as specified in the `loadSchema()` request.
| `indices:Array` — An array of SQLIndexSchema instances as specified in the `loadSchema()` request.
| `triggers:Array` — An array of SQLTriggerSchema instances as specified in the `loadSchema()` request.

Related API Elements

flash.data.SQLConnection.loadSchema()

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