本文整理汇总了Java中com.querydsl.jpa.impl.JPADeleteClause类的典型用法代码示例。如果您正苦于以下问题:Java JPADeleteClause类的具体用法?Java JPADeleteClause怎么用?Java JPADeleteClause使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JPADeleteClause类属于com.querydsl.jpa.impl包,在下文中一共展示了JPADeleteClause类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: delete
import com.querydsl.jpa.impl.JPADeleteClause; //导入依赖的package包/类
@Override
public long delete(@NotNull BiConsumer<FilteredClause<?>, E> predicate) {
PathBuilder<E> entity = newQueryEntity();
JPADeleteClause q = newDeleteClause(entity);
predicate.accept(q, alias(getEntityType(), entity));
return q.execute();
}
示例2: delete
import com.querydsl.jpa.impl.JPADeleteClause; //导入依赖的package包/类
@Override
public DeleteClause<?> delete(EntityPath<?> path) {
return new JPADeleteClause(getEntityManager(), path);
}
示例3: newDeleteClause
import com.querydsl.jpa.impl.JPADeleteClause; //导入依赖的package包/类
@NotNull
protected
JPADeleteClause newDeleteClause(@NotNull EntityPath<?> q) {
return new JPADeleteClause(em(), q);
}
示例4: getDeleteClause
import com.querydsl.jpa.impl.JPADeleteClause; //导入依赖的package包/类
/**
* @return the deleteClause
*/
public JPADeleteClause getDeleteClause() {
return deleteClause;
}
示例5: AbstractDeleteQuery
import com.querydsl.jpa.impl.JPADeleteClause; //导入依赖的package包/类
/**
* Default constructor accepting entity manager and entity path class.
*
* @param entityManager
* JPA entity manager instance used to perform actual query
* @param path
* JPA entity queryDSL path
*/
public AbstractDeleteQuery(EntityManager entityManager, T path) {
this.path = path;
deleteClause = new JPADeleteClause(entityManager, path);
}