de.greenrobot.daogenerator.Entity.addBooleanProperty()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中de.greenrobot.daogenerator.Entity.addBooleanProperty()方法的一些代码示例,展示了Entity.addBooleanProperty()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.addBooleanProperty()方法的具体详情如下:
包路径:de.greenrobot.daogenerator.Entity
类名称:Entity
方法名:addBooleanProperty

Entity.addBooleanProperty介绍

暂无

代码示例

代码示例来源:origin: seven332/EhViewer

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");
}

代码示例来源:origin: oubowu/OuNews

private static void addTable(Schema schema) {
  Entity note = schema.addEntity("NewsChannelTable");
  //        note.addIdProperty();
  /**
   * 频道名称
   */
  note.addStringProperty("newsChannelName").notNull().primaryKey().index();
  /**
   * 频道id
   */
  note.addStringProperty("newsChannelId").notNull();
  /**
   * 频道类型
   */
  note.addStringProperty("newsChannelType").notNull();
  /**
   * 选中的频道
   */
  note.addBooleanProperty("newsChannelSelect").notNull();
  /**
   * 频道的排序位置
   */
  note.addIntProperty("newsChannelIndex").notNull();
  /**
   * 频道是否是固定的
   */
  note.addBooleanProperty("newsChannelFixed");
}

代码示例来源:origin: kaku2015/ColorfulNews

entity.addBooleanProperty("newsChannelSelect").notNull();
entity.addBooleanProperty("newsChannelFixed");

代码示例来源:origin: ghbhaha/MyWeather

private static void addUseArea(Schema schema) {
  Entity weekForeCast = schema.addEntity("UseArea");
  weekForeCast.addStringProperty("areaid");
  weekForeCast.addStringProperty("areaid2345");
  weekForeCast.addStringProperty("areaName");
  weekForeCast.addBooleanProperty("main");
}

代码示例来源:origin: devinhu/androidone

/**
 * @param schema
 */
private static void addChannelItem(Schema schema) {
  Entity note = schema.addEntity("ChannelItem");
  note.addLongProperty("id").notNull().primaryKey();
  note.addStringProperty("name");
  note.addIntProperty("channel");
  note.addIntProperty("orderId");
  note.addIntProperty("selected");
  note.addStringProperty("type");
  note.addStringProperty("link");
  note.addStringProperty("imgSource");
  note.addBooleanProperty("downloadCnt");
  note.addBooleanProperty("isSelected");
  note.addBooleanProperty("isAttention");
}

代码示例来源:origin: WellerV/SweetMusicPlayer

public static void addMusicInfo(Schema schema) {
  Entity entity = schema.addEntity("MusicInfo");
  entity.addLongProperty("songId").primaryKey();
  entity.addLongProperty("albumId");
  entity.addLongProperty("artistId");
  entity.addStringProperty("title");
  entity.addStringProperty("artist");
  entity.addIntProperty("duration");
  entity.addStringProperty("path");
  entity.addBooleanProperty("favorite");
}

代码示例来源:origin: devinhu/androidone

/**
 * 采购表
 * @param schema
 */
private static void addPurchase(Schema schema) {
  Entity note = schema.addEntity("Purchase");
  note.addIdProperty().autoincrement().primaryKey();
  note.addIntProperty("pid");
  note.addStringProperty("porductName");
  note.addIntProperty("basePrice");
  note.addStringProperty("image");
  note.addStringProperty("desc");
  note.addIntProperty("number");
  note.addIntProperty("price");
  note.addStringProperty("status");
  note.addBooleanProperty("planflag");
  note.addStringProperty("cretetime");
}

相关文章