本文整理汇总了Java中com.mysema.query.jpa.impl.JPADeleteClause类的典型用法代码示例。如果您正苦于以下问题:Java JPADeleteClause类的具体用法?Java JPADeleteClause怎么用?Java JPADeleteClause使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JPADeleteClause类属于com.mysema.query.jpa.impl包,在下文中一共展示了JPADeleteClause类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: clearDatabase
import com.mysema.query.jpa.impl.JPADeleteClause; //导入依赖的package包/类
@After
public void clearDatabase() throws Exception {
utx.begin();
em.joinTransaction();
new JPADeleteClause(em, QReport.report).execute();
new JPADeleteClause(em, QReportLine.reportLine).execute();
utx.commit();
}
示例2: delete
import com.mysema.query.jpa.impl.JPADeleteClause; //导入依赖的package包/类
public JPADeleteClause delete(EntityPath<?> path) {
return new JPADeleteClause(entityManager, path);
}
示例3: delete
import com.mysema.query.jpa.impl.JPADeleteClause; //导入依赖的package包/类
private void delete() {
getEntityManager().getTransaction().begin();
new JPADeleteClause(getEntityManager(), QBlogEntry.blogEntry).execute();
getEntityManager().getTransaction().commit();
}
示例4: deleteAll
import com.mysema.query.jpa.impl.JPADeleteClause; //导入依赖的package包/类
@Override
public long deleteAll(Predicate predicate) {
JPADeleteClause query = new JPADeleteClause(entityManager, metamodel);
applyWhere(query, predicate);
return query.execute();
}
示例5: delete
import com.mysema.query.jpa.impl.JPADeleteClause; //导入依赖的package包/类
public JPADeleteClause delete(EntityPath<?> path) {
return new JPADeleteClause(entityManager, path, jpqlDialect);
}