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

group.flyfish.fluent.chain.SQLSegment Maven / Gradle / Ivy

package group.flyfish.fluent.chain;

import group.flyfish.fluent.utils.sql.SqlNameUtils;

/**
 * sql片段
 *
 * @author wangyu
 */
@FunctionalInterface
public interface SQLSegment {

    /**
     * @return 得到sql片段
     */
    String get();

    /**
     * 类型强转,请慎用,除非你知道真实类型
     *
     * @param value 任意类型值
     * @param    入参泛型
     * @param    出参泛型
     * @return 转换类型值
     */
    default  R cast(T value) {
        return SqlNameUtils.cast(value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy