Packageat.db
Classpublic class ParseBookmarkDataXML

Class for parsing single or multiple bookmarks and inserting resultant data into the application database.



Public Properties
 PropertyDefined by
  activeInput : String = "Y"
Hold the activeInput value to be used during data insertion/updating in the application database.
ParseBookmarkDataXML
  attributeID : int = 0
Holds the attributeID value of the 'slideID' used for processing of slide record info in a bookmark.
ParseBookmarkDataXML
  attributeidInput : int
Hold the attributeidInput value to be used during data insertion/updating in the application database.
ParseBookmarkDataXML
  bookmarkattribute : BookmarkAttribute
Instantiates the BookmarkAttribute class.
ParseBookmarkDataXML
  bookmarkattributeIDInput : int
Hold the bookmarkattributeIDInput value to be used during data insertion/updating in the application database.
ParseBookmarkDataXML
  bookmarkID : int
Holds the bookmarkID value that is obtained from the XML data passed into the class.
ParseBookmarkDataXML
  bookmarkidInput : int
Hold the bookmarkidInput value to be used during data insertion/updating in the application database.
ParseBookmarkDataXML
  bookmarkStructure : String
Holds the bookmarkStructure value of the bookmark structure obtained from the XML data passed into the class.
ParseBookmarkDataXML
  commentsInput : String
Hold the commentsInput value to be used during data insertion/updating in the application database.
ParseBookmarkDataXML
  descriptionInput : String
Hold the descriptionInput value to be used during data insertion/updating in the application database.
ParseBookmarkDataXML
  evevalueInput : String
Hold the evevalueInput value to be used during data insertion/updating in the application database.
ParseBookmarkDataXML
  id2Input : int = 0
Hold the id2Input value to be used during data insertion/updating in the application database.
ParseBookmarkDataXML
  nameInput : String
Hold the nameInput value to be used during data insertion/updating in the application database.
ParseBookmarkDataXML
  recordCount : int
Holds the recordCount value of looped data during parsing.
ParseBookmarkDataXML
  recordCount2 : int
Holds the recordCount value of looped data during parsing.
ParseBookmarkDataXML
  title : String
Holds the title value that is obtained from the XML data passed into the class.
ParseBookmarkDataXML
  titleAbbr : String
Holds the titleAbbr value that is obtained from the XML data passed into the class.
ParseBookmarkDataXML
  updateBookmarkBookmarkStructure : UpdateBookmarkBookmarkStructure
Instantiates the UpdateBookmarkBookmarkStructure class.
ParseBookmarkDataXML
  versionInput : int = 0
Hold the versionInput value to be used during data insertion/updating in the application database.
ParseBookmarkDataXML
  xmlData : XML
Holds the xmlData value that is passed into the class.
ParseBookmarkDataXML
  xmlDataList : XMLList
Holds the xmlDataList value XMLList of the XML data passed into the class.
ParseBookmarkDataXML
  xmlDataList2 : XMLList
Holds the xmlDataList2 value XMLList of the XML data passed into the class.
ParseBookmarkDataXML
  xmlDataList3 : XMLList
Holds the xmlDataList3 value XMLList of the XML data passed into the class.
ParseBookmarkDataXML
Public Methods
 MethodDefined by
  
ParseBookmarkDataXML(xmlData:XML)
Constructor.
ParseBookmarkDataXML
Protected Methods
 MethodDefined by
  
deleteBookmarkByID(bookmarkID:int):void
Deletes existing bookmark attribute records from the application database based on the variable bookmarkID.
ParseBookmarkDataXML
  
init():void
Init.
ParseBookmarkDataXML
  
onEveDBError(event:SQLEvent):void
Error handler method for database connection errors.
ParseBookmarkDataXML
  
onEveDBOpened(event:SQLEvent):void
This method retrieves the database id of attribute 'slideID'.
ParseBookmarkDataXML
Property detail
activeInputproperty
public var activeInput:String = "Y"

Hold the activeInput value to be used during data insertion/updating in the application database.

The default value is Y.

attributeIDproperty 
public var attributeID:int = 0

Holds the attributeID value of the 'slideID' used for processing of slide record info in a bookmark.

The default value is 0.

attributeidInputproperty 
public var attributeidInput:int

Hold the attributeidInput value to be used during data insertion/updating in the application database.

bookmarkattributeproperty 
public var bookmarkattribute:BookmarkAttribute

Instantiates the BookmarkAttribute class.

See also

bookmarkattributeIDInputproperty 
public var bookmarkattributeIDInput:int

Hold the bookmarkattributeIDInput value to be used during data insertion/updating in the application database.

bookmarkIDproperty 
public var bookmarkID:int

Holds the bookmarkID value that is obtained from the XML data passed into the class.

bookmarkidInputproperty 
public var bookmarkidInput:int

Hold the bookmarkidInput value to be used during data insertion/updating in the application database.

bookmarkStructureproperty 
public var bookmarkStructure:String

Holds the bookmarkStructure value of the bookmark structure obtained from the XML data passed into the class.

commentsInputproperty 
public var commentsInput:String

Hold the commentsInput value to be used during data insertion/updating in the application database.

descriptionInputproperty 
public var descriptionInput:String

Hold the descriptionInput value to be used during data insertion/updating in the application database.

evevalueInputproperty 
public var evevalueInput:String

Hold the evevalueInput value to be used during data insertion/updating in the application database.

id2Inputproperty 
public var id2Input:int = 0

Hold the id2Input value to be used during data insertion/updating in the application database.

nameInputproperty 
public var nameInput:String

Hold the nameInput value to be used during data insertion/updating in the application database.

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.

titleproperty 
public var title:String

Holds the title value that is obtained from the XML data passed into the class.

titleAbbrproperty 
public var titleAbbr:String

Holds the titleAbbr value that is obtained from the XML data passed into the class.

updateBookmarkBookmarkStructureproperty 
public var updateBookmarkBookmarkStructure:UpdateBookmarkBookmarkStructure

Instantiates the UpdateBookmarkBookmarkStructure class.

See also

versionInputproperty 
public var versionInput:int = 0

Hold the versionInput value to be used during data insertion/updating in the application database.

The default value is 0.

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
ParseBookmarkDataXML()constructor
public function ParseBookmarkDataXML(xmlData:XML)

Constructor.

Parameters
xmlData:XML

Example
   
   
     
      
     
      
      
      
       
       
     
     
     
      
       
       
       
      
      
      
      
     
     
   
   
   
   

Method detail
deleteBookmarkByID()method
protected function deleteBookmarkByID(bookmarkID:int):void

Deletes existing bookmark attribute records from the application database based on the variable bookmarkID.

Parameters
bookmarkID:int
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 retrieves the database id of attribute 'slideID'. This is used to filter just the bookmark attribute records that pertain to slides. The method then parses bookmark XML object into XMLList variables - setting key variables to be used in insertion of data into the application database.

This method invokes the helper class UpdateBookmarkBookmarkStructure to edit existing bookmark structure data. To properly insert this particular data the toXMLString() method must be used.

Parameters
event:SQLEventSQLEvent

See also