Package org.hibernate.dialect.function

Examples of org.hibernate.dialect.function.NoArgSQLFunction


        registerFunction("rtrim", new StandardSQLFunction("rtrim", Hibernate.STRING)); //$NON-NLS-1$ //$NON-NLS-2$
        registerFunction("substring", new StandardSQLFunction("substring", Hibernate.STRING)); //$NON-NLS-1$ //$NON-NLS-2$
        registerFunction("translate", new StandardSQLFunction("translate", Hibernate.STRING)); //$NON-NLS-1$ //$NON-NLS-2$
        registerFunction("ucase", new StandardSQLFunction("ucase", Hibernate.STRING)); //$NON-NLS-1$ //$NON-NLS-2$

        registerFunction("curdate", new NoArgSQLFunction("curdate", Hibernate.DATE)); //$NON-NLS-1$ //$NON-NLS-2$
        registerFunction("curtime", new NoArgSQLFunction("curtime", Hibernate.TIME)); //$NON-NLS-1$ //$NON-NLS-2$
        registerFunction("now", new NoArgSQLFunction("now", Hibernate.TIMESTAMP)); //$NON-NLS-1$ //$NON-NLS-2$
        registerFunction("dayname", new StandardSQLFunction("dayname", Hibernate.STRING)); //$NON-NLS-1$ //$NON-NLS-2$
        registerFunction("dayofmonth", new StandardSQLFunction("dayofmonth", Hibernate.INTEGER)); //$NON-NLS-1$ //$NON-NLS-2$
        registerFunction("dayofweek", new StandardSQLFunction("dayofweek", Hibernate.INTEGER)); //$NON-NLS-1$ //$NON-NLS-2$
        registerFunction("dayofyear", new StandardSQLFunction("dayofyear", Hibernate.INTEGER)); //$NON-NLS-1$ //$NON-NLS-2$
        registerFunction("formatdate", new StandardSQLFunction("formatdate", Hibernate.STRING)); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here


                registerFunction( "reverse", new StandardSQLFunction( "reverse" ) );
                registerFunction( "space", new StandardSQLFunction( "space", Hibernate.STRING ) );
                registerFunction( "rawtohex", new StandardSQLFunction( "rawtohex" ) );
                registerFunction( "hextoraw", new StandardSQLFunction( "hextoraw" ) );

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

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

                registerFunction( "abs", new StandardSQLFunction( "abs" ) );
                registerFunction( "sign", new StandardSQLFunction( "sign", Hibernate.INTEGER ) );

                registerFunction( "acos", new StandardSQLFunction( "acos", Hibernate.DOUBLE ) );
                registerFunction( "asin", new StandardSQLFunction( "asin", Hibernate.DOUBLE ) );
                registerFunction( "atan", new StandardSQLFunction( "atan", Hibernate.DOUBLE ) );
                registerFunction( "cos", new StandardSQLFunction( "cos", Hibernate.DOUBLE ) );
                registerFunction( "cot", new StandardSQLFunction( "cot", Hibernate.DOUBLE ) );
                registerFunction( "exp", new StandardSQLFunction( "exp", Hibernate.DOUBLE ) );
                registerFunction( "log", new StandardSQLFunction( "log", Hibernate.DOUBLE ) );
                registerFunction( "log10", new StandardSQLFunction( "log10", Hibernate.DOUBLE ) );
                registerFunction( "sin", new StandardSQLFunction( "sin", Hibernate.DOUBLE ) );
                registerFunction( "sqrt", new StandardSQLFunction( "sqrt", Hibernate.DOUBLE ) );
                registerFunction( "tan", new StandardSQLFunction( "tan", Hibernate.DOUBLE ) );
                registerFunction( "pi", new NoArgSQLFunction( "pi", Hibernate.DOUBLE ) );
                registerFunction( "rand", new StandardSQLFunction( "rand", Hibernate.FLOAT ) );

                registerFunction( "radians", new StandardSQLFunction( "radians", Hibernate.DOUBLE ) );
                registerFunction( "degrees", new StandardSQLFunction( "degrees", Hibernate.DOUBLE ) );
                registerFunction( "roundmagic", new StandardSQLFunction( "roundmagic" ) );
View Full Code Here

    registerFunction("exp", new StandardSQLFunction("exp", Hibernate.DOUBLE) );
    registerFunction("ln", new StandardSQLFunction("ln", Hibernate.DOUBLE) );
    registerFunction("log", new StandardSQLFunction("log", Hibernate.DOUBLE) );
    registerFunction("log2", new StandardSQLFunction("log2", Hibernate.DOUBLE) );
    registerFunction("log10", new StandardSQLFunction("log10", Hibernate.DOUBLE) );
    registerFunction("pi", new NoArgSQLFunction("pi", Hibernate.DOUBLE) );
    registerFunction("rand", new NoArgSQLFunction("rand", Hibernate.DOUBLE) );
    registerFunction("sin", new StandardSQLFunction("sin", Hibernate.DOUBLE) );
    registerFunction("sqrt", new StandardSQLFunction("sqrt", Hibernate.DOUBLE) );
    registerFunction("tan", new StandardSQLFunction("tan", Hibernate.DOUBLE) );

    registerFunction("radians", new StandardSQLFunction("radians", Hibernate.DOUBLE) );
    registerFunction("degrees", new StandardSQLFunction("degrees", Hibernate.DOUBLE) );

    registerFunction("ceiling", new StandardSQLFunction("ceiling", Hibernate.INTEGER) );
    registerFunction("ceil", new StandardSQLFunction("ceil", Hibernate.INTEGER) );
    registerFunction("floor", new StandardSQLFunction("floor", Hibernate.INTEGER) );
    registerFunction("round", new StandardSQLFunction("round", Hibernate.INTEGER) );

    registerFunction("datediff", new StandardSQLFunction("datediff", Hibernate.INTEGER) );
    registerFunction("timediff", new StandardSQLFunction("timediff", Hibernate.TIME) );
    registerFunction("date_format", new StandardSQLFunction("date_format", Hibernate.STRING) );

    registerFunction("curdate", new NoArgSQLFunction("curdate", Hibernate.DATE) );
    registerFunction("curtime", new NoArgSQLFunction("curtime", Hibernate.TIME) );
    registerFunction("current_date", new NoArgSQLFunction("current_date", Hibernate.DATE, false) );
    registerFunction("current_time", new NoArgSQLFunction("current_time", Hibernate.TIME, false) );
    registerFunction("current_timestamp", new NoArgSQLFunction("current_timestamp", Hibernate.TIMESTAMP, false) );
    registerFunction("date", new StandardSQLFunction("date", Hibernate.DATE) );
    registerFunction("day", new StandardSQLFunction("day", Hibernate.INTEGER) );
    registerFunction("dayofmonth", new StandardSQLFunction("dayofmonth", Hibernate.INTEGER) );
    registerFunction("dayname", new StandardSQLFunction("dayname", Hibernate.STRING) );
    registerFunction("dayofweek", new StandardSQLFunction("dayofweek", Hibernate.INTEGER) );
    registerFunction("dayofyear", new StandardSQLFunction("dayofyear", Hibernate.INTEGER) );
    registerFunction("from_days", new StandardSQLFunction("from_days", Hibernate.DATE) );
    registerFunction("from_unixtime", new StandardSQLFunction("from_unixtime", Hibernate.TIMESTAMP) );
    registerFunction("hour", new StandardSQLFunction("hour", Hibernate.INTEGER) );
    registerFunction("last_day", new StandardSQLFunction("last_day", Hibernate.DATE) );
    registerFunction("localtime", new NoArgSQLFunction("localtime", Hibernate.TIMESTAMP) );
    registerFunction("localtimestamp", new NoArgSQLFunction("localtimestamp", Hibernate.TIMESTAMP) );
    registerFunction("microseconds", new StandardSQLFunction("microseconds", Hibernate.INTEGER) );
    registerFunction("minute", new StandardSQLFunction("minute", Hibernate.INTEGER) );
    registerFunction("month", new StandardSQLFunction("month", Hibernate.INTEGER) );
    registerFunction("monthname", new StandardSQLFunction("monthname", Hibernate.STRING) );
    registerFunction("now", new NoArgSQLFunction("now", Hibernate.TIMESTAMP) );
    registerFunction("quarter", new StandardSQLFunction("quarter", Hibernate.INTEGER) );
    registerFunction("second", new StandardSQLFunction("second", Hibernate.INTEGER) );
    registerFunction("sec_to_time", new StandardSQLFunction("sec_to_time", Hibernate.TIME) );
    registerFunction("sysdate", new NoArgSQLFunction("sysdate", Hibernate.TIMESTAMP) );
    registerFunction("time", new StandardSQLFunction("time", Hibernate.TIME) );
    registerFunction("timestamp", new StandardSQLFunction("timestamp", Hibernate.TIMESTAMP) );
    registerFunction("time_to_sec", new StandardSQLFunction("time_to_sec", Hibernate.INTEGER) );
    registerFunction("to_days", new StandardSQLFunction("to_days", Hibernate.LONG) );
    registerFunction("unix_timestamp", new StandardSQLFunction("unix_timestamp", Hibernate.LONG) );
    registerFunction("utc_date", new NoArgSQLFunction("utc_date", Hibernate.STRING) );
    registerFunction("utc_time", new NoArgSQLFunction("utc_time", Hibernate.STRING) );
    registerFunction("utc_timestamp", new NoArgSQLFunction("utc_timestamp", Hibernate.STRING) );
    registerFunction("week", new StandardSQLFunction("week", Hibernate.INTEGER) );
    registerFunction("weekday", new StandardSQLFunction("weekday", Hibernate.INTEGER) );
    registerFunction("weekofyear", new StandardSQLFunction("weekofyear", Hibernate.INTEGER) );
    registerFunction("year", new StandardSQLFunction("year", Hibernate.INTEGER) );
    registerFunction("yearweek", new StandardSQLFunction("yearweek", Hibernate.INTEGER) );
View Full Code Here

    registerFunction("hex", new StandardSQLFunction("hex", Hibernate.STRING) );
    registerFunction("ln", new StandardSQLFunction("ln", Hibernate.DOUBLE) );
    registerFunction("log", new StandardSQLFunction("log", Hibernate.DOUBLE) );
    registerFunction("log10", new StandardSQLFunction("log10", Hibernate.DOUBLE) );
    registerFunction("radians", new StandardSQLFunction("radians", Hibernate.DOUBLE) );
    registerFunction("rand", new NoArgSQLFunction("rand", Hibernate.DOUBLE) );
    registerFunction("sin", new StandardSQLFunction("sin", Hibernate.DOUBLE) );
    registerFunction("soundex", new StandardSQLFunction("soundex", Hibernate.STRING) );
    registerFunction("sqrt", new StandardSQLFunction("sqrt", Hibernate.DOUBLE) );
    registerFunction("stddev", new StandardSQLFunction("stddev", Hibernate.DOUBLE) );
    registerFunction("tan", new StandardSQLFunction("tan", Hibernate.DOUBLE) );
    registerFunction("variance", new StandardSQLFunction("variance", Hibernate.DOUBLE) );

    registerFunction("julian_day", new StandardSQLFunction("julian_day", Hibernate.INTEGER) );
    registerFunction("microsecond", new StandardSQLFunction("microsecond", Hibernate.INTEGER) );
    registerFunction("midnight_seconds", new StandardSQLFunction("midnight_seconds", 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("hour", new StandardSQLFunction("hour", Hibernate.INTEGER) );
    registerFunction("second", new StandardSQLFunction("second", Hibernate.INTEGER) );
    registerFunction("current_date", new NoArgSQLFunction("current date", Hibernate.DATE, false) );
    registerFunction("date", new StandardSQLFunction("date", Hibernate.DATE) );
    registerFunction("day", new StandardSQLFunction("day", Hibernate.INTEGER) );
    registerFunction("dayname", new StandardSQLFunction("dayname", Hibernate.STRING) );
    registerFunction("dayofweek", new StandardSQLFunction("dayofweek", Hibernate.INTEGER) );
    registerFunction("dayofweek_iso", new StandardSQLFunction("dayofweek_iso", Hibernate.INTEGER) );
    registerFunction("dayofyear", new StandardSQLFunction("dayofyear", Hibernate.INTEGER) );
    registerFunction("days", new StandardSQLFunction("days", Hibernate.LONG) );
    registerFunction("current_time", new NoArgSQLFunction("current time", Hibernate.TIME, false) );
    registerFunction("time", new StandardSQLFunction("time", Hibernate.TIME) );
    registerFunction("current_timestamp", new NoArgSQLFunction("current timestamp", Hibernate.TIMESTAMP, false) );
    registerFunction("timestamp", new StandardSQLFunction("timestamp", Hibernate.TIMESTAMP) );
    registerFunction("timestamp_iso", new StandardSQLFunction("timestamp_iso", Hibernate.TIMESTAMP) );
    registerFunction("week", new StandardSQLFunction("week", Hibernate.INTEGER) );
    registerFunction("week_iso", new StandardSQLFunction("week_iso", Hibernate.INTEGER) );
    registerFunction("year", new StandardSQLFunction("year", Hibernate.INTEGER) );
View Full Code Here

    registerFunction( "length", new StandardSQLFunction("length", Hibernate.LONG) );

    registerFunction( "to_char", new StandardSQLFunction("to_char", Hibernate.STRING) );
    registerFunction( "to_date", new StandardSQLFunction("to_date", Hibernate.TIMESTAMP) );

    registerFunction( "current_date", new NoArgSQLFunction("current_date", Hibernate.DATE, false) );
    registerFunction( "current_time", new NoArgSQLFunction("current_timestamp", Hibernate.TIME, false) );
    registerFunction( "current_timestamp", new NoArgSQLFunction("current_timestamp", Hibernate.TIMESTAMP, false) );
   
    registerFunction( "last_day", new StandardSQLFunction("last_day", Hibernate.DATE) );
    registerFunction( "sysdate", new NoArgSQLFunction("sysdate", Hibernate.DATE, false) );
    registerFunction( "systimestamp", new NoArgSQLFunction("systimestamp", Hibernate.TIMESTAMP, false) );
    registerFunction( "uid", new NoArgSQLFunction("uid", Hibernate.INTEGER, false) );
    registerFunction( "user", new NoArgSQLFunction("user", Hibernate.STRING, false) );

    registerFunction( "rowid", new NoArgSQLFunction("rowid", Hibernate.LONG, false) );
    registerFunction( "rownum", new NoArgSQLFunction("rownum", Hibernate.LONG, false) );

    // Multi-param string dialect functions...
    registerFunction( "concat", new VarArgsSQLFunction(Hibernate.STRING, "", "||", "") );
    registerFunction( "instr", new StandardSQLFunction("instr", Hibernate.INTEGER) );
    registerFunction( "instrb", new StandardSQLFunction("instrb", Hibernate.INTEGER) );
View Full Code Here

    registerFunction( "degrees", new StandardSQLFunction("degrees", Hibernate.DOUBLE) );

    registerFunction( "stddev", new StandardSQLFunction("stddev", Hibernate.DOUBLE) );
    registerFunction( "variance", new StandardSQLFunction("variance", Hibernate.DOUBLE) );

    registerFunction( "random", new NoArgSQLFunction("random", Hibernate.DOUBLE) );

    registerFunction( "round", new StandardSQLFunction("round") );
    registerFunction( "trunc", new StandardSQLFunction("trunc") );
    registerFunction( "ceil", new StandardSQLFunction("ceil") );
    registerFunction( "floor", new StandardSQLFunction("floor") );

    registerFunction( "chr", new StandardSQLFunction("chr", Hibernate.CHARACTER) );
    registerFunction( "lower", new StandardSQLFunction("lower") );
    registerFunction( "upper", new StandardSQLFunction("upper") );
    registerFunction( "substr", new StandardSQLFunction("substr", Hibernate.STRING) );
    registerFunction( "initcap", new StandardSQLFunction("initcap") );
    registerFunction( "to_ascii", new StandardSQLFunction("to_ascii") );
    registerFunction( "quote_ident", new StandardSQLFunction("quote_ident", Hibernate.STRING) );
    registerFunction( "quote_literal", new StandardSQLFunction("quote_literal", Hibernate.STRING) );
    registerFunction( "md5", new StandardSQLFunction("md5") );
    registerFunction( "ascii", new StandardSQLFunction("ascii", Hibernate.INTEGER) );
    registerFunction( "length", new StandardSQLFunction("length", Hibernate.LONG) );
    registerFunction( "char_length", new StandardSQLFunction("char_length", Hibernate.LONG) );
    registerFunction( "bit_length", new StandardSQLFunction("bit_length", Hibernate.LONG) );
    registerFunction( "octet_length", new StandardSQLFunction("octet_length", Hibernate.LONG) );

    registerFunction( "current_date", new NoArgSQLFunction("current_date", Hibernate.DATE, false) );
    registerFunction( "current_time", new NoArgSQLFunction("current_time", Hibernate.TIME, false) );
    registerFunction( "current_timestamp", new NoArgSQLFunction("current_timestamp", Hibernate.TIMESTAMP, false) );
    registerFunction( "localtime", new NoArgSQLFunction("localtime", Hibernate.TIME, false) );
    registerFunction( "localtimestamp", new NoArgSQLFunction("localtimestamp", Hibernate.TIMESTAMP, false) );
    registerFunction( "now", new NoArgSQLFunction("now", Hibernate.TIMESTAMP) );
    registerFunction( "timeofday", new NoArgSQLFunction("timeofday", Hibernate.STRING) );
    registerFunction( "age", new StandardSQLFunction("age") );

    registerFunction( "current_user", new NoArgSQLFunction("current_user", Hibernate.STRING, false) );
    registerFunction( "session_user", new NoArgSQLFunction("session_user", Hibernate.STRING, false) );
    registerFunction( "user", new NoArgSQLFunction("user", Hibernate.STRING, false) );
    registerFunction( "current_database", new NoArgSQLFunction("current_database", Hibernate.STRING, true) );
    registerFunction( "current_schema", new NoArgSQLFunction("current_schema", Hibernate.STRING, true) );
   
    registerFunction( "to_char", new StandardSQLFunction("to_char", Hibernate.STRING) );
    registerFunction( "to_date", new StandardSQLFunction("to_date", Hibernate.DATE) );
    registerFunction( "to_timestamp", new StandardSQLFunction("to_timestamp", Hibernate.TIMESTAMP) );
    registerFunction( "to_number", new StandardSQLFunction("to_number", Hibernate.BIG_DECIMAL) );
View Full Code Here

    registerFunction("exp", new StandardSQLFunction("exp", Hibernate.DOUBLE) );
    registerFunction("ln", new StandardSQLFunction("ln", Hibernate.DOUBLE) );
    registerFunction("log", new StandardSQLFunction("log", Hibernate.DOUBLE) );
    registerFunction("log2", new StandardSQLFunction("log2", Hibernate.DOUBLE) );
    registerFunction("log10", new StandardSQLFunction("log10", Hibernate.DOUBLE) );
    registerFunction("pi", new NoArgSQLFunction("pi", Hibernate.DOUBLE) );
    registerFunction("rand", new NoArgSQLFunction("rand", Hibernate.DOUBLE) );
    registerFunction("sin", new StandardSQLFunction("sin", Hibernate.DOUBLE) );
    registerFunction("sqrt", new StandardSQLFunction("sqrt", Hibernate.DOUBLE) );
    registerFunction("tan", new StandardSQLFunction("tan", Hibernate.DOUBLE) );

    registerFunction("radians", new StandardSQLFunction("radians", Hibernate.DOUBLE) );
    registerFunction("degrees", new StandardSQLFunction("degrees", Hibernate.DOUBLE) );

    registerFunction("ceiling", new StandardSQLFunction("ceiling", Hibernate.INTEGER) );
    registerFunction("ceil", new StandardSQLFunction("ceil", Hibernate.INTEGER) );
    registerFunction("floor", new StandardSQLFunction("floor", Hibernate.INTEGER) );
    registerFunction("round", new StandardSQLFunction("round", Hibernate.INTEGER) );

    registerFunction("datediff", new StandardSQLFunction("datediff", Hibernate.INTEGER) );
    registerFunction("timediff", new StandardSQLFunction("timediff", Hibernate.TIME) );
    registerFunction("date_format", new StandardSQLFunction("date_format", Hibernate.STRING) );

    registerFunction("curdate", new NoArgSQLFunction("curdate", Hibernate.DATE) );
    registerFunction("curtime", new NoArgSQLFunction("curtime", Hibernate.TIME) );
    registerFunction("current_date", new NoArgSQLFunction("current_date", Hibernate.DATE, false) );
    registerFunction("current_time", new NoArgSQLFunction("current_time", Hibernate.TIME, false) );
    registerFunction("current_timestamp", new NoArgSQLFunction("current_timestamp", Hibernate.TIMESTAMP, false) );
    registerFunction("date", new StandardSQLFunction("date", Hibernate.DATE) );
    registerFunction("day", new StandardSQLFunction("day", Hibernate.INTEGER) );
    registerFunction("dayofmonth", new StandardSQLFunction("dayofmonth", Hibernate.INTEGER) );
    registerFunction("dayname", new StandardSQLFunction("dayname", Hibernate.STRING) );
    registerFunction("dayofweek", new StandardSQLFunction("dayofweek", Hibernate.INTEGER) );
    registerFunction("dayofyear", new StandardSQLFunction("dayofyear", Hibernate.INTEGER) );
    registerFunction("from_days", new StandardSQLFunction("from_days", Hibernate.DATE) );
    registerFunction("from_unixtime", new StandardSQLFunction("from_unixtime", Hibernate.TIMESTAMP) );
    registerFunction("hour", new StandardSQLFunction("hour", Hibernate.INTEGER) );
    registerFunction("last_day", new StandardSQLFunction("last_day", Hibernate.DATE) );
    registerFunction("localtime", new NoArgSQLFunction("localtime", Hibernate.TIMESTAMP) );
    registerFunction("localtimestamp", new NoArgSQLFunction("localtimestamp", Hibernate.TIMESTAMP) );
    registerFunction("microseconds", new StandardSQLFunction("microseconds", Hibernate.INTEGER) );
    registerFunction("minute", new StandardSQLFunction("minute", Hibernate.INTEGER) );
    registerFunction("month", new StandardSQLFunction("month", Hibernate.INTEGER) );
    registerFunction("monthname", new StandardSQLFunction("monthname", Hibernate.STRING) );
    registerFunction("now", new NoArgSQLFunction("now", Hibernate.TIMESTAMP) );
    registerFunction("quarter", new StandardSQLFunction("quarter", Hibernate.INTEGER) );
    registerFunction("second", new StandardSQLFunction("second", Hibernate.INTEGER) );
    registerFunction("sec_to_time", new StandardSQLFunction("sec_to_time", Hibernate.TIME) );
    registerFunction("sysdate", new NoArgSQLFunction("sysdate", Hibernate.TIMESTAMP) );
    registerFunction("time", new StandardSQLFunction("time", Hibernate.TIME) );
    registerFunction("timestamp", new StandardSQLFunction("timestamp", Hibernate.TIMESTAMP) );
    registerFunction("time_to_sec", new StandardSQLFunction("time_to_sec", Hibernate.INTEGER) );
    registerFunction("to_days", new StandardSQLFunction("to_days", Hibernate.LONG) );
    registerFunction("unix_timestamp", new StandardSQLFunction("unix_timestamp", Hibernate.LONG) );
    registerFunction("utc_date", new NoArgSQLFunction("utc_date", Hibernate.STRING) );
    registerFunction("utc_time", new NoArgSQLFunction("utc_time", Hibernate.STRING) );
    registerFunction("utc_timestamp", new NoArgSQLFunction("utc_timestamp", Hibernate.STRING) );
    registerFunction("week", new StandardSQLFunction("week", Hibernate.INTEGER) );
    registerFunction("weekday", new StandardSQLFunction("weekday", Hibernate.INTEGER) );
    registerFunction("weekofyear", new StandardSQLFunction("weekofyear", Hibernate.INTEGER) );
    registerFunction("year", new StandardSQLFunction("year", Hibernate.INTEGER) );
    registerFunction("yearweek", new StandardSQLFunction("yearweek", Hibernate.INTEGER) );
View Full Code Here

    registerFunction( "bit_xor", new StandardSQLFunction( "bit_xor" ) );
    registerFunction( "character_length", new StandardSQLFunction( "character_length", Hibernate.LONG ) );
    registerFunction( "charextract", new StandardSQLFunction( "charextract", Hibernate.STRING ) );
    registerFunction( "concat", new VarArgsSQLFunction( Hibernate.STRING, "(", "+", ")" ) );
    registerFunction( "cos", new StandardSQLFunction( "cos", Hibernate.DOUBLE ) );
    registerFunction( "current_user", new NoArgSQLFunction( "current_user", Hibernate.STRING, false ) );
    registerFunction( "current_time", new NoArgSQLFunction( "date('now')", Hibernate.TIMESTAMP, false ) );
    registerFunction( "current_timestamp", new NoArgSQLFunction( "date('now')", Hibernate.TIMESTAMP, false ) );
    registerFunction( "current_date", new NoArgSQLFunction( "date('now')", Hibernate.TIMESTAMP, false ) );
    registerFunction( "date_trunc", new StandardSQLFunction( "date_trunc", Hibernate.TIMESTAMP ) );
    registerFunction( "day", new StandardSQLFunction( "day", Hibernate.INTEGER ) );
    registerFunction( "dba", new NoArgSQLFunction( "dba", Hibernate.STRING, true ) );
    registerFunction( "dow", new StandardSQLFunction( "dow", Hibernate.STRING ) );
    registerFunction( "extract", new SQLFunctionTemplate( Hibernate.INTEGER, "date_part('?1', ?3)" ) );
    registerFunction( "exp", new StandardSQLFunction( "exp", Hibernate.DOUBLE ) );
    registerFunction( "gmt_timestamp", new StandardSQLFunction( "gmt_timestamp", Hibernate.STRING ) );
    registerFunction( "hash", new StandardSQLFunction( "hash", Hibernate.INTEGER ) );
    registerFunction( "hex", new StandardSQLFunction( "hex", Hibernate.STRING ) );
    registerFunction( "hour", new StandardSQLFunction( "hour", Hibernate.INTEGER ) );
    registerFunction( "initial_user", new NoArgSQLFunction( "initial_user", Hibernate.STRING, false ) );
    registerFunction( "intextract", new StandardSQLFunction( "intextract", Hibernate.INTEGER ) );
    registerFunction( "left", new StandardSQLFunction( "left", Hibernate.STRING ) );
    registerFunction( "locate", new SQLFunctionTemplate( Hibernate.LONG, "locate(?1, ?2)" ) );
    registerFunction( "length", new StandardSQLFunction( "length", Hibernate.LONG ) );
    registerFunction( "ln", new StandardSQLFunction( "ln", Hibernate.DOUBLE ) );
    registerFunction( "log", new StandardSQLFunction( "log", Hibernate.DOUBLE ) );
    registerFunction( "lower", new StandardSQLFunction( "lower" ) );
    registerFunction( "lowercase", new StandardSQLFunction( "lowercase" ) );
    registerFunction( "minute", new StandardSQLFunction( "minute", Hibernate.INTEGER ) );
    registerFunction( "month", new StandardSQLFunction( "month", Hibernate.INTEGER ) );
    registerFunction( "octet_length", new StandardSQLFunction( "octet_length", Hibernate.LONG ) );
    registerFunction( "pad", new StandardSQLFunction( "pad", Hibernate.STRING ) );
    registerFunction( "position", new StandardSQLFunction( "position", Hibernate.LONG ) );
    registerFunction( "power", new StandardSQLFunction( "power", Hibernate.DOUBLE ) );
    registerFunction( "random", new NoArgSQLFunction( "random", Hibernate.LONG, true ) );
    registerFunction( "randomf", new NoArgSQLFunction( "randomf", Hibernate.DOUBLE, true ) );
    registerFunction( "right", new StandardSQLFunction( "right", Hibernate.STRING ) );
    registerFunction( "session_user", new NoArgSQLFunction( "session_user", Hibernate.STRING, false ) );
    registerFunction( "second", new StandardSQLFunction( "second", Hibernate.INTEGER ) );
    registerFunction( "size", new NoArgSQLFunction( "size", Hibernate.LONG, true ) );
    registerFunction( "squeeze", new StandardSQLFunction( "squeeze" ) );
    registerFunction( "sin", new StandardSQLFunction( "sin", Hibernate.DOUBLE ) );
    registerFunction( "soundex", new StandardSQLFunction( "soundex", Hibernate.STRING ) );
    registerFunction( "sqrt", new StandardSQLFunction( "sqrt", Hibernate.DOUBLE ) );
    registerFunction( "substring", new SQLFunctionTemplate( Hibernate.STRING, "substring(?1 FROM ?2 FOR ?3)" ) );
    registerFunction( "system_user", new NoArgSQLFunction( "system_user", Hibernate.STRING, false ) );
    //registerFunction( "trim", new StandardSQLFunction( "trim", Hibernate.STRING ) );
    registerFunction( "unhex", new StandardSQLFunction( "unhex", Hibernate.STRING ) );
    registerFunction( "upper", new StandardSQLFunction( "upper" ) );
    registerFunction( "uppercase", new StandardSQLFunction( "uppercase" ) );
    registerFunction( "user", new NoArgSQLFunction( "user", Hibernate.STRING, false ) );
    registerFunction( "usercode", new NoArgSQLFunction( "usercode", Hibernate.STRING, true ) );
    registerFunction( "username", new NoArgSQLFunction( "username", Hibernate.STRING, true ) );
    registerFunction( "uuid_create", new StandardSQLFunction( "uuid_create", Hibernate.BYTE ) );
    registerFunction( "uuid_compare", new StandardSQLFunction( "uuid_compare", Hibernate.INTEGER ) );
    registerFunction( "uuid_from_char", new StandardSQLFunction( "uuid_from_char", Hibernate.BYTE ) );
    registerFunction( "uuid_to_char", new StandardSQLFunction( "uuid_to_char", Hibernate.STRING ) );
    registerFunction( "year", new StandardSQLFunction( "year", Hibernate.INTEGER ) );
View Full Code Here

    registerFunction( "sign", new StandardSQLFunction("sign", Hibernate.INTEGER) );

    registerFunction( "exp", new StandardSQLFunction("exp", Hibernate.DOUBLE) );
    registerFunction( "ln", new StandardSQLFunction("ln", Hibernate.DOUBLE) );
    registerFunction( "log", new StandardSQLFunction("ln", Hibernate.DOUBLE) );
    registerFunction( "pi", new NoArgSQLFunction("pi", Hibernate.DOUBLE) );
    registerFunction( "power", new StandardSQLFunction("power") );
    registerFunction( "acos", new StandardSQLFunction("acos", Hibernate.DOUBLE) );
    registerFunction( "asin", new StandardSQLFunction("asin", Hibernate.DOUBLE) );
    registerFunction( "atan", new StandardSQLFunction("atan", Hibernate.DOUBLE) );
    registerFunction( "cos", new StandardSQLFunction("cos", Hibernate.DOUBLE) );
View Full Code Here

    registerFunction( "length", new StandardSQLFunction("length", Hibernate.LONG) );

    registerFunction( "to_char", new StandardSQLFunction("to_char", Hibernate.STRING) );
    registerFunction( "to_date", new StandardSQLFunction("to_date", Hibernate.TIMESTAMP) );

    registerFunction( "current_date", new NoArgSQLFunction("current_date", Hibernate.DATE, false) );
    registerFunction( "current_time", new NoArgSQLFunction("current_timestamp", Hibernate.TIME, false) );
    registerFunction( "current_timestamp", new NoArgSQLFunction("current_timestamp", Hibernate.TIMESTAMP, false) );

    registerFunction( "last_day", new StandardSQLFunction("last_day", Hibernate.DATE) );
    registerFunction( "sysdate", new NoArgSQLFunction("sysdate", Hibernate.DATE, false) );
    registerFunction( "systimestamp", new NoArgSQLFunction("systimestamp", Hibernate.TIMESTAMP, false) );
    registerFunction( "uid", new NoArgSQLFunction("uid", Hibernate.INTEGER, false) );
    registerFunction( "user", new NoArgSQLFunction("user", Hibernate.STRING, false) );

    registerFunction( "rowid", new NoArgSQLFunction("rowid", Hibernate.LONG, false) );
    registerFunction( "rownum", new NoArgSQLFunction("rownum", Hibernate.LONG, false) );

    // Multi-param string dialect functions...
    registerFunction( "concat", new VarArgsSQLFunction(Hibernate.STRING, "", "||", "") );
    registerFunction( "instr", new StandardSQLFunction("instr", Hibernate.INTEGER) );
    registerFunction( "instrb", new StandardSQLFunction("instrb", Hibernate.INTEGER) );
View Full Code Here

TOP

Related Classes of org.hibernate.dialect.function.NoArgSQLFunction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.