Packageat.db
Classpublic class ParseRepBagDataXML

Class for parsing rep bag data and inserting resultant data into the application database.



Public Properties
 PropertyDefined by
  deleteRepBagAttribute : DeleteRepBagAttributeByRepBagID
Instantiates the DeleteRepBagAttributeByRepBagID class.
ParseRepBagDataXML
  deleteRepBagItem : DeleteDBRecord
Instantiates the DeleteDBRecord class.
ParseRepBagDataXML
  eveid : String = ""
Holds the eveid value obtained from the XML data passed into the class.
ParseRepBagDataXML
  icon : String = ""
Holds the icon value obtained from the XML data passed into the class.
ParseRepBagDataXML
  iconAttributeID : int
Holds the iconAttributeID value for the attribute named "icon".
ParseRepBagDataXML
  indicationid : int = 0
Holds the indicationid value obtained from the XML data passed into the class.
ParseRepBagDataXML
  indicationID : int
Holds the indicationID value obtained from the XML data passed into the class.
ParseRepBagDataXML
  insertRepBagAttribute : RepBagAttribute
Instantiates the RepBagAttribute class.
ParseRepBagDataXML
  level : int = 0
Holds the level value obtained from the XML data passed into the class.
ParseRepBagDataXML
  name : String = ""
Holds the name value obtained from the XML data passed into the class.
ParseRepBagDataXML
  recordCount : int
Holds the recordCount value of looped data during parsing.
ParseRepBagDataXML
  recordCount2 : int
Holds the recordCount value of looped data during parsing.
ParseRepBagDataXML
  repBagArrayFinal : Array
Holds the repBagArrayFinal values as an array that is used to later remove erroneous records from the application database.
ParseRepBagDataXML
  repBagArrayNew : Array
Holds the repBagArrayNew values as an array that is used to later remove erroneous records from the application database.
ParseRepBagDataXML
  repBagArrayOld : Array
Holds the repBagArrayOld values as an array that is used to later remove erroneous records from the application database.
ParseRepBagDataXML
  repbagid : int = 0
Holds the repbagid value obtained from the XML data passed into the class.
ParseRepBagDataXML
  repID : int
Holds the repID value obtained from the XML data passed into the class.
ParseRepBagDataXML
  type : String = ""
Holds the type value obtained from the XML data passed into the class.
ParseRepBagDataXML
  typeAttributeID : int
Holds the typeAttributeID value for the attribute named "type".
ParseRepBagDataXML
  updateRepBag : UpdateRepBag
Instantiates the UpdateRepBag class.
ParseRepBagDataXML
  xmlData : XML
Holds the xmlData value that is passed into the class.
ParseRepBagDataXML
  xmlDataList : XMLList
Holds the xmlDataList value XMLList of the XML data passed into the class.
ParseRepBagDataXML
  xmlDataList2 : XMLList
Holds the xmlDataList2 value XMLList of the XML data passed into the class.
ParseRepBagDataXML
  xmlDataList3 : XMLList
Holds the xmlDataList3 value XMLList of the XML data passed into the class.
ParseRepBagDataXML
Public Methods
 MethodDefined by
  
ParseRepBagDataXML(xmlData:XML)
Constructor.
ParseRepBagDataXML
Protected Methods
 MethodDefined by
  
deleteErroneousRepBagItems(repBagArray:Array):void
Method for removing erroneous rep bag records and rep bag attribute records from the application database based on arrays derived from xml parsed in this class.
ParseRepBagDataXML
  
init():void
Init.
ParseRepBagDataXML
  
onEveDBError(event:SQLEvent):void
Error handler method for database connection errors.
ParseRepBagDataXML
  
onEveDBOpened(event:SQLEvent):void
This method obtains primary variable values derived from xmlData.
ParseRepBagDataXML
Property detail
deleteRepBagAttributeproperty
public var deleteRepBagAttribute:DeleteRepBagAttributeByRepBagID

Instantiates the DeleteRepBagAttributeByRepBagID class.

See also

deleteRepBagItemproperty 
public var deleteRepBagItem:DeleteDBRecord

Instantiates the DeleteDBRecord class.

See also

eveidproperty 
public var eveid:String = ""

Holds the eveid value obtained from the XML data passed into the class.

iconproperty 
public var icon:String = ""

Holds the icon value obtained from the XML data passed into the class.

iconAttributeIDproperty 
public var iconAttributeID:int

Holds the iconAttributeID value for the attribute named "icon".

indicationidproperty 
public var indicationid:int = 0

Holds the indicationid value obtained from the XML data passed into the class.

indicationIDproperty 
public var indicationID:int

Holds the indicationID value obtained from the XML data passed into the class.

insertRepBagAttributeproperty 
public var insertRepBagAttribute:RepBagAttribute

Instantiates the RepBagAttribute class.

See also

levelproperty 
public var level:int = 0

Holds the level value obtained from the XML data passed into the class.

The default value is 0.

nameproperty 
public var name:String = ""

Holds the name value obtained from the XML data passed into the class.

recordCountproperty 
public var recordCount:int

Holds the recordCount value of looped data during parsing.

recordCount2property 
public var recordCount2:int

Holds the recordCount value of looped data during parsing.

repBagArrayFinalproperty 
public var repBagArrayFinal:Array

Holds the repBagArrayFinal values as an array that is used to later remove erroneous records from the application database.

repBagArrayNewproperty 
public var repBagArrayNew:Array

Holds the repBagArrayNew values as an array that is used to later remove erroneous records from the application database.

repBagArrayOldproperty 
public var repBagArrayOld:Array

Holds the repBagArrayOld values as an array that is used to later remove erroneous records from the application database.

repbagidproperty 
public var repbagid:int = 0

Holds the repbagid value obtained from the XML data passed into the class.

repIDproperty 
public var repID:int

Holds the repID value obtained from the XML data passed into the class.

typeproperty 
public var type:String = ""

Holds the type value obtained from the XML data passed into the class.

typeAttributeIDproperty 
public var typeAttributeID:int

Holds the typeAttributeID value for the attribute named "type".

updateRepBagproperty 
public var updateRepBag:UpdateRepBag

Instantiates the UpdateRepBag class.

See also

xmlDataproperty 
public var xmlData:XML

Holds the xmlData value that is passed into the class.

xmlDataListproperty 
public var xmlDataList:XMLList

Holds the xmlDataList value XMLList of the XML data passed into the class.

xmlDataList2property 
public var xmlDataList2:XMLList

Holds the xmlDataList2 value XMLList of the XML data passed into the class.

xmlDataList3property 
public var xmlDataList3:XMLList

Holds the xmlDataList3 value XMLList of the XML data passed into the class.

Constructor detail
ParseRepBagDataXML()constructor
public function ParseRepBagDataXML(xmlData:XML)

Constructor. 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
xmlData:XML

Example
   
   
     
     
      
      
       
       
       
      
      
      
     
     
     
     
      
      
     
     
   
   
   

Method detail
deleteErroneousRepBagItems()method
protected function deleteErroneousRepBagItems(repBagArray:Array):void

Method for removing erroneous rep bag records and rep bag attribute records from the application database based on arrays derived from xml parsed in this class.

Parameters
repBagArray:Array
init()method 
protected function init():void

Init. Establishes connection to the application database.

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

This method obtains primary variable values derived from xmlData. It also invokes helper class DeleteRepBag to delete existing rep bag data as it utilizes a 3-pass loop method for getting item results that adhere to a 3-level heirarchy.

This method also uses helper class DeleteDBRecord to delete existing rep bag attribute data, helper class RepBag to insert parsed rep bag data and helper class RepBagAttribute to insert parsed rep bag attribute data. Parameters

event:SQLEventSQLEvent

See also

at.db.DeleteRepBag
at.db.DeleteDBRecord