Packageat.db
Classpublic class DeleteDBRecord

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



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

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

tableNameproperty 
public var tableName:String

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

Constructor detail
DeleteDBRecord()constructor
public function DeleteDBRecord(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.

onDBStatementDeleteResult()method 
protected function onDBStatementDeleteResult(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

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

Parameters
event:SQLEventSQLEvent