Packagecom.memamsa.airdb
Classpublic dynamic class SchemaInfo
InheritanceSchemaInfo Inheritance Modeler Inheritance flash.utils.Proxy

The SchemaInfo model maintains schema version information for all the other models.

Uses Modeler query and update methods to create and track migration versions for all Modeler sub-classes within the application.

The schema for the SchemaInfo class consists of a simple property-value format, where

  property => name of the table
  value => current schema version for that table
  



Public Properties
 PropertyDefined by
 InheritedclassName : String
Returns the unqualified class name for the model.
Modeler
 InheritednewRecord : Boolean
Check if this object fields represent a new record
Modeler
 Inheritedunsaved : Boolean
Check if object has unsaved changes
Modeler
Protected Properties
 PropertyDefined by
 InheritedfieldValues : Object
Modeler
Public Methods
 MethodDefined by
  
SchemaInfo(newrow:Object = null)
SchemaInfo
 Inherited
count():int
Count the total number of records in the table for this model.
Modeler
 Inherited
countAll(query:Object):int
Count the number of records matching specified query criteria
Modeler
 Inherited
create(values:Object = null):Boolean
Create a new record by combining field values in this instance with the specified values.
Modeler
 Inherited
data(values:Object):void
Initialize this instance with specified field values, potentially for a new record.
Modeler
 Inherited
find(keyvals:Object):Boolean
Check for the existence of records matching criteria specified in terms of field names and associated values.
Modeler
 Inherited
findAll(query:Object, page:int = 1, perPage:int = 0):Array
A generic sql-based find method to query and load field information for all records based on SQL conditions, ordering and limits including join and grouping operations.
Modeler
 Inherited
findery(klass:Class, keyvals:Object):Modeler
[static] Create an instance of the specified Modeler sub-class and load it with the record information matching given key values.
Modeler
 Inherited
getAll(query:Object, page:int = 1, perPage:int = 0):Array
A front-end to findAll method Returns objects of the appropriate Model type
Modeler
 Inherited
load(keyvals:Object):Boolean
Load this instance with record information matching specified conditions.
Modeler
 Inherited
reload():Boolean
Reload this previously loaded instance to obtain latest field values.
Modeler
 Inherited
remove():Boolean
Deletes the record represented by this object.
Modeler
 Inherited
save():Boolean
Save the field values in this instance to the database record.
Modeler
 Inherited
update(values:Object = null):Boolean
Update the database record currently loaded into the model object.
Modeler
 Inherited
updateAll(conditions:String, values:Object):uint
Update all records matching specified conditions with new values
Modeler
Protected Methods
 MethodDefined by
 Inherited
beforeCreate():void
Overridable method called before inserting new records.
Modeler
 Inherited
beforeSave():void
Overridable method called before saving a newly created or updated reord.
Modeler
 Inherited
beforeUpdate():void
Overridable method called before update of existing records.
Modeler
 Inherited
callProperty(name:*, ... args):*
Modeler
 Inherited
getProperty(name:*):*
Modeler
 Inherited
hasProperty(name:*):Boolean
Modeler
 Inherited
Modeler
 Inherited
resetFields():void
Modeler
 Inherited
resetState():void
Modeler
 Inherited
setProperty(name:*, value:*):void
Modeler
 Inherited
timeStamp(field:String, values:Object = null):void
Modeler
 Inherited
validateData():Boolean
Overridable method called before save or create to allow validation of field data.
Modeler
Public Constants
 ConstantDefined by
 InheritedPER_PAGE_LIMIT : int = 50
[static]
Modeler
Constructor detail
SchemaInfo()constructor
public function SchemaInfo(newrow:Object = null)Parameters
newrow:Object (default = null)