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

cn.org.atool.fluent.mybatis.segment.BaseApply Maven / Gradle / Ivy

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

import cn.org.atool.fluent.mybatis.base.crud.IWrapper;
import cn.org.atool.fluent.mybatis.base.model.FieldMapping;
import cn.org.atool.fluent.mybatis.segment.fragment.Column;

/**
 * BaseApply
 *
 * @param  BaseApply子类
 * @param        查询(更新)器
 * @author darui.wu
 */
@SuppressWarnings({"rawtypes", "unused"})
public abstract class BaseApply<
    SEGMENT extends BaseSegment,
    W extends IWrapper
    > {

    public final SEGMENT segment;

    /**
     * 当前被操作的字段
     *
     * @return FieldMapping
     */
    public FieldMapping current() {
        return this.segment.current;
    }

    /**
     * 当前被操作的字段
     *
     * @return Column
     */
    public Column column() {
        return Column.set(this.segment.wrapper, this.segment.current);
    }

    BaseApply(SEGMENT segment) {
        this.segment = segment;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy