Packageat.db
Classpublic class GetAttributeXML

Class for retrieving attribute data from the application database based on type and classid.



Public Properties
 PropertyDefined by
  attributexml : String
Holds the attributexml value for the string returned from the data queries to the application database.
GetAttributeXML
  classID : int
Holds the classid value that resolves to the column name used to locate the attribute database records.
GetAttributeXML
  type : String
Holds the type value that resolves to the table name used to locate the attribute database records.
GetAttributeXML
Public Methods
 MethodDefined by
  
GetAttributeXML(type:String, classID:int)
Constructor.
GetAttributeXML
Protected Methods
 MethodDefined by
  
init():void
Init.
GetAttributeXML
  
onEveDBError(event:SQLEvent):void
Error handler method for database connection errors.
GetAttributeXML
  
onEveDBOpened(event:SQLEvent):String
Retrieves the root records from the application database that comprise a set of attributes for a particular class object such as Brand, Indication, Section, Slide and others based on the variables type and classID.
GetAttributeXML
Property detail
attributexmlproperty
public var attributexml:String

Holds the attributexml value for the string returned from the data queries to the application database.

classIDproperty 
public var classID:int

Holds the classid value that resolves to the column name used to locate the attribute database records.

typeproperty 
public var type:String

Holds the type value that resolves to the table name used to locate the attribute database records.

Constructor detail
GetAttributeXML()constructor
public function GetAttributeXML(type:String, classID:int)

Constructor.

Parameters
type:String
 
classID:int
Method detail
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):String

Retrieves the root records from the application database that comprise a set of attributes for a particular class object such as Brand, Indication, Section, Slide and others based on the variables type and classID.

The attribute records translate usually into attributes that appear within the xml elements for the aforementioned objects, but there are some exceptions. From the application database standpoint they serve as a means to also extend object information in what would otherwise require a new column added to a table.

The type variable value passed into this class is used to construct the table name and the column name that is used in a query to retrieve the appropriate attribute. This is because each attribute is linked to a Brand, Indication, Section, Slide, etc. with a join table.

Parameters
event:SQLEventSQLEvent

Returns
String

See also