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

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

?? h2dialect.java.txt

?? 非常棒的java數據庫
?? TXT
字號:
package org.hibernate.dialect;

import java.sql.SQLException;
import java.sql.Types;

import org.hibernate.Hibernate;
import org.hibernate.cfg.Environment;
import org.hibernate.dialect.function.NoArgSQLFunction;
import org.hibernate.dialect.function.StandardSQLFunction;
import org.hibernate.dialect.function.VarArgsSQLFunction;
import org.hibernate.exception.TemplatedViolatedConstraintNameExtracter;
import org.hibernate.exception.ViolatedConstraintNameExtracter;
import org.hibernate.util.ReflectHelper;

/**
 * A dialect compatible with the H2 database.
 *
 * @author Thomas Mueller
 *
 */
public class H2Dialect extends Dialect {

    private String querySequenceString;

    public H2Dialect() {
        super();
        querySequenceString = "select sequence_name from information_schema.sequences";
        registerColumnType(Types.BOOLEAN, "boolean");
        registerColumnType(Types.BIGINT, "bigint");
        registerColumnType(Types.BINARY, "binary");
        registerColumnType(Types.BIT, "boolean");
        registerColumnType(Types.CHAR, "varchar($l)");
        registerColumnType(Types.DATE, "date");
        registerColumnType(Types.DECIMAL, "decimal($p,$s)");
        registerColumnType(Types.DOUBLE, "double");
        registerColumnType(Types.FLOAT, "float");
        registerColumnType(Types.INTEGER, "integer");
        registerColumnType(Types.LONGVARBINARY, "longvarbinary");
        registerColumnType(Types.LONGVARCHAR, "longvarchar");
        registerColumnType(Types.REAL, "real");
        registerColumnType(Types.SMALLINT, "smallint");
        registerColumnType(Types.TINYINT, "tinyint");
        registerColumnType(Types.TIME, "time");
        registerColumnType(Types.TIMESTAMP, "timestamp");
        registerColumnType(Types.VARCHAR, "varchar($l)");
        registerColumnType(Types.VARBINARY, "binary($l)");
        registerColumnType(Types.NUMERIC, "numeric");
        registerColumnType(Types.BLOB, "blob");
        registerColumnType(Types.CLOB, "clob");

        // select topic, syntax from information_schema.help
        // where section like 'Function%' order by section, topic

//        registerFunction("abs", new StandardSQLFunction("abs"));
        registerFunction("acos", new StandardSQLFunction("acos", Hibernate.DOUBLE));
        registerFunction("asin", new StandardSQLFunction("asin", Hibernate.DOUBLE));
        registerFunction("atan", new StandardSQLFunction("atan", Hibernate.DOUBLE));
        registerFunction("atan2", new StandardSQLFunction("atan2", Hibernate.DOUBLE));
        registerFunction("bitand", new StandardSQLFunction("bitand", Hibernate.INTEGER));
        registerFunction("bitor", new StandardSQLFunction("bitor", Hibernate.INTEGER));
        registerFunction("bitxor", new StandardSQLFunction("bitxor", Hibernate.INTEGER));
        registerFunction("ceiling", new StandardSQLFunction("ceiling", Hibernate.DOUBLE));
        registerFunction("cos", new StandardSQLFunction("cos", Hibernate.DOUBLE));
        registerFunction("cot", new StandardSQLFunction("cot", Hibernate.DOUBLE));
        registerFunction("degrees", new StandardSQLFunction("degrees", Hibernate.DOUBLE));
        registerFunction("exp", new StandardSQLFunction("exp", Hibernate.DOUBLE));
        registerFunction("floor", new StandardSQLFunction("floor", Hibernate.DOUBLE));
        registerFunction("log", new StandardSQLFunction("log", Hibernate.DOUBLE));
        registerFunction("log10", new StandardSQLFunction("log10", Hibernate.DOUBLE));
//        registerFunction("mod", new StandardSQLFunction("mod", Hibernate.INTEGER));
        registerFunction("pi", new NoArgSQLFunction("pi", Hibernate.DOUBLE));
        registerFunction("power", new StandardSQLFunction("power", Hibernate.DOUBLE));
        registerFunction("radians", new StandardSQLFunction("radians", Hibernate.DOUBLE));
        registerFunction("rand", new NoArgSQLFunction("rand", Hibernate.DOUBLE));
        registerFunction("round", new StandardSQLFunction("round", Hibernate.DOUBLE));
        registerFunction("roundmagic", new StandardSQLFunction("roundmagic", Hibernate.DOUBLE));
        registerFunction("sign", new StandardSQLFunction("sign", Hibernate.INTEGER));
        registerFunction("sin", new StandardSQLFunction("sin", Hibernate.DOUBLE));
//        registerFunction("sqrt", new StandardSQLFunction("sqrt", Hibernate.DOUBLE));
        registerFunction("tan", new StandardSQLFunction("tan", Hibernate.DOUBLE));
        registerFunction("truncate", new StandardSQLFunction("truncate", Hibernate.DOUBLE));

        registerFunction("compress", new StandardSQLFunction("compress", Hibernate.BINARY));
        registerFunction("expand", new StandardSQLFunction("compress", Hibernate.BINARY));
        registerFunction("decrypt", new StandardSQLFunction("decrypt", Hibernate.BINARY));
        registerFunction("encrypt", new StandardSQLFunction("encrypt", Hibernate.BINARY));
        registerFunction("hash", new StandardSQLFunction("hash", Hibernate.BINARY));

        registerFunction("ascii", new StandardSQLFunction("ascii", Hibernate.INTEGER));
//        registerFunction("bit_length", new StandardSQLFunction("bit_length", Hibernate.INTEGER));
        registerFunction("char", new StandardSQLFunction("char", Hibernate.CHARACTER));
        registerFunction("concat", new VarArgsSQLFunction(Hibernate.STRING, "(", "||", ")"));
        registerFunction("difference", new StandardSQLFunction("difference", Hibernate.INTEGER));
        registerFunction("hextoraw", new StandardSQLFunction("hextoraw", Hibernate.STRING));
        registerFunction("lower", new StandardSQLFunction("lower", Hibernate.STRING));
        registerFunction("insert", new StandardSQLFunction("lower", Hibernate.STRING));
        registerFunction("left", new StandardSQLFunction("left", Hibernate.STRING));
//        registerFunction("length", new StandardSQLFunction("length", Hibernate.INTEGER));
//        registerFunction("locate", new StandardSQLFunction("locate", Hibernate.INTEGER));
//        registerFunction("lower", new StandardSQLFunction("lower", Hibernate.STRING));
        registerFunction("lcase", new StandardSQLFunction("lcase", Hibernate.STRING));
        registerFunction("ltrim", new StandardSQLFunction("ltrim", Hibernate.STRING));
        registerFunction("octet_length", new StandardSQLFunction("octet_length", Hibernate.INTEGER));
        registerFunction("position", new StandardSQLFunction("position", Hibernate.INTEGER));
        registerFunction("rawtohex", new StandardSQLFunction("rawtohex", Hibernate.STRING));
        registerFunction("repeat", new StandardSQLFunction("repeat", Hibernate.STRING));
        registerFunction("replace", new StandardSQLFunction("replace", Hibernate.STRING));
        registerFunction("right", new StandardSQLFunction("right", Hibernate.STRING));
        registerFunction("rtrim", new StandardSQLFunction("rtrim", Hibernate.STRING));
        registerFunction("soundex", new StandardSQLFunction("soundex", Hibernate.STRING));
        registerFunction("space", new StandardSQLFunction("space", Hibernate.STRING));
        registerFunction("stringencode", new StandardSQLFunction("stringencode", Hibernate.STRING));
        registerFunction("stringdecode", new StandardSQLFunction("stringdecode", Hibernate.STRING));
//        registerFunction("substring", new StandardSQLFunction("substring", Hibernate.STRING));
//        registerFunction("upper", new StandardSQLFunction("upper", Hibernate.STRING));
        registerFunction("ucase", new StandardSQLFunction("ucase", Hibernate.STRING));

        registerFunction("stringtoutf8", new StandardSQLFunction("stringtoutf8", Hibernate.BINARY));
        registerFunction("utf8tostring", new StandardSQLFunction("utf8tostring", Hibernate.STRING));

        registerFunction("current_date", new NoArgSQLFunction("current_date", Hibernate.DATE));
        registerFunction("current_time", new NoArgSQLFunction("current_time", Hibernate.TIME));
        registerFunction("current_timestamp", new NoArgSQLFunction("current_timestamp", Hibernate.TIMESTAMP));
        registerFunction("datediff", new NoArgSQLFunction("datediff", Hibernate.INTEGER));
        registerFunction("dayname", new StandardSQLFunction("dayname", Hibernate.STRING));
        registerFunction("dayofmonth", new StandardSQLFunction("dayofmonth", Hibernate.INTEGER));
        registerFunction("dayofweek", new StandardSQLFunction("dayofweek", Hibernate.INTEGER));
        registerFunction("dayofyear", new StandardSQLFunction("dayofyear", Hibernate.INTEGER));
//        registerFunction("hour", new StandardSQLFunction("hour", Hibernate.INTEGER));
//        registerFunction("minute", new StandardSQLFunction("minute", Hibernate.INTEGER));
//        registerFunction("month", new StandardSQLFunction("month", Hibernate.INTEGER));
        registerFunction("monthname", new StandardSQLFunction("monthname", Hibernate.STRING));
        registerFunction("quarter", new StandardSQLFunction("quarter", Hibernate.INTEGER));
//        registerFunction("second", new StandardSQLFunction("second", Hibernate.INTEGER));
        registerFunction("week", new StandardSQLFunction("week", Hibernate.INTEGER));
//        registerFunction("year", new StandardSQLFunction("year", Hibernate.INTEGER));

        registerFunction("curdate", new NoArgSQLFunction("curdate", Hibernate.DATE));
        registerFunction("curtime", new NoArgSQLFunction("curtime", Hibernate.TIME));
        registerFunction("curtimestamp", new NoArgSQLFunction("curtimestamp", Hibernate.TIME));
        registerFunction("now", new NoArgSQLFunction("now", Hibernate.TIMESTAMP));

        registerFunction("database", new NoArgSQLFunction("database", Hibernate.STRING));
        registerFunction("user", new NoArgSQLFunction("user", Hibernate.STRING));

        getDefaultProperties().setProperty(Environment.STATEMENT_BATCH_SIZE, DEFAULT_BATCH_SIZE);

    }

    public String getAddColumnString() {
        return "add column";
    }

    public boolean supportsIdentityColumns() {
        return true;
    }

    public String getIdentityColumnString() {
        return "generated by default as identity"; // not null is implicit
    }

    public String getIdentitySelectString() {
        return "call identity()";
    }

    public String getIdentityInsertString() {
        return "null";
    }

    public String getForUpdateString() {
        return " for update";
    }

    public boolean supportsUnique() {
        return true;
    }

    public boolean supportsLimit() {
        return true;
    }

    public String getLimitString(String sql, boolean hasOffset) {
        return new StringBuffer(sql.length() + 20).
            append(sql).
            append(hasOffset ? " limit ? offset ?" : " limit ?").
            toString();
    }

    public boolean bindLimitParametersInReverseOrder() {
        return true;
    }

    public boolean bindLimitParametersFirst() {
        return false;
    }

    public boolean supportsIfExistsAfterTableName() {
        return true;
    }

    public String[] getCreateSequenceStrings(String sequenceName) {
        return new String[] {
                "create sequence " + sequenceName
        };
    }

    public String[] getDropSequenceStrings(String sequenceName) {
        return new String[] {
                "drop sequence " + sequenceName
        };
    }

    public String getSelectSequenceNextValString(String sequenceName) {
        return "next value for " + sequenceName;
    }

    public String getSequenceNextValString(String sequenceName) {
        return "call next value for " + sequenceName;
    }

    public String getQuerySequencesString() {
        return querySequenceString;
    }

    public boolean supportsSequences() {
        return true;
    }

    public ViolatedConstraintNameExtracter getViolatedConstraintNameExtracter() {
        return EXTRACTER;
    }

    private static ViolatedConstraintNameExtracter EXTRACTER = new TemplatedViolatedConstraintNameExtracter() {

        /**
         * Extract the name of the violated constraint from the given SQLException.
         *
         * @param e The exception that was the result of the constraint violation.
         * @return The extracted constraint name.
         */
        public String extractConstraintName(SQLException e) {
            String constraintName = null;
            // 23000: Check constraint violation: {0}
            // 23001: Unique index or primary key violation: {0}
            if(e.getSQLState().startsWith("23")) {
                String message = e.getMessage();
                int idx = message.indexOf("violation: ");
                if(idx > 0) {
                    constraintName = message.substring(idx + "violation: ".length());
                }
            }
            return constraintName;
        }

    };

    public boolean supportsTemporaryTables() {
        return true;
    }

    public String getCreateTemporaryTableString() {
        return "create temporary table if not exists";
    }

    public boolean supportsCurrentTimestampSelection() {
        return true;
    }

    public boolean isCurrentTimestampSelectStringCallable() {
        return false;
    }

    public String getCurrentTimestampSelectString() {
        return "call current_timestamp()";
    }

    public boolean supportsUnionAll() {
        return true;
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美洲天堂一区二卡三卡四卡视频| 日韩国产精品大片| 欧美精品777| 成人综合激情网| 日本中文在线一区| 亚洲天堂av老司机| 久久亚洲私人国产精品va媚药| 欧美亚洲动漫精品| 成人黄色在线看| 国产麻豆成人传媒免费观看| 婷婷久久综合九色综合绿巨人 | 亚洲美女少妇撒尿| 日韩免费福利电影在线观看| 欧美综合色免费| 成人免费精品视频| 国产在线播精品第三| 午夜不卡av免费| 一区二区三区不卡视频| 国产精品久久久久天堂| 国产欧美视频一区二区三区| 日韩欧美激情在线| 8x8x8国产精品| 欧美性做爰猛烈叫床潮| 一本色道久久综合狠狠躁的推荐 | 亚洲图片激情小说| 国产精品视频观看| 国产偷国产偷亚洲高清人白洁| 欧美一级欧美三级在线观看| 欧美日韩国产中文| 在线视频综合导航| 欧日韩精品视频| 日本乱人伦aⅴ精品| av电影天堂一区二区在线观看| 国产成人高清视频| 国产乱色国产精品免费视频| 精东粉嫩av免费一区二区三区| 青青草97国产精品免费观看 | 国产精品国产三级国产三级人妇 | 日韩欧美精品三级| 久久精品久久精品| 在线免费观看视频一区| 色婷婷精品大在线视频| 在线精品视频小说1| 色综合天天综合网天天看片| 99久久精品久久久久久清纯| www.日韩av| 91豆麻精品91久久久久久| 91黄色免费网站| 欧美色图激情小说| 欧美老女人第四色| 日韩免费观看高清完整版 | 一区二区三区毛片| 亚洲午夜视频在线| 日韩高清中文字幕一区| 麻豆精品新av中文字幕| 激情五月激情综合网| 国产精品自在在线| 99久精品国产| 欧美日产在线观看| xf在线a精品一区二区视频网站| 2020国产精品自拍| 国产精品女主播在线观看| 1000精品久久久久久久久| 一区二区三区视频在线看| 午夜欧美一区二区三区在线播放| 日韩va欧美va亚洲va久久| 精品一区二区三区视频| 国产69精品久久99不卡| 91免费在线播放| 91精品国产综合久久精品麻豆 | 国产亚洲短视频| 亚洲图片激情小说| 日本女优在线视频一区二区| 国产麻豆午夜三级精品| 91网站在线观看视频| 欧美一区二区久久久| 亚洲国产精华液网站w| 亚洲一区免费视频| 国产高清在线精品| 色婷婷久久一区二区三区麻豆| 6080yy午夜一二三区久久| 国产日韩av一区二区| 亚洲一区在线视频观看| 国产精品一区免费在线观看| 色婷婷久久一区二区三区麻豆| 日韩欧美中文字幕精品| 国产精品高潮呻吟久久| 日本三级亚洲精品| av在线综合网| 欧美α欧美αv大片| 亚洲精品国产品国语在线app| 裸体歌舞表演一区二区| 色噜噜狠狠一区二区三区果冻| 精品久久99ma| 亚洲一区二区三区在线播放| 国产成人一区二区精品非洲| 欧美色老头old∨ideo| 国产精品久久久久久久久晋中| 日韩国产高清在线| 91精品福利在线| 久久精品亚洲一区二区三区浴池| 亚洲一区二区中文在线| 粉嫩欧美一区二区三区高清影视| 日韩一区二区精品在线观看| 亚洲黄一区二区三区| 成人综合日日夜夜| 精品国产一区二区三区四区四| 亚洲一区二区三区四区在线免费观看 | 国产二区国产一区在线观看| 欧美日韩黄色影视| 亚洲欧美激情在线| 国产成人午夜精品影院观看视频 | 色综合色狠狠综合色| 久久久久国产精品人| 免费在线观看视频一区| 欧日韩精品视频| 亚洲欧美国产77777| 成人精品gif动图一区| 精品国产免费视频| 另类的小说在线视频另类成人小视频在线| 色综合久久六月婷婷中文字幕| 中文字幕av一区二区三区高 | 国产精品久久久久aaaa| 国产精品夜夜嗨| 久久精品亚洲精品国产欧美kt∨ | 91免费精品国自产拍在线不卡| 亚洲国产精品成人综合色在线婷婷| 狠狠色伊人亚洲综合成人| 69精品人人人人| 日本不卡视频在线观看| 欧美人与禽zozo性伦| 亚洲18影院在线观看| 欧美偷拍一区二区| 亚洲va欧美va人人爽| 欧美色精品天天在线观看视频| 亚洲尤物在线视频观看| 欧美日韩精品系列| 日韩一区精品字幕| 日韩欧美一区二区视频| 美女视频一区二区三区| 日韩精品一区二区三区在线观看| 奇米亚洲午夜久久精品| 日韩欧美中文字幕公布| 国内精品免费**视频| 久久久九九九九| 波多野结衣中文字幕一区二区三区| 国产精品黄色在线观看| 91免费版在线看| 亚洲国产精品人人做人人爽| 欧美色欧美亚洲另类二区| 日韩成人免费在线| 欧美不卡一区二区| 丁香天五香天堂综合| 日韩理论电影院| 欧美日本国产一区| 精品一区二区在线观看| 中文字幕欧美区| 91国偷自产一区二区三区观看| 亚洲va韩国va欧美va| 欧美xxxxxxxx| 99综合电影在线视频| 亚洲国产一区视频| 精品日产卡一卡二卡麻豆| 国产成人综合在线播放| 亚洲日穴在线视频| 91精品国产乱| 国产iv一区二区三区| 一区二区三区在线看| 日韩精品一区国产麻豆| 丁香啪啪综合成人亚洲小说| 一区二区三区在线看| 欧美成人艳星乳罩| 91在线视频网址| 日本强好片久久久久久aaa| 国产人久久人人人人爽| 91国产成人在线| 国精产品一区一区三区mba桃花| 中文字幕在线一区免费| 91精品久久久久久久久99蜜臂| 国产ts人妖一区二区| 偷窥国产亚洲免费视频| 国产精品色哟哟网站| 69精品人人人人| 不卡视频在线看| 美女一区二区视频| 亚洲美女屁股眼交| 久久色成人在线| 欧美日韩国产免费| 成人免费av资源| 久久国产视频网| 亚洲国产精品久久人人爱蜜臀| 国产视频一区不卡| 91精品国产综合久久久久久久久久| 成人av在线资源| 久久91精品国产91久久小草| 亚洲激情av在线| 亚洲国产成人一区二区三区| 欧美一区二区免费观在线| 在线一区二区三区| 丰满少妇久久久久久久|