本文整理汇总了Java中de.greenrobot.daogenerator.Schema.enableKeepSectionsByDefault方法的典型用法代码示例。如果您正苦于以下问题:Java Schema.enableKeepSectionsByDefault方法的具体用法?Java Schema.enableKeepSectionsByDefault怎么用?Java Schema.enableKeepSectionsByDefault使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类de.greenrobot.daogenerator.Schema
的用法示例。
在下文中一共展示了Schema.enableKeepSectionsByDefault方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: main
import de.greenrobot.daogenerator.Schema; //导入方法依赖的package包/类
public static void main(String args[]) throws Exception{
// System.out.print("Generating... " + args[0].toString());
Schema schema = new Schema(54,"com.braunster.chatsdk.dao");
schema.enableKeepSectionsByDefault();
addUser(schema);
addMessages(schema);
addThread(schema);
addLinkedAccounts(schema);
addContactLink(schema);
addUserThreadLink(schema);
addFollower(schema);
setBidirectionalRelationships();
// setImplementation();
setSuperClass();
new DaoGenerator().generateAll(schema, outputDir);
}
示例2: main
import de.greenrobot.daogenerator.Schema; //导入方法依赖的package包/类
public static void main(String[] args) throws Exception {
Schema schema = new Schema(1, "com.lipy.mylibrary.dao.core");
schema.enableKeepSectionsByDefault();
addPedometer(schema);
// new DaoGenerator().generateAll(schema, "E:/project/AndroidPedometer/mylibrary/src/main/java/");
new DaoGenerator().generateAll(schema, "/Users/lipy/Documents/AndroidPedometer/mylibrary/src/main/java/");
}
示例3: main
import de.greenrobot.daogenerator.Schema; //导入方法依赖的package包/类
public static void main(String[] args) throws Exception {
int dbVersion = 12;
Schema schema = new Schema(dbVersion, "com.mogujie.tt.DB.dao");
schema.enableKeepSectionsByDefault();
addDepartment(schema);
addUserInfo(schema);
addGroupInfo(schema);
addMessage(schema);
addSessionInfo(schema);
// todo 绝对路径,根据自己的路径设定, 例子如下
String path = "/Users/yingmu/software/IM/TT/ttandroidclientnew/app/src/main/java";
new DaoGenerator().generateAll(schema, path);
}
示例4: main
import de.greenrobot.daogenerator.Schema; //导入方法依赖的package包/类
public static void main(String[] args) {
Schema schema = new Schema(DATABASE_VERSION, "com.totemsoft.screenlookcount.db");
schema.enableKeepSectionsByDefault();
addTables(schema);
try {
new DaoGenerator().generateAll(schema, PROJECT_DIR + "\\app\\src\\main\\java");
} catch (Exception e) {
e.printStackTrace();
}
}