Main Page | Packages | Class Tree | Index | Help

xp.data

class DBMSResolver

Object
  |
  +--xp.system.DispatcherObject
        |
        +--xp.data.DBMSResolver


class DBMSResolver
extends DispatcherObject

The DBMSResolver component creates an XML update packet that can be easily parsed by into SQL statements for updating a relational database.

Takes an deltaPacket from a DataSource and converts it into a updatePacket(XML) Stores the deltaPacket in an unresolved array and then notifies listeners that a new packet is ready to send. updatePacket format:


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary

public
excludeFields: String
csv list of fields to exclude from update packet

public
keyFields: String
csv list of key fields

public
nullValue: String
A string that is placed in the update packet to indicate that a field's value is null.

public
tableName: String
Identifies the database table that is to be updated.

static
umUsingAll
Constant for updateMode

static
umUsingKey
Constant for updateMode

public
updateMode: String
Values that determine how key fields are identified when the XML update packet is generated.

Fields inherited from class xp.system.DispatcherObject

parent

Property Summary

public
deltaPacket (read)
The DataSource object’s deltaPacket property should be bound to this property so that when DataSource.applyUpdates() is called, the binding will copy it across and the resolver will create the update packet.

public
deltaPacket: DeltaPacket (write)


public
unresolvedPackets (read-only)


public
updatePacket: XML (read-only)
The XML packet produced by this resolver that contains the changes from the data set’s delta packet.

public
updateResults: XML (read, write)
A delta packet that contains the results of an update returned from the server through a connector.

Constructor

public
DBMSResolver ( )
Constructor The DBMSResolver can be instantiatedas an object using "new" or placed on stage as a component

Methods inherited from class xp.system.DispatcherObject

addEventListener, removeEventListener, routeEvent



Field Documentation

excludeFields

public var excludeFields: String
csv list of fields to exclude from update packet

keyFields

public var keyFields: String
csv list of key fields

nullValue

public var nullValue: String
A string that is placed in the update packet to indicate that a field's value is null.

tableName

public var tableName: String
Identifies the database table that is to be updated.

umUsingAll

static var umUsingAll
Constant for updateMode

umUsingKey

static var umUsingKey
Constant for updateMode

updateMode

public var updateMode: String
Values that determine how key fields are identified when the XML update packet is generated.


Property Documentation

deltaPacket

public deltaPacket (read)
The DataSource object’s deltaPacket property should be bound to this property so that when DataSource.applyUpdates() is called, the binding will copy it across and the resolver will create the update packet.

deltaPacket

public deltaPacket: DeltaPacket (write)

unresolvedPackets

public unresolvedPackets (read-only)

updatePacket

public updatePacket: XML (read-only)
The XML packet produced by this resolver that contains the changes from the data set’s delta packet.

updateResults

public updateResults: XML (read, write)
A delta packet that contains the results of an update returned from the server through a connector.


Constructor Documentation

DBMSResolver

public function DBMSResolver()
Constructor The DBMSResolver can be instantiatedas an object using "new" or placed on stage as a component


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc