(function(e,c,d){var b="Rho.Database";var a=d.apiReqFor(b);function f(){var g=null;this.getId=function(){return g};if(1==arguments.length&&arguments[0][d.rhoIdParam()]){if(b!=arguments[0][d.rhoClassParam()]){throw"Wrong class instantiation!"}g=arguments[0][d.rhoIdParam()]}else{g=d.nextId();this.initialize.apply(this,arguments)}}d.createPropsProxy(f.prototype,[],a,function(){return this.getId()});d.createMethodsProxy(f.prototype,[{methodName:"initialize",nativeName:"initialize",valueCallbackIndex:2},{methodName:"close",nativeName:"close",valueCallbackIndex:0},{methodName:"startTransaction",nativeName:"startTransaction",valueCallbackIndex:0},{methodName:"executeSql",nativeName:"executeSql",valueCallbackIndex:2},{methodName:"executeBatchSql",nativeName:"executeBatchSql",valueCallbackIndex:1},{methodName:"isTableExist",nativeName:"isTableExist",valueCallbackIndex:1},{methodName:"destroyTable",nativeName:"destroyTable",valueCallbackIndex:1},{methodName:"destroyTables",nativeName:"destroyTables",valueCallbackIndex:1},{methodName:"commitTransaction",nativeName:"commitTransaction",valueCallbackIndex:0},{methodName:"rollbackTransaction",nativeName:"rollbackTransaction",valueCallbackIndex:0},{methodName:"lockDb",nativeName:"lockDb",valueCallbackIndex:0},{methodName:"unlockDb",nativeName:"unlockDb",valueCallbackIndex:0}],a,function(){return this.getId()});d.createRawPropsProxy(f.prototype,[]);d.createPropsProxy(f,[],a);d.createMethodsProxy(f,[],a);d.namespace(b,f)})(Rho.jQuery,Rho,Rho.util);