Packageat.db
Classpublic class GetRepBagDataXML

Class for retrieving rep bag data from the application database based on indicationid.



Public Properties
 PropertyDefined by
  getAttributeXML : GetAttributeXML
Instantiates the GetAttributeXML class.
GetRepBagDataXML
  indicationID : int
Holds the indicationID value for queries used to locate the rep bag database records.
GetRepBagDataXML
  repbagdataxml : XMLList
Holds the repbagxml value for the XMLList returned from the data queries to the application database.
GetRepBagDataXML
Public Methods
 MethodDefined by
  
GetRepBagDataXML(indicationID:int)
Constructor.
GetRepBagDataXML
Protected Methods
 MethodDefined by
  
init():void
Init.
GetRepBagDataXML
  
onDBStatementSelectResult(event:SQLEvent):void
Retrieves the records from the application database that comprise the rep bag data from associated joined tables.
GetRepBagDataXML
  
onEveDBError(event:SQLEvent):void
Error handler method for database connection errors.
GetRepBagDataXML
  
onEveDBOpened(event:SQLEvent):void
Retrieves the root records from the application database that comprise rep bag data based on the variables indicationID.
GetRepBagDataXML
Property detail
getAttributeXMLproperty
public var getAttributeXML:GetAttributeXML

Instantiates the GetAttributeXML class.

See also

indicationIDproperty 
public var indicationID:int

Holds the indicationID value for queries used to locate the rep bag database records.

repbagdataxmlproperty 
public var repbagdataxml:XMLList

Holds the repbagxml value for the XMLList returned from the data queries to the application database.

Constructor detail
GetRepBagDataXML()constructor
public function GetRepBagDataXML(indicationID:int)

Constructor.

Parameters
indicationID: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 records from the application database that comprise the rep bag data from associated joined tables.

This method loops through the top (0) level rep bag items to get the 2nd and 2rd level items. During this process each item's assigned attributes are added. A string is built that builds the XML structure that is ultimately cast to XMLList for eVE use.

The attribute level in the repbag element nodes specifies which parent that it belongs to. The RebBag object has been designed to go 3 levels deep.

Parameters
event:SQLEventSQLEvent

See also

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 root records from the application database that comprise rep bag data based on the variables indicationID.

This method obtains the top level rep bag items, that is, those with a level setting of 0.

Parameters
event:SQLEventSQLEvent

See also