com.avaje.ebean.Ebean.delete()方法的使用及代码示例

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

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

Ebean.delete介绍

[英]Delete the bean given its type and id.
[中]根据bean的类型和id删除该bean。

代码示例

代码示例来源:origin: com.typesafe.play/play-java-ebean

/**
 * Deletes this entity.
 */
public void delete() {
  Ebean.delete(this);
}

代码示例来源:origin: org.avaje.ebeanorm/avaje-ebeanorm-api

/**
 * Delete all the beans from a Collection.
 */
public static int delete(Collection<?> c) throws OptimisticLockException {
 return delete(c.iterator());
}

代码示例来源:origin: org.avaje/ebean

/**
 * Delete all the beans from a Collection.
 */
public static int delete(Collection<?> c) throws OptimisticLockException {
  return delete(c.iterator());
}

代码示例来源:origin: MrNeuronix/IRISv2

@Override
public synchronized void delete()
{
  if (this.getId() == null)
  {
    Ebean.delete(this);
  }
}

代码示例来源:origin: MrNeuronix/IRISv2

public static void release(String title)
{
  Ebean.delete(Ebean.find(ScriptLock.class).where().eq("title", title).findUnique());
}

相关文章