本文整理匯總了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();
}
}