All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.cliveyuan.robin.base.condition.AbstractQuery Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
/*
 * 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy