一、SQLiteDataTable是SQLiteHelper定义的一个接口,它包括onCreate和onUpgrade两个方法3d
二、SQLiteDaoBase实现了SQLiteDataTable接口,是个抽象类,全部的dao类都继承它blog
三、由于UserDao继承了SQLiteDaoBase,因此实现了oncreate和onUpgrade两个方法,建user表的句子都在oncreate方法里继承
四、因此在SQLiteHelper里的onCreate方法里可经过反射得到任意一个实现了SQLiteDataTable接口的实例,再调用示例的
建表方法建立表接口
这种方式适合团队开发,互不干涉开发