
cn.org.atool.fluent.mybatis.segment.BaseApply Maven / Gradle / Ivy
package cn.org.atool.fluent.mybatis.segment;
import cn.org.atool.fluent.mybatis.base.crud.IWrapper;
import cn.org.atool.fluent.mybatis.base.model.Column;
import cn.org.atool.fluent.mybatis.base.model.FieldMapping;
/**
* BaseApply
*
* @param BaseApply子类
* @param 查询(更新)器
* @author darui.wu
*/
@SuppressWarnings({"rawtypes", "unused"})
public abstract class BaseApply<
SEGMENT extends BaseSegment,
W extends IWrapper, W, ?>
> {
public final SEGMENT segment;
/**
* 当前被操作的字段
*
* @return FieldMapping
*/
public FieldMapping current() {
return this.segment.current;
}
/**
* 当前被操作的字段
*
* @return Column
*/
public Column column() {
return Column.column(this.segment.current, this.segment.wrapper);
}
BaseApply(SEGMENT segment) {
this.segment = segment;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy