cn.cliveyuan.robin.base.condition.AbstractQuery Maven / Gradle / Ivy
/*
* Copyright (c) 2020 Clive Yuan ([email protected]).
*/
package cn.cliveyuan.robin.base.condition;
import java.util.Objects;
/**
* 抽象查询
*
* @author Clive Yuan
* @date 2020/10/30
*/
public abstract class AbstractQuery extends ConditionExample implements Query {
private T entity;
@Override
public void setEntity(T entity) {
Objects.requireNonNull(entity);
this.entity = entity;
}
@Override
public void clear() {
super.clear();
entity = null;
}
@Override
public T getEntity() {
return entity;
}
}