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

net.hasor.dataql.fx.FxHintNames Maven / Gradle / Ivy

There is a newer version: 4.2.5
Show newest version
/*
 * Copyright 2008-2009 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.hasor.dataql.fx;
import static net.hasor.dataql.fx.FxHintValue.*;

/**
 * Hint 的 keys 定义。
 * @author 赵永春 ([email protected])
 * @version : 2017-03-23
 */
public enum FxHintNames {
    /** SqlFragment 返回值,拆开方式 */
    FRAGMENT_SQL_OPEN_PACKAGE(FRAGMENT_SQL_OPEN_PACKAGE_COLUMN),
    /** SqlFragment 返回的列信息大小写模式:default、upper、lower、hump */
    FRAGMENT_SQL_COLUMN_CASE(FRAGMENT_SQL_COLUMN_CASE_DEFAULT),
    /** SqlFragment 查询执行是否使用分页模式(默认:不使用) */
    FRAGMENT_SQL_QUERY_BY_PAGE(FRAGMENT_SQL_QUERY_BY_PAGE_DISABLE),
    /**
     * SqlFragment 在执行分页查询时,设置的当前页码偏移量。原始的 currentPage 规定启始页码是从 0 开始。在某些场景下 1开始会比较好理解,这时候就可以设施偏移量 为 1。
     * 

当设置偏移量之后,真实的 currentPage 值计算方式为:yourCurrentPage - FRAGMENT_SQL_QUERY_BY_PAGE_NUMBER_OFFSET 结果如果小于等于0,那么设置为 0

*/ FRAGMENT_SQL_QUERY_BY_PAGE_NUMBER_OFFSET("0"), /** SqlFragment 分页查询在改写分页查询语句时使用的方言(默认:空,需要明确指定) */ FRAGMENT_SQL_PAGE_DIALECT(""), /** SqlFragment 数据源名字 */ FRAGMENT_SQL_DATA_SOURCE(""), /** SqlFragment 当遇到多条 SQL 同时执行时,结果集的行为(默认:返回最后一个结果) */ FRAGMENT_SQL_MULTIPLE_QUERIES(FRAGMENT_SQL_MULTIPLE_QUERIES_LAST), ; // private final String defaultVal; public String getDefaultVal() { return this.defaultVal; } FxHintNames(String defaultVal) { this.defaultVal = defaultVal; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy