Packageat.db
Classpublic class SelectAttributeValue

Class for retrieving attribute value data from the table tbl_Attribute in the application database.



Public Properties
 PropertyDefined by
  attributeID : int
Holds the attributID value to be used to locate the attribute value records from the application database.
SelectAttributeValue
  attributeType : String
Holds the attributeType value to be used to locate the attribute value records from the application database.
SelectAttributeValue
  attributeValue : String
Holds the attributeValue value to be used as a return variable.
SelectAttributeValue
  tableName : String
Holds the tableName value to be used for specifying the table to query.
SelectAttributeValue
Public Methods
 MethodDefined by
  
SelectAttributeValue(attributeType:String, attributeID:int)
Constructor.
SelectAttributeValue
Protected Methods
 MethodDefined by
  
init():void
Init.
SelectAttributeValue
  
onDBStatementSelectResult(event:SQLEvent):void
Retrieves the value and assigns it to the variable attributeValue.
SelectAttributeValue
  
onEveDBError(event:SQLEvent):void
Error handler method for database connection errors.
SelectAttributeValue
  
onEveDBOpened(event:SQLEvent):void
Retrieves the id and assigns it to the variable attributeID to be used for querying the application database.
SelectAttributeValue
Property detail
attributeIDproperty
public var attributeID:int

Holds the attributID value to be used to locate the attribute value records from the application database.

attributeTypeproperty 
public var attributeType:String

Holds the attributeType value to be used to locate the attribute value records from the application database.

attributeValueproperty 
public var attributeValue:String

Holds the attributeValue value to be used as a return variable.

tableNameproperty 
public var tableName:String

Holds the tableName value to be used for specifying the table to query.

Constructor detail
SelectAttributeValue()constructor
public function SelectAttributeValue(attributeType:String, attributeID:int)

Constructor.

Parameters
attributeType:String
 
attributeID:int
Method detail
init()method
protected function init():void

Init. Establishes connection to the application database.

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

Retrieves the value and assigns it to the variable attributeValue.

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 the id and assigns it to the variable attributeID to be used for querying the application database.

Parameters
event:SQLEventSQLEvent