当前位置: 首页>>代码示例>>Java>>正文


Java Entity.implementsSerializable方法代码示例

本文整理汇总了Java中de.greenrobot.daogenerator.Entity.implementsSerializable方法的典型用法代码示例。如果您正苦于以下问题:Java Entity.implementsSerializable方法的具体用法?Java Entity.implementsSerializable怎么用?Java Entity.implementsSerializable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在de.greenrobot.daogenerator.Entity的用法示例。


在下文中一共展示了Entity.implementsSerializable方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addAccountTable

import de.greenrobot.daogenerator.Entity; //导入方法依赖的package包/类
private static void addAccountTable(Schema schema) {

        Entity table = schema.addEntity("Green_AccountBean");
        table.setHasKeepSections(true);
        table.setTableName(AccountTable.ACCOUNT_TABLE);
        table.implementsSerializable();

        table.addLongProperty(AccountTable.UID).primaryKey();
        table.addStringProperty(AccountTable.USER_NAME);
        table.addStringProperty(AccountTable.USER_PWD);
        table.addStringProperty(AccountTable.COOKIE);
        table.addStringProperty(AccountTable.OAUTH_TOKEN);
        table.addLongProperty(AccountTable.OAUTH_TOKEN_EXPIRES_TIME);
        table.addStringProperty(AccountTable.ACCESS_TOKEN_HACK);
        table.addLongProperty(AccountTable.ACCESS_TOKEN_HACK_EXPIRES_TIME);
        table.addStringProperty(AccountTable.G_SID);
        table.addIntProperty(AccountTable.NAVIGATION_POSITION);
        table.addStringProperty(AccountTable.USER_INFO_JSON);
    }
 
开发者ID:andforce,项目名称:iBeebo,代码行数:20,代码来源:GreenDaoGen.java

示例2: main

import de.greenrobot.daogenerator.Entity; //导入方法依赖的package包/类
public static void main(String[] args) throws Exception {
    Schema schema = new Schema(3, "br.com.ricardolonga.mercadinho");

    Entity categoria = schema.addEntity("Categoria");
    categoria.addIdProperty().autoincrement();
    categoria.addStringProperty("nome").notNull();
    categoria.implementsSerializable();

    Entity item = schema.addEntity("Item");
    item.addIdProperty().autoincrement();
    item.addStringProperty("nome").notNull();
    item.addIntProperty("quantidade");
    item.addDoubleProperty("valorUnitario");
    item.addDoubleProperty("valorTotal");
    item.implementsSerializable();
    Property idCategoria = item.addLongProperty("idCategoria").notNull().getProperty();

    item.addToOne(categoria, idCategoria);
    categoria.addToMany(item, idCategoria, "itens");

    new DaoGenerator().generateAll(schema, "../mercadinho/src-gen");
}
 
开发者ID:ricardolonga,项目名称:mercadinho-generator,代码行数:23,代码来源:MercadinhoGenerator.java

示例3: addAccount

import de.greenrobot.daogenerator.Entity; //导入方法依赖的package包/类
private static void addAccount(Schema schema) {
    Entity account = schema.addEntity("Account");
    account.implementsSerializable();
    account.addIdProperty();
    account.addStringProperty("name").notNull();
    account.addStringProperty("ldap").notNull();
    account.addStringProperty("email");
    account.addStringProperty("phone");
    account.addStringProperty("dept");
    account.addStringProperty("googleAccount");
    account.addStringProperty("birth");
    account.addStringProperty("constellation");
}
 
开发者ID:bwzz,项目名称:yyl,代码行数:14,代码来源:MyDaoGenerator.java

示例4: addMsg

import de.greenrobot.daogenerator.Entity; //导入方法依赖的package包/类
/**
 * Msg
 *
 * @param schema
 */
private static void addMsg(Schema schema) {
    Entity entity = schema.addEntity("Msg");
    entity.implementsSerializable();
    entity.setHasKeepSections(true);
    entity.addLongProperty("id").primaryKey();
    entity.addStringProperty("title");
    entity.addStringProperty("user");
    entity.addStringProperty("content");
}
 
开发者ID:ourbeehive,项目名称:AndPlug,代码行数:15,代码来源:AppDaoGen.java

示例5: addAtUsersTable

import de.greenrobot.daogenerator.Entity; //导入方法依赖的package包/类
private static void addAtUsersTable(Schema schema) {

        Entity table = schema.addEntity("Green_AtUsersBean");
        table.setHasKeepSections(true);
        table.setTableName(AtUsersTable.TABLE_NAME);
        table.implementsSerializable();

        table.addStringProperty(AtUsersTable.ACCOUNTID);
        table.addStringProperty(AtUsersTable.AT_USERID);
        table.addStringProperty(AtUsersTable.AT_USER_INFO_JSON);
    }
 
开发者ID:andforce,项目名称:iBeebo,代码行数:12,代码来源:GreenDaoGen.java

示例6: addStatusTable

import de.greenrobot.daogenerator.Entity; //导入方法依赖的package包/类
private static void addStatusTable(Schema schema) {

        Entity table = schema.addEntity("Green_TimeLineStatus");
        table.setHasKeepSections(true);
        table.setTableName(TimeLineStatusTable.TABLE_NAME);
        table.implementsSerializable();

        table.addIntProperty(TimeLineStatusTable.ID);
        table.addStringProperty(TimeLineStatusTable.ACCOUNTID);
        table.addStringProperty(TimeLineStatusTable.MBLOGID);
        table.addStringProperty(TimeLineStatusTable.JSONDATA);

    }
 
开发者ID:andforce,项目名称:iBeebo,代码行数:14,代码来源:GreenDaoGen.java

示例7: addLessonsTable

import de.greenrobot.daogenerator.Entity; //导入方法依赖的package包/类
/**
 * Add "LESSONS" table to schema
 * @Since 1
 */
private static Entity addLessonsTable(Schema schema) {
    Entity lesson = schema.addEntity("LessonEntity");
    lesson.setTableName("LESSONS");
    lesson.addIdProperty().autoincrement();
    lesson.addStringProperty("lessonName").notNull();
    lesson.addBooleanProperty("userLesson").notNull();
    lesson.addStringProperty("imagePath").notNull();
    lesson.addBooleanProperty("bookmarked").notNull();
    lesson.implementsSerializable();
    return lesson;
}
 
开发者ID:bychkovdmitrii,项目名称:words,代码行数:16,代码来源:Generator.java

示例8: addFlashcardsTable

import de.greenrobot.daogenerator.Entity; //导入方法依赖的package包/类
/**
 * Add "FLASHCARDS" table to schema
 * @Since 1
 */
private static Entity addFlashcardsTable(Schema schema) {
    Entity word = schema.addEntity("FlashcardEntity");
    word.setTableName("FLASHCARDS");
    word.addIdProperty().autoincrement();
    word.addStringProperty("word").notNull();
    word.addStringProperty("definition").notNull();
    word.addIntProperty("status").notNull();
    word.implementsSerializable();
    return word;
}
 
开发者ID:bychkovdmitrii,项目名称:words,代码行数:15,代码来源:Generator.java

示例9: generateSeries

import de.greenrobot.daogenerator.Entity; //导入方法依赖的package包/类
private static void generateSeries(Schema schema) {
    Entity entity = schema.addEntity("Series");
    entity.addIntProperty("type").notNull();
    entity.addStringProperty("title").notNull();
    entity.setHasKeepSections(true);
    entity.implementsSerializable();
}
 
开发者ID:zhangdi0917,项目名称:SexyBelle,代码行数:8,代码来源:Main.java

示例10: createEntity

import de.greenrobot.daogenerator.Entity; //导入方法依赖的package包/类
public static Entity createEntity(Schema schema, EntityInformation info){
    Entity entity = schema.addEntity(info.entityName);

    entity.addIdProperty();
    addStringAttributesToEntity(entity, info.stringAttributes);
    addIntAttributesToEntity(entity, info.intAttributes);
    addBooleanAttributesToEntity(entity, info.booleanAttributes);
    addDateAttributesToEntity(entity, info.dateAttributes);
    entity.implementsSerializable();

    return entity;
}
 
开发者ID:unfoldingWord-dev,项目名称:uw-android,代码行数:13,代码来源:DaoHelperMethods.java

示例11: createExtendsImplements

import de.greenrobot.daogenerator.Entity; //导入方法依赖的package包/类
protected void createExtendsImplements() {
    Entity entity = schema.addEntity("ExtendsImplementsEntity");
    entity.addIdProperty();
    entity.addStringProperty("text");
    entity.setSuperclass("TestSuperclass");
    entity.implementsInterface("TestInterface");
    entity.implementsSerializable();
}
 
开发者ID:itsmechlark,项目名称:greendao-cipher,代码行数:9,代码来源:TestDaoGenerator.java


注:本文中的de.greenrobot.daogenerator.Entity.implementsSerializable方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。