(function(e,c,d){var b="Rho.NewORM";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()}}d.createPropsProxy(f.prototype,[],a,function(){return this.getId()});d.createMethodsProxy(f.prototype,[],a,function(){return this.getId()});d.createRawPropsProxy(f.prototype,[]);f.APP="app";f.BULK_ONLY="bulk_only";f.FIXED_SCHEMA="fixedSchema";f.FULL_UPDATE="full_update";f.INCREMENTAL="incremental";f.LOCAL="local";f.NONE="none";f.OVERWRITE="overwrite";f.PASS_THROUGH="pass_through";f.PROPERTY_BAG="propertyBag";f.SYNC="sync";f.USER="user";d.createPropsProxy(f,[],a);d.createMethodsProxy(f,[{methodName:"useNewOrm",nativeName:"useNewOrm",valueCallbackIndex:0},{methodName:"getClientId",nativeName:"getClientId",valueCallbackIndex:0},{methodName:"haveLocalChanges",nativeName:"haveLocalChanges",valueCallbackIndex:0},{methodName:"databaseLocalReset",nativeName:"databaseLocalReset",valueCallbackIndex:0},{methodName:"databaseClientReset",nativeName:"databaseClientReset",valueCallbackIndex:1},{methodName:"databaseFullResetEx",nativeName:"databaseFullResetEx",valueCallbackIndex:3},{methodName:"databaseFullReset",nativeName:"databaseFullReset",valueCallbackIndex:2},{methodName:"databaseFullResetAndLogout",nativeName:"databaseFullResetAndLogout",valueCallbackIndex:0},{methodName:"databaseFullclientResetAndLogout",nativeName:"databaseFullclientResetAndLogout",valueCallbackIndex:0},{methodName:"generateId",nativeName:"generateId",valueCallbackIndex:0}],a);d.namespace(b,f)})(Rho.jQuery,Rho,Rho.util);