Packagede.wwsc.t3flex.vo
Classpublic class DbHelper
InheritanceDbHelper Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined by
  data : ArrayCollection
DbHelper
  INSERT_MM_CLASS : Class
DbHelper
  myResultFunction : Function
DbHelper
  SELECT_MM_CLASS : Class
DbHelper
Public Methods
 MethodDefined by
  
DbHelper
  
addARelation(targetClass:Class, object:T3DbElement, resultFunction:Function):void
DbHelper
  
deserialize(obj:*, e:*):*
deserializes the xml response handles error cases
DbHelper
  
doRequest(method_name:String, parameters:Object, callback:Function):void
makes a request to the server using the gateway instance
DbHelper
  
faultHandler(e:FaultEvent):void
fault handler for this connection
DbHelper
  
getAllChildrenOfTable(object:Object, resultFunction:Function):void
DbHelper
  
getChildFromUid(object:Object, uid:uint, resultFunction:Function):void
DbHelper
  
getChildrenFromFilterValue(object:Object, resultFunction:Function, filterField:String, filterValue:String):void
DbHelper
  
getMMForUid(object:Object, resultFunction:Function):void
DbHelper
  
getStoredQuery(object:Object, resultFunction:Function):void
DbHelper
  
initApp(action:String, myItem:Object):void
DbHelper
  
resultHandler(e:ResultEvent):void
result handler for the gateway deserializes the result, and then calls the REAL event handler (set when making a request in the doRequest function)
DbHelper
Property detail
dataproperty
public var data:ArrayCollection
INSERT_MM_CLASSproperty 
public var INSERT_MM_CLASS:Class
myResultFunctionproperty 
public var myResultFunction:Function
SELECT_MM_CLASSproperty 
public var SELECT_MM_CLASS:Class
Constructor detail
DbHelper()constructor
public function DbHelper()
Method detail
addARelation()method
public function addARelation(targetClass:Class, object:T3DbElement, resultFunction:Function):voidParameters
targetClass:Class
 
object:T3DbElement
 
resultFunction:Function
deserialize()method 
public function deserialize(obj:*, e:*):*

deserializes the xml response handles error cases

Parameters
obj:* — ResultEvent the server response and details about the connection
 
e:*

Returns
*
doRequest()method 
public function doRequest(method_name:String, parameters:Object, callback:Function):void

makes a request to the server using the gateway instance

Parameters
method_name:String — String the method name used in the server dispathcer
 
parameters:Object — Object name value pairs for sending in post
 
callback:Function — Function function to be called when the call completes
faultHandler()method 
public function faultHandler(e:FaultEvent):void

fault handler for this connection

Parameters
e:FaultEvent — FaultEvent the error object
getAllChildrenOfTable()method 
public function getAllChildrenOfTable(object:Object, resultFunction:Function):voidParameters
object:Object
 
resultFunction:Function
getChildFromUid()method 
public function getChildFromUid(object:Object, uid:uint, resultFunction:Function):voidParameters
object:Object
 
uid:uint
 
resultFunction:Function
getChildrenFromFilterValue()method 
public function getChildrenFromFilterValue(object:Object, resultFunction:Function, filterField:String, filterValue:String):voidParameters
object:Object
 
resultFunction:Function
 
filterField:String
 
filterValue:String
getMMForUid()method 
public function getMMForUid(object:Object, resultFunction:Function):voidParameters
object:Object
 
resultFunction:Function
getStoredQuery()method 
public function getStoredQuery(object:Object, resultFunction:Function):voidParameters
object:Object
 
resultFunction:Function
initApp()method 
public function initApp(action:String, myItem:Object):voidParameters
action:String
 
myItem:Object
resultHandler()method 
public function resultHandler(e:ResultEvent):void

result handler for the gateway deserializes the result, and then calls the REAL event handler (set when making a request in the doRequest function)

Parameters
e:ResultEvent — ResultEvent the server response and details about the connection