Packageat.db
Classpublic class SelectDBRecord

Class for retrieving a single record from a particular table in the application database.



Public Properties
 PropertyDefined by
  recordData : Array
Holds the recordData value of the specified record retrieved from the application database.
SelectDBRecord
  recordID : int
Holds the recordID value to be used in a query to locate the specific record to be retrieved.
SelectDBRecord
  tableName : String
Holds the tableName value to be used in a query to locate the specific record to be retrieved.
SelectDBRecord
Public Methods
 MethodDefined by
  
SelectDBRecord(tableName:String, recordID:int)
Constructor.
SelectDBRecord
Protected Methods
 MethodDefined by
  
init():void
Init.
SelectDBRecord
  
onDBStatementSelectResult(event:SQLEvent):void
Listener handler method for database SQL statement result.
SelectDBRecord
  
onEveDBError(event:SQLEvent):void
Error handler method for database connection errors.
SelectDBRecord
  
onEveDBOpened(event:SQLEvent):void
Retrieves a single record spcified by the variable recordID from the table specified by the variable tableName in the application database.
SelectDBRecord
Property detail
recordDataproperty
public var recordData:Array

Holds the recordData value of the specified record retrieved from the application database.

recordIDproperty 
public var recordID:int

Holds the recordID value to be used in a query to locate the specific record to be retrieved.

tableNameproperty 
public var tableName:String

Holds the tableName value to be used in a query to locate the specific record to be retrieved.

Constructor detail
SelectDBRecord()constructor
public function SelectDBRecord(tableName:String, recordID:int)

Constructor.

Parameters
tableName:String
 
recordID:int
Method detail
init()method
protected function init():void

Init. Establishes connection to the application database.

onDBStatementSelectResult()method 
protected function onDBStatementSelectResult(event:SQLEvent):void

Listener handler method for database SQL statement result.

Parameters
event:SQLEventSQLEvent
onEveDBError()method 
protected function onEveDBError(event:SQLEvent):void

Error handler method for database connection errors.

Parameters
event:SQLEventSQLEvent
onEveDBOpened()method 
protected function onEveDBOpened(event:SQLEvent):void

Retrieves a single record spcified by the variable recordID from the table specified by the variable tableName in the application database.

Parameters
event:SQLEventSQLEvent