Manager

class neko.db.Manager<T>Available in nekoSPOD Manager : the persistent object database manager. See SPOD: Object-Database Modeling. function new( classval : Class<T> ) : Void function all( ?lock : Bool ) : List<T> function count( ?x : {} ) : IntThe number of rows for this table function dbClass() : Class<Dynamic> function delete( x : {} ) : Void function get( id : Int, ?lock : Bool ) : TRetrieve a SPOD Object based on a single integer identifier function getWithKeys( keys : {}, ?lock : Bool ) : TRetrieve a SPOD Object based on its multiple keys function object( sql : String, lock : Bool ) : T function objects( sql : String, lock : Bool ) : List<T>Retrieve objects from an SQL statement withobject building and SPOD make call. function quote( s : String ) : String function result( sql : String ) : Dynamic function results<T>( sql : String ) : List<T>Retrieve raw results from an SQL statement wihtout object building and without SPOD make/unmake call. function search( x : {}, ?lock : Bool ) : List<T>Return a list of SPOD Objects matching the search patterns function setLockMode( exclusive : Bool, readShared : Bool ) : Void static var cnx(default,setConnection) : Connection static function cleanup() : VoidCleanup global object cache : always call this once you're done if your module is cached into memory. static function initialize() : VoidThis needs to be be called only once (but can be called many times without issue). It will initialize all the created managers instances relations.
version #10695, modified 2011-06-20 18:40:20 by blackmagic
0 comment