预置管理
2018-04-04 16:07:52 0 举报
预置管理初稿
作者其他创作
大纲/内容
ProductLoader
+action:ProductEntityAction
+ loadFromDB(params):List+ loadByPid(params):ProductEntity+ deleteById(pid:String):boolean+insertProduct(info:Product):boolean
BrandEntityAction
# getQueryBuilder():QueryBuilder# getEntityDao():BrandEntityDao# getDaoSession():DaoSession
DaoAction
//CURL操作insert(t:T):longupdate(t:T):void...//条件查询...
DBManager
PresetLoaderFactory
getLoadByType(loadType:int):ILoad
WebAppLoader
+ action:WebAppInfoEntityAction
+ attribute1:type = defaultValue+ attribute2:type- attribute3:type
+ operation1(params):returnType- operation2(params)- operation3()
XMLParser
CategoryEntityAction
# getQueryBuilder():QueryBuilder# getEntityDao():CategoryEntityDao# getDaoSession():DaoSession
BaseDaoAction
#getQueryBuilder():QueryBuilder#getEntityDao():G#getDaoSession():DaoSession//增删改查以及条件查询和删除的函数
FileManager
+ copyAssetsToFilesystem(params):boolean+ deleteWebApp(params):boolean+ unzip:boolean+saveFile:boolean
ILoader
loadFromSD():void loadFromXML():void loadFromAserts():void loadFromDB():void
BrandLoader
+action:BrandEntityAction
+ loadFromDB(params):List+ loadByPid(params):BrandEntity+ deleteById(pid:String):boolean+insertBrand(info:Brand):boolean
BaseLoader
-assetsManager:AssetsDbManager-fileManager:FileManager
AssetsDbManager
+ getDatabase(params):SQLiteDatabase- getDatabaseFilepath(params):void- getDatabaseFile():void+closeDatabase():boolean+closeAllDatabase:boolean
PresetManager
+init(ctx:Context):void+ getInfoByPid(String pid):WebAppInfo+startDownLoad():void+checkVersion():boolean+updateWebApp():void+uninstallWebapp():void+loadCategory(info:LoadInfo):void+loadBrands(info:LoadInfo):void+loadProducts(info:LoadInfo):void
GreendaoFactory
-sPresetMaster:DaoMaster-sPresetDaoSession:DaoSession
+ makePreset(ctx:Context):void+ getsPresetDaoSession():DaoSession
ProductEntityAction
# getQueryBuilder():QueryBuilder# getEntityDao():ProductEntityDao# getDaoSession():DaoSession
0 条评论
回复 删除
下一页