| $#! | |
| _populateFromResult, GearsORM. Model. model | |
| _updateInsert, GearsORM. Model. model | |
| A | |
| add, GearsORM. Fields. ManyToMany | |
| C | |
| close | |
| copy | |
| createTable | |
| createTriggers, GearsORM. Model. model | |
| D | |
| doesTableExist, GearsORM. Introspection | |
| dropTable | |
| dropTriggers, GearsORM. Model. model | |
| E | |
| each, GearsORM. ResultIterator | |
| execute, GearsORM | |
| executeAndClose, GearsORM | |
| F | |
| Functions | |
| G | |
| GearsORM | |
| GearsORM. Field. Primitive | |
| GearsORM. Fields.js | |
| GearsORM. Fields. ManyToMany | |
| GearsORM. Fields. ManyToOne | |
| GearsORM. Fields. OneToMany | |
| GearsORM. Introspection | |
| GearsORM. Introspection.js | |
| GearsORM.js | |
| GearsORM. Model | |
| GearsORM. Model.js | |
| GearsORM. Model. model | |
| GearsORM. ResultIterator | |
| GearsORM. ResultIterator.js | |
| getDB, GearsORM | |
| getOne, GearsORM. ResultIterator | |
| getRelatedClass | |
| I | |
| insert, GearsORM. Model. model | |
| L | |
| load, GearsORM. Model. model | |
| N | |
| next, GearsORM. ResultIterator | |
| P | |
| Properties, GearsORM. Introspection | |
| R | |
| refresh, GearsORM. Model. model | |
| remove | |
| S | |
| save, GearsORM. Model. model | |
| select | |
| sqliteMasterModel, GearsORM. Introspection. GearsORM. Introspection | |
| T | |
| toSql | |
| U | |
| update, GearsORM. Model. model |
populate the instance from a ResultSet.
_populateFromResult:function( result )
do the actual insert/update,used by insert and update methods.
_updateInsert:function( update )
add a relation between this object to another object
add:function( realtedObject )
close the database connection.
close:function()
close the ResultSet,this will be done automaticlly if the ResultSet is iterated to the end.
close:function()
create a copy of this object
copy:function()
create a copy of this object
copy:function()
create a copy of this object
copy:function()
create the many to many table
createTable:function()
create the table for this model,creating triggers for forigenkeys and creating many-to-many tables if needed.
createTable:function()
create triggers to inforce forigenkeys.
createTriggers:function()
get the names of the tables to checked if they exist return true if all of them exist else return false
doesTableExist:function()
drop the many to many table
dropTable:function()
drop the table and all associate triggers.
dropTable:function()
drop triggers related to the table.
dropTriggers:function()
a function to iterate the ResultSet like ruby each.
each:function( fn, bind )
execute a sql query on the database
execute:function( sql, params )
execute a sql query on the database and close it.
executeAndClose:function( sql, params )
return a open database connection
getDB:function()
return the first row of the ResultSet,will return false if the ResultSet is empty.
getOne:function()
return the related model class
getRelatedClass:function()
return the related model class
getRelatedClass:function()
insert instance into database,use save instead.
insert:function()
load objects from a array to the database.
load:function( objects, save )
return the next row in the ResultSet as a model instance,if it is the last row it will return false.
next:function()
refresh the model data from database.
refresh:function()
delete a relation between this object and other object
remove:function( related )
do a DELETE on the related table
remove:function( whereExpression, params )
remove the instance from the database
remove:function()
save:function()
do a SELECT on the related table
select:function( whereExpression, params )
do a SELECT on the related table
select:function( whereExpression, params )
do a SELECT on the model
select:function( whereExpression, params )
return the sql string for this field
toSql:function()
return the sql string for this field
toSql:function()
return the sql string for this field
toSql:function()
update instance into database,use save instead.
update:function()