亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? expression.java

?? 非常棒的java數據庫
?? JAVA
字號:
/*
 * Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
 * (http://h2database.com/html/license.html).
 * Initial Developer: H2 Group
 */
package org.h2.expression;

import java.sql.SQLException;

import org.h2.command.dml.Select;
import org.h2.engine.Session;
import org.h2.table.Column;
import org.h2.table.ColumnResolver;
import org.h2.table.TableFilter;
import org.h2.util.StringUtils;
import org.h2.value.Value;

/**
 * An expression is a operation, a value, or a function in a query.
 */
public abstract class Expression {

    private boolean addedToFilter;

    /**
     * Return the resulting value for the current row.
     *
     * @param session the session
     * @return the result
     */
    public abstract Value getValue(Session session) throws SQLException;

    /**
     * Return the data type. The data type may not be known before the
     * optimization phase.
     * 
     * @return the type
     */
    public abstract int getType();

    /**
     * Map the columns of the resolver to expression columns.
     *
     * @param resolver the column resolver
     * @param level the subquery nesting level
     */
    public abstract void mapColumns(ColumnResolver resolver, int level) throws SQLException;

    /**
     * Try to optimize the expression.
     *
     * @param session the session
     * @return the optimized expression
     */
    public abstract Expression optimize(Session session) throws SQLException;

    /**
     * Tell the expression columns whether the table filter can return values now.
     * This is used when optimizing the query.
     *
     * @param tableFilter the table filter
     * @param value true if the table filter can return value
     */
    public abstract void setEvaluatable(TableFilter tableFilter, boolean value);

    /**
     * Get the scale of this expression.
     *
     * @return the scale
     */
    public abstract int getScale();

    /**
     * Get the precision of this expression.
     *
     * @return the precision
     */
    public abstract long getPrecision();

    /**
     * Get the display size of this expression.
     *
     * @return the display size
     */
    public abstract int getDisplaySize();

    /**
     * Get the SQL statement of this expression.
     * This may not always be the original SQL statement,
     * specially after optimization.
     *
     * @return the SQL statement
     */
    public abstract String getSQL();

    /**
     * Update an aggregate value.
     * This method is called at statement execution time once for each row.
     *
     * @param session the session
     */
    public abstract void updateAggregate(Session session) throws SQLException;

    /**
     * Check if this expression and all sub-expressions can fulfill a criteria.
     * If any part returns false, the result is false.
     *
     * @param visitor the visitor
     * @return if the criteria can be fulfilled
     */
    public abstract boolean isEverything(ExpressionVisitor visitor);

    /**
     * Estimate the cost to process the expression.
     * Used when optimizing the query, to calculate the query plan
     * with the lowest estimated cost.
     *
     * @return the estimated cost
     */
    public abstract int getCost();

    /**
     * Check if this expression and all sub-expressions can fulfill a criteria.
     * This is a convenience function.
     *
     * @param expressionVisitorType the visitor type
     * @return if the criteria can be fulfilled
     */
    public final boolean isEverything(int expressionVisitorType) {
        ExpressionVisitor visitor = ExpressionVisitor.get(expressionVisitorType);
        return isEverything(visitor);
    }

    /**
     * If it is possible, return the negated expression. This is used
     * to optimize NOT expressions: NOT ID>10 can be converted to
     * ID<=10. Returns null if negating is not possible.
     *
     * @param session the session
     * @return the negated expression, or null
     */
    public Expression getNotIfPossible(Session session) {
        // by default it is not possible
        return null;
    }

    /**
     * Check if this expression will always return the same value.
     *
     * @return if the expression is constant
     */
    public boolean isConstant() {
        return false;
    }

    /**
     * Is the value of a parameter set.
     *
     * @return if it is set
     */
    public boolean isValueSet() {
        return false;
    }

    /**
     * Check if this is an auto-increment column.
     *
     * @return true if it is an auto-increment column
     */
    public boolean isAutoIncrement() {
        return false;
    }

    /**
     * Get the value in form of a boolean expression.
     * Returns true, false, or null.
     * In this database, everything can be a condition.
     *
     * @param session the session
     * @return the result
     */
    public Boolean getBooleanValue(Session session) throws SQLException {
        return getValue(session).getBoolean();
    }

    /**
     * Create index conditions if possible and attach them to the table filter.
     *
     * @param session the session
     * @param filter the table filter
     */
    public void createIndexConditions(Session session, TableFilter filter) throws SQLException {
        // default is do nothing
    }

    /**
     * Get the column name or alias name of this expression.
     *
     * @return the column name
     */
    public String getColumnName() {
        return getAlias();
    }

    /**
     * Get the schema name, or null
     *
     * @return the schema name
     */
    public String getSchemaName() {
        return null;
    }

    /**
     * Get the table name, or null
     *
     * @return the table name
     */
    public String getTableName() {
        return null;
    }

    /**
     * Check whether this expression is a column and can store null values.
     *
     * @return whether null values are allowed
     */
    public int getNullable() {
        return Column.NULLABLE_UNKNOWN;
    }

    /**
     * Get the table alias name or null
     * if this expression does not represent a column.
     *
     * @return the table alias name
     */
    public String getTableAlias() {
        return null;
    }

    /**
     * Get the alias name of a column or SQL expression
     * if it is not an aliased expression.
     *
     * @return the alias name
     */
    public String getAlias() {
        return StringUtils.unEnclose(getSQL());
    }

    /**
     * Only returns true if the expression is a wildcard.
     *
     * @return if this expression is a wildcard
     */
    public boolean isWildcard() {
        return false;
    }

    /**
     * Returns the main expression, skipping aliases.
     *
     * @return the expression
     */
    public Expression getNonAliasExpression() {
        return this;
    }

    /**
     * Add conditions to a table filter if they can be evaluated.
     *
     * @param filter the table filter
     * @param outerJoin if the expression is part of an outer join
     */
    public void addFilterConditions(TableFilter filter, boolean outerJoin) {
        if (!addedToFilter && !outerJoin && isEverything(ExpressionVisitor.EVALUATABLE)) {
            filter.addFilterCondition(this, false);
            addedToFilter = true;
        }
    }

    /**
     * Convert this expression to a String.
     *
     * @return the string representation
     */
    public String toString() {
        return getSQL();
    }

    /**
     * Optimize IN(...) expressions if possible.
     *
     * @param session the session
     * @param select the query
     * @return the optimized expression
     */
    public Expression optimizeInJoin(Session session, Select select) throws SQLException {
        return this;
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
爽好多水快深点欧美视频| 91麻豆国产福利在线观看| 亚洲四区在线观看| 久久久久国产精品麻豆| 日韩免费高清电影| 精品嫩草影院久久| 日韩一区二区中文字幕| 欧美一区二区在线播放| 在线成人av网站| 欧美高清一级片在线| 欧美一三区三区四区免费在线看| 欧美日韩mp4| 91精品视频网| 精品欧美一区二区久久| 精品国产乱码久久久久久闺蜜| 欧美成人一区二区三区片免费| 精品91自产拍在线观看一区| 久久综合九色欧美综合狠狠| 久久久一区二区三区捆绑**| 国产精品污污网站在线观看| 亚洲免费在线视频| 丝袜美腿亚洲一区| 麻豆精品在线视频| 国产成人综合在线| 91同城在线观看| 在线电影国产精品| 欧美国产视频在线| 亚洲激情男女视频| 日本亚洲电影天堂| 国产一区二区三区黄视频| 成人18视频日本| 欧美伊人精品成人久久综合97| 91精品国产一区二区三区| 日韩一区二区三区在线观看| 欧美国产一区在线| 日韩在线观看一区二区| 国产成人在线观看免费网站| 91麻豆6部合集magnet| 欧美一级理论片| 国产精品三级久久久久三级| 午夜在线成人av| 国产福利一区在线观看| 欧美日韩综合一区| 亚洲国产精品成人久久综合一区 | 欧美三级欧美一级| 日韩欧美国产系列| 伊人色综合久久天天人手人婷| 蜜臀av性久久久久av蜜臀妖精| aaa国产一区| 欧美一二三四区在线| 亚洲精品乱码久久久久久黑人| 精品一区二区在线免费观看| 日本久久精品电影| 国产精品美女久久福利网站| 久久精品久久精品| 日本高清免费不卡视频| 欧美经典三级视频一区二区三区| 午夜国产精品影院在线观看| 亚洲va韩国va欧美va精品| 亚洲成精国产精品女| 成人做爰69片免费看网站| 欧美一区二区三区四区高清| 国产精品久久久久久户外露出 | 久久精品国产成人一区二区三区| 不卡视频在线看| 精品成人佐山爱一区二区| 亚洲成人av一区二区三区| a美女胸又www黄视频久久| 26uuu国产在线精品一区二区| 午夜视频一区二区| 欧日韩精品视频| 亚洲精品久久嫩草网站秘色| 成人高清视频免费观看| 久久久久久久久久美女| 美国三级日本三级久久99| 欧美军同video69gay| 亚洲大型综合色站| 欧美日韩精品福利| 亚洲电影中文字幕在线观看| 色综合久久久久| 亚洲乱码中文字幕| 91丝袜呻吟高潮美腿白嫩在线观看| 中文字幕一区在线观看视频| 成人激情综合网站| 国产精品不卡在线观看| 99久久99精品久久久久久| 中文字幕中文字幕在线一区| 99久久综合精品| 亚洲欧美一区二区三区国产精品| 色综合色综合色综合| 亚洲最新在线观看| 欧美天天综合网| 视频一区二区中文字幕| 91.成人天堂一区| 久88久久88久久久| 欧美高清在线一区二区| 99国产精品久| 亚洲电影在线播放| 欧美不卡一区二区| 成人黄色网址在线观看| 亚洲免费三区一区二区| 欧美三级午夜理伦三级中视频| 日韩国产一二三区| 久久丝袜美腿综合| 91麻豆国产福利在线观看| 亚洲6080在线| 2021国产精品久久精品 | 国产农村妇女精品| 欧美影院午夜播放| 精久久久久久久久久久| 国产精品青草久久| 欧美人xxxx| 高清视频一区二区| 亚洲国产精品一区二区久久恐怖片| 日韩欧美在线观看一区二区三区| 丁香桃色午夜亚洲一区二区三区| 亚洲永久免费视频| 久久久91精品国产一区二区三区| 色综合天天综合给合国产| 日本不卡123| 亚洲女与黑人做爰| 久久蜜桃av一区二区天堂| 在线一区二区观看| 国产91精品入口| 日韩成人精品在线观看| 国产精品美女久久久久高潮| 91精品国产91久久久久久最新毛片 | 成人网页在线观看| 天天做天天摸天天爽国产一区| 国产女人18毛片水真多成人如厕| 色婷婷综合视频在线观看| 免费高清在线一区| 国产三级欧美三级| 欧美一级理论片| 欧美在线色视频| 99国产精品久久| 国产不卡在线一区| 狠狠狠色丁香婷婷综合激情| 午夜在线成人av| 亚洲精品国产一区二区精华液| 国产亚洲精品久| 亚洲精品在线三区| 91精品国产综合久久精品app | 亚洲综合免费观看高清完整版 | 欧美一卡二卡三卡四卡| 在线中文字幕一区| 91在线国内视频| 成人免费av在线| 国产v综合v亚洲欧| 国产伦理精品不卡| 99久久亚洲一区二区三区青草| 6080国产精品一区二区| 欧美私模裸体表演在线观看| 99久久久免费精品国产一区二区| 风间由美一区二区三区在线观看 | 日韩精品乱码免费| 亚洲国产精品久久艾草纯爱| 中文字幕亚洲区| 国产精品视频免费看| 国产区在线观看成人精品| 久久免费视频色| 国产亚洲精久久久久久| 国产视频不卡一区| 国产精品久久久久久久久免费桃花| 欧美国产日韩精品免费观看| 国产精品私人自拍| 国产精品不卡在线| 一区二区成人在线| 日韩专区在线视频| 久久精品国产亚洲一区二区三区| 麻豆成人免费电影| 国产成人av电影免费在线观看| 成人午夜免费av| 一本大道综合伊人精品热热| 日本电影欧美片| 欧美一区二区性放荡片| 精品国产一二三区| 国产精品乱码一区二区三区软件| 亚洲免费观看高清完整版在线| 亚洲国产视频一区二区| 日本亚洲欧美天堂免费| 国产一区 二区| 91麻豆蜜桃一区二区三区| 欧美午夜在线一二页| 欧美成人性福生活免费看| 国产精品无圣光一区二区| 亚洲一区二区五区| 韩国v欧美v亚洲v日本v| 91欧美激情一区二区三区成人| 欧美日韩不卡一区| 国产欧美日韩视频在线观看| 亚洲精品videosex极品| 免播放器亚洲一区| 91视频国产观看| 日韩欧美在线综合网| 亚洲精品大片www| 国产精品一二二区| 7777精品伊人久久久大香线蕉经典版下载 | 91精品国产91热久久久做人人| 亚洲一区免费在线观看|