Package org.hibernate.dialect.function

Examples of org.hibernate.dialect.function.AvgWithArgumentCastFunction


      registerColumnType( Types.BLOB, "blob" );
      registerColumnType( Types.CLOB, "clob" );
    }

    // aggregate functions
    registerFunction( "avg", new AvgWithArgumentCastFunction( "double" ) );

    // string functions
    registerFunction( "ascii", new StandardSQLFunction( "ascii", StandardBasicTypes.INTEGER ) );
    registerFunction( "char", new StandardSQLFunction( "char", StandardBasicTypes.CHARACTER ) );
    registerFunction( "lower", new StandardSQLFunction( "lower" ) );
View Full Code Here


      registerColumnType( Types.BLOB, "blob($l)" );
      registerColumnType( Types.CLOB, "clob($l)" );
    }

    // aggregate functions
    registerFunction( "avg", new AvgWithArgumentCastFunction( "double" ) );

    // string functions
    registerFunction( "ascii", new StandardSQLFunction( "ascii", StandardBasicTypes.INTEGER ) );
    registerFunction( "char", new StandardSQLFunction( "char", StandardBasicTypes.CHARACTER ) );
    registerFunction( "lower", new StandardSQLFunction( "lower" ) );
View Full Code Here

      registerColumnType( Types.BLOB, "blob($l)" );
      registerColumnType( Types.CLOB, "clob($l)" );
    }

    // aggregate functions
    registerFunction( "avg", new AvgWithArgumentCastFunction( "double" ) );

    // string functions
    registerFunction( "ascii", new StandardSQLFunction( "ascii", StandardBasicTypes.INTEGER ) );
    registerFunction( "char", new StandardSQLFunction( "char", StandardBasicTypes.CHARACTER ) );
    registerFunction( "lower", new StandardSQLFunction( "lower" ) );
View Full Code Here

    registerColumnType( Types.VARBINARY, "binary($l)" );
    registerColumnType( Types.BLOB, "blob" );
    registerColumnType( Types.CLOB, "clob" );

    // Aggregations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    registerFunction( "avg", new AvgWithArgumentCastFunction( "double" ) );

    // select topic, syntax from information_schema.help
    // where section like 'Function%' order by section, topic
    //
    // see also ->  http://www.h2database.com/html/functions.html
View Full Code Here

      registerColumnType( Types.BLOB, "blob($l)" );
      registerColumnType( Types.CLOB, "clob($l)" );
    }

    // aggregate functions
    registerFunction( "avg", new AvgWithArgumentCastFunction( "double" ) );

    // string functions
    registerFunction( "ascii", new StandardSQLFunction( "ascii", StandardBasicTypes.INTEGER ) );
    registerFunction( "char", new StandardSQLFunction( "char", StandardBasicTypes.CHARACTER ) );
    registerFunction( "lower", new StandardSQLFunction( "lower" ) );
View Full Code Here

    registerColumnType( Types.VARBINARY, "binary($l)" );
    registerColumnType( Types.BLOB, "blob" );
    registerColumnType( Types.CLOB, "clob" );

    // Aggregations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    registerFunction( "avg", new AvgWithArgumentCastFunction( "double" ) );

    // select topic, syntax from information_schema.help
    // where section like 'Function%' order by section, topic
    //
    // see also ->  http://www.h2database.com/html/functions.html
View Full Code Here

    registerColumnType( Types.VARBINARY, "binary($l)" );
    registerColumnType( Types.BLOB, "blob" );
    registerColumnType( Types.CLOB, "clob" );

    // Aggregations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    registerFunction( "avg", new AvgWithArgumentCastFunction( "double" ) );

    // select topic, syntax from information_schema.help
    // where section like 'Function%' order by section, topic
    //
    // see also ->  http://www.h2database.com/html/functions.html
View Full Code Here

    registerColumnType( Types.BLOB, "longvarbinary" );
    registerColumnType( Types.CLOB, "longvarchar" );
    registerColumnType( Types.LONGVARBINARY, "longvarbinary" );
    registerColumnType( Types.LONGVARCHAR, "longvarchar" );

    registerFunction( "avg", new AvgWithArgumentCastFunction( "double" ) );

    registerFunction( "ascii", new StandardSQLFunction( "ascii", Hibernate.INTEGER ) );
    registerFunction( "char", new StandardSQLFunction( "char", Hibernate.CHARACTER ) );
    registerFunction( "lower", new StandardSQLFunction( "lower" ) );
    registerFunction( "upper", new StandardSQLFunction( "upper" ) );
View Full Code Here

    else {
      registerColumnType( Types.BLOB, "blob" );
      registerColumnType( Types.CLOB, "clob" );
    }

    registerFunction( "avg", new AvgWithArgumentCastFunction( "double" ) );

    registerFunction( "ascii", new StandardSQLFunction( "ascii", Hibernate.INTEGER ) );
    registerFunction( "char", new StandardSQLFunction( "char", Hibernate.CHARACTER ) );
    registerFunction( "lower", new StandardSQLFunction( "lower" ) );
    registerFunction( "upper", new StandardSQLFunction( "upper" ) );
View Full Code Here

      registerColumnType( Types.BLOB, "blob($l)" );
      registerColumnType( Types.CLOB, "clob($l)" );
    }

    // aggregate functions
    registerFunction( "avg", new AvgWithArgumentCastFunction( "double" ) );

    // string functions
    registerFunction( "ascii", new StandardSQLFunction( "ascii", StandardBasicTypes.INTEGER ) );
    registerFunction( "char", new StandardSQLFunction( "char", StandardBasicTypes.CHARACTER ) );
    registerFunction( "lower", new StandardSQLFunction( "lower" ) );
View Full Code Here

TOP

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

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.