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

cn.org.atool.fluent.mybatis.base.crud.EmptyWrapper Maven / Gradle / Ivy

There is a newer version: 1.9.9
Show newest version
package cn.org.atool.fluent.mybatis.base.crud;

import cn.org.atool.fluent.mybatis.base.entity.IMapping;
import cn.org.atool.fluent.mybatis.segment.WhereBase;
import cn.org.atool.fluent.mybatis.segment.fragment.IFragment;
import cn.org.atool.fluent.mybatis.segment.model.WrapperData;

import java.util.List;
import java.util.Optional;

/**
 * IWrapper空实现
 *
 * @author darui.wu
 */
@SuppressWarnings("rawtypes")
public class EmptyWrapper implements IWrapper {
    public static final EmptyWrapper INSTANCE = new EmptyWrapper();

    private EmptyWrapper() {
    }

    @Override
    public WhereBase where() {
        throw new RuntimeException("not support.");
    }

    @Override
    public WrapperData data() {
        throw new RuntimeException("not support.");
    }

    @Override
    public IFragment table(boolean notFoundError) {
        throw new RuntimeException("not support.");
    }

    @Override
    public Optional mapping() {
        throw new RuntimeException("not support.");
    }

    @Override
    public List allFields() {
        throw new RuntimeException("not support.");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy