Search in sources :

Example 1 with TransactSQLStrFunction

use of org.hibernate.dialect.function.TransactSQLStrFunction in project hibernate-orm by hibernate.

the class AbstractTransactSQLDialect method initializeFunctionRegistry.

@Override
public void initializeFunctionRegistry(QueryEngine queryEngine) {
    super.initializeFunctionRegistry(queryEngine);
    CommonFunctionFactory functionFactory = new CommonFunctionFactory(queryEngine);
    functionFactory.cot();
    functionFactory.log();
    functionFactory.ln_log();
    functionFactory.log10();
    functionFactory.atan2_atn2();
    functionFactory.mod_operator();
    functionFactory.square();
    functionFactory.rand();
    functionFactory.radians();
    functionFactory.degrees();
    functionFactory.pi();
    functionFactory.reverse();
    functionFactory.space();
    functionFactory.pad_replicate();
    functionFactory.yearMonthDay();
    functionFactory.ascii();
    functionFactory.chr_char();
    functionFactory.trim1();
    functionFactory.repeat_replicate();
    functionFactory.characterLength_len();
    functionFactory.substring_substringLen();
    functionFactory.datepartDatename();
    functionFactory.lastDay_eomonth();
    queryEngine.getSqmFunctionRegistry().register("least", new CaseLeastGreatestEmulation(true));
    queryEngine.getSqmFunctionRegistry().register("greatest", new CaseLeastGreatestEmulation(false));
    queryEngine.getSqmFunctionRegistry().register("str", new TransactSQLStrFunction(queryEngine.getTypeConfiguration()));
    queryEngine.getSqmFunctionRegistry().register("concat", new CastingConcatFunction(this, "+", false, SqlAstNodeRenderingMode.DEFAULT, queryEngine.getTypeConfiguration()));
}
Also used : CommonFunctionFactory(org.hibernate.dialect.function.CommonFunctionFactory) CaseLeastGreatestEmulation(org.hibernate.dialect.function.CaseLeastGreatestEmulation) TransactSQLStrFunction(org.hibernate.dialect.function.TransactSQLStrFunction) CastingConcatFunction(org.hibernate.dialect.function.CastingConcatFunction)

Aggregations

CaseLeastGreatestEmulation (org.hibernate.dialect.function.CaseLeastGreatestEmulation)1 CastingConcatFunction (org.hibernate.dialect.function.CastingConcatFunction)1 CommonFunctionFactory (org.hibernate.dialect.function.CommonFunctionFactory)1 TransactSQLStrFunction (org.hibernate.dialect.function.TransactSQLStrFunction)1