Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
$#!
 _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
G
 getDB, GearsORM
 getOne, GearsORM. ResultIterator
 getRelatedClass
I
 insert, GearsORM. Model. model
L
 load, GearsORM. Model. model
N
 next, GearsORM. ResultIterator
R
 refresh, GearsORM. Model. model
 remove
S
 save, GearsORM. Model. model
 select
T
 toSql
U
 update, GearsORM. Model. model
_populateFromResult:function(result)
populate the instance from a ResultSet.
_updateInsert:function(update)
do the actual insert/update,used by insert and update methods.
add:function(realtedObject)
add a relation between this object to another object
close:function()
close the database connection.
close:function()
close the ResultSet,this will be done automaticlly if the ResultSet is iterated to the end.
copy:function()
create a copy of this object
copy:function()
create a copy of this object
copy:function()
create a copy of this object
createTable: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.
createTriggers:function()
create triggers to inforce forigenkeys.
doesTableExist:function()
get the names of the tables to checked if they exist return true if all of them exist else return false
dropTable:function()
drop the many to many table
dropTable:function()
drop the table and all associate triggers.
dropTriggers:function()
drop triggers related to the table.
each:function(fn,
bind)
a function to iterate the ResultSet like ruby each.
execute:function(sql,
params)
execute a sql query on the database
executeAndClose:function(sql,
params)
execute a sql query on the database and close it.
getDB:function()
return a open database connection
getOne:function()
return the first row of the ResultSet,will return false if the ResultSet is empty.
return the related model class
getRelatedClass:function()
return the related model class
getRelatedClass:function()
return the related model class
insert:function()
insert instance into database,use save instead.
load:function(objects,
save)
load objects from a array to the database.
next:function()
return the next row in the ResultSet as a model instance,if it is the last row it will return false.
refresh:function()
refresh the model data from database.
remove:function(related)
delete a relation between this object and other object
remove:function(whereExpression,
params)
do a DELETE on the related table
remove:function()
remove the instance from the database
save:function()
select:function(whereExpression,
params)
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
toSql:function()
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
update:function()
update instance into database,use save instead.