private static void addDownloadLabel(Schema schema) { Entity entity = schema.addEntity("DownloadLabel"); entity.setTableName("DOWNLOAD_LABELS"); entity.setClassNameDao("DownloadLabelDao"); entity.addIdProperty(); entity.addStringProperty("label"); entity.addLongProperty("time").notNull(); }
private static void addFilter(Schema schema) { Entity entity = schema.addEntity("Filter"); entity.setTableName("FILTER"); entity.setClassNameDao("FilterDao"); entity.addIdProperty(); entity.addIntProperty("mode").notNull(); entity.addStringProperty("text"); entity.addBooleanProperty("enable"); }
private static void addQuickSearch(Schema schema) { Entity entity = schema.addEntity("QuickSearch"); entity.setTableName("QUICK_SEARCH"); entity.setClassNameDao("QuickSearchDao"); entity.addIdProperty(); entity.addStringProperty("name"); entity.addIntProperty("mode").notNull(); entity.addIntProperty("category").notNull(); entity.addStringProperty("keyword"); entity.addIntProperty("advanceSearch").notNull(); entity.addIntProperty("minRating").notNull(); entity.addLongProperty("time").notNull(); }
private static Entity getContactItemEntity(Schema schema) { Entity contactItem = schema.addEntity("Contact"); contactItem.addIdProperty(); contactItem.addStringProperty("name"); contactItem.addStringProperty("email"); return contactItem; }
static Entity getAddressBookEntity(Schema schema) { Entity addressBook = schema.addEntity("AddressBook"); addressBook.addIdProperty(); addressBook.addStringProperty("name"); addressBook.addStringProperty("author"); return addressBook; } }
private static void addTopStory(Schema schema) { //创建实体类,TopStory则是表明 Entity topStory = schema.addEntity("SavedTopStory"); topStory.addIdProperty(); topStory.addStringProperty("image"); topStory.addStringProperty("title"); }
private static void addUser(Schema schema){ Entity user = schema.addEntity("User"); user.addIdProperty(); user.addStringProperty("name"); user.addIntProperty("age"); }
private static void generatePriceAndState(Schema schema) { Entity holiday = schema.addEntity("PriceTable"); // holiday.setTableName("HolidayTable"); //设置表名 // holiday.setClassNameDao("HolidayDao"); //Dao名 holiday.addIdProperty().primaryKey(); holiday.addStringProperty(PRODUCTNAME); holiday.addStringProperty(ITEMNAME); holiday.addStringProperty(UPDATETIME); }
private static void addNote(Schema schema) { Entity note = schema.addEntity("Note"); note.addIdProperty(); note.addStringProperty("text").notNull(); note.addStringProperty("comment"); note.addDateProperty("date"); }
private static void addStory(Schema schema) { Entity savedStory = schema.addEntity("SavedStory"); savedStory.addIdProperty(); savedStory.addStringProperty("image"); savedStory.addStringProperty("title"); savedStory.addStringProperty("date"); savedStory.addIntProperty("position"); }
/** * 客户表 * @param schema */ private static void addCustomer(Schema schema) { Entity note = schema.addEntity("Customer"); note.addIdProperty().autoincrement().primaryKey(); note.addStringProperty("name"); note.addStringProperty("phone"); note.addStringProperty("cretetime"); }
private static void addPlace(Schema schema) { Entity card = schema.addEntity("Place"); card.addIdProperty().primaryKey(); card.addStringProperty("label"); card.addStringProperty("name"); card.addStringProperty("pinyin"); card.addStringProperty("province"); } }
static Entity getAddressItemEntity(Schema schema, String name) { Entity simpleAddressItem = schema.addEntity(name); simpleAddressItem.addIdProperty(); simpleAddressItem.addStringProperty("name"); simpleAddressItem.addStringProperty("address"); simpleAddressItem.addStringProperty("city"); simpleAddressItem.addStringProperty("state"); simpleAddressItem.addLongProperty("phone"); return simpleAddressItem; }
/** * @param schema */ private static void addNotice(Schema schema) { Entity note = schema.addEntity("Notice"); note.addIdProperty().autoincrement().primaryKey(); note.addStringProperty("pushContent"); note.addStringProperty("targetid"); note.addStringProperty("time"); }
private static void generateProductEntity(Schema schema) { Entity product = schema.addEntity("ProductTable"); product.setClassNameDao("ProductDao"); product.setTableName("ProductTable"); // product.setHasKeepSections(true); product.addIdProperty().primaryKey(); product.addStringProperty(PRODUCTNAME); product.addStringProperty(UPDATETIME); } }
private static void addUser(Schema schema) { Entity user = schema.addEntity("IpInfo"); user.addIdProperty().primaryKey(); user.addStringProperty("country"); user.addDoubleProperty("country_id"); user.addDoubleProperty("area"); user.addDoubleProperty("area_id"); user.addDoubleProperty("ip"); }
private static void addStoryDetail(Schema schema) { Entity savedDailyDetail = schema.addEntity("SavedDailyDetail"); savedDailyDetail.addIdProperty(); savedDailyDetail.addStringProperty("body"); savedDailyDetail.addStringProperty("image_source"); savedDailyDetail.addStringProperty("image"); savedDailyDetail.addStringProperty("title"); savedDailyDetail.addStringProperty("share_url"); savedDailyDetail.addStringProperty("js"); savedDailyDetail.addStringProperty("css"); } }
private static void addPictureInfoTable(Schema schema) { Entity entity = schema.addEntity("PictureInfo"); entity.addIdProperty(); entity.addStringProperty("path").notNull(); entity.addStringProperty("distance").notNull(); entity.addStringProperty("time").notNull(); entity.addStringProperty("tips"); } }
/** * 产品库表 * @param schema */ private static void addProduct(Schema schema) { Entity note = schema.addEntity("Product"); note.addIdProperty().autoincrement().primaryKey(); note.addStringProperty("porductName"); note.addIntProperty("basePrice"); note.addStringProperty("image"); note.addStringProperty("desc"); note.addStringProperty("cretetime"); }
/** * 订单表 * @param schema */ private static void addOrder(Schema schema) { Entity note = schema.addEntity("Order"); note.addIdProperty().autoincrement().primaryKey(); note.addIntProperty("cid"); note.addStringProperty("name"); note.addIntProperty("price"); note.addIntProperty("finalPrice"); note.addStringProperty("status"); note.addStringProperty("cretetime"); } }