接口的使用
org.hibernate.dialect.function.SQLFunction
-
使用SQLFunction的程序包 程序包 说明 org.hibernate.boot This package contains the contracts that make up the Hibernate native bootstrapping API (building a SessionFactory).org.hibernate.boot.internal org.hibernate.boot.spi org.hibernate.cfg This package defines APIs for configuring Hibernate, and classes for building the Hibernate configuration-time metamodel.org.hibernate.criterion A framework for defining restriction criteria and order criteria.org.hibernate.dialect This package abstracts the SQL dialect of the underlying database.org.hibernate.dialect.function A framework for defining database-specific SQL functions that are available via the dialect.org.hibernate.hql.internal.ast.tree org.hibernate.hql.internal.ast.util -
-
org.hibernate.boot中SQLFunction的使用
返回变量类型为SQLFunction的类型的org.hibernate.boot中的方法 修饰符和类型 方法 说明 Map<String,SQLFunction>Metadata. getSqlFunctionMap()参数类型为SQLFunction的org.hibernate.boot中的方法 修饰符和类型 方法 说明 MetadataBuilderMetadataBuilder. applySqlFunction(String functionName, SQLFunction function)SessionFactoryBuilderSessionFactoryBuilder. applySqlFunction(String registrationName, SQLFunction sqlFunction)Apply a SQLFunction to the underlyingSQLFunctionRegistry. -
org.hibernate.boot.internal中SQLFunction的使用
返回变量类型为SQLFunction的类型的org.hibernate.boot.internal中的方法 修饰符和类型 方法 说明 Map<String,SQLFunction>SessionFactoryOptionsBuilder. getCustomSqlFunctionMap()Map<String,SQLFunction>InFlightMetadataCollectorImpl. getSqlFunctionMap()Map<String,SQLFunction>MetadataImpl. getSqlFunctionMap()Map<String,SQLFunction>BootstrapContextImpl. getSqlFunctions()Map<String,SQLFunction>MetadataBuilderImpl.MetadataBuildingOptionsImpl. getSqlFunctions()参数类型为SQLFunction的org.hibernate.boot.internal中的方法 修饰符和类型 方法 说明 voidBootstrapContextImpl. addSqlFunction(String functionName, SQLFunction function)MetadataBuilderMetadataBuilderImpl. applySqlFunction(String functionName, SQLFunction function)SessionFactoryBuilderSessionFactoryBuilderImpl. applySqlFunction(String registrationName, SQLFunction sqlFunction)voidSessionFactoryOptionsBuilder. applySqlFunction(String registrationName, SQLFunction sqlFunction) -
org.hibernate.boot.spi中SQLFunction的使用
返回变量类型为SQLFunction的类型的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 Map<String,SQLFunction>AbstractDelegatingSessionFactoryOptions. getCustomSqlFunctionMap()Map<String,SQLFunction>SessionFactoryOptions. getCustomSqlFunctionMap()Map<String,SQLFunction>AbstractDelegatingMetadata. getSqlFunctionMap()Map<String,SQLFunction>AbstractDelegatingMetadataBuildingOptions. getSqlFunctions()Map<String,SQLFunction>BootstrapContext. getSqlFunctions()Access to any SQL functions explicitly registered with the MetadataBuilder.Map<String,SQLFunction>MetadataBuildingOptions. getSqlFunctions()已过时。UseBootstrapContext.getSqlFunctions()instead.参数类型为SQLFunction的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applySqlFunction(String functionName, SQLFunction function)TAbstractDelegatingSessionFactoryBuilder. applySqlFunction(String registrationName, SQLFunction sqlFunction) -
org.hibernate.cfg中SQLFunction的使用
返回变量类型为SQLFunction的类型的org.hibernate.cfg中的方法 修饰符和类型 方法 说明 Map<String,SQLFunction>Configuration. getSqlFunctions()参数类型为SQLFunction的org.hibernate.cfg中的方法 修饰符和类型 方法 说明 voidConfiguration. addSqlFunction(String functionName, SQLFunction function) -
org.hibernate.criterion中SQLFunction的使用
返回SQLFunction的org.hibernate.criterion中的方法 修饰符和类型 方法 说明 protected SQLFunctionAggregateProjection. getFunction(String functionName, CriteriaQuery criteriaQuery)protected SQLFunctionAggregateProjection. getFunction(CriteriaQuery criteriaQuery)protected SQLFunctionRowCountProjection. getFunction(CriteriaQuery criteriaQuery) -
org.hibernate.dialect中SQLFunction的使用
返回变量类型为SQLFunction的类型的org.hibernate.dialect中的方法 修饰符和类型 方法 说明 Map<String,SQLFunction>Dialect. getFunctions()Retrieves a map of the dialect's registered functions (functionName =>SQLFunction).参数类型为SQLFunction的org.hibernate.dialect中的方法 修饰符和类型 方法 说明 protected voidDialect. registerFunction(String name, SQLFunction function) -
org.hibernate.dialect.function中SQLFunction的使用
实现SQLFunction的org.hibernate.dialect.function中的类 修饰符和类型 类 说明 classAbstractAnsiTrimEmulationFunctionASQLFunctionproviding support for implementing TRIM functionality (as defined by both the ANSI SQL and JPA specs) in cases where the dialect may not support the full trim function itself.classAnsiTrimEmulationFunctionASQLFunctionimplementation that emulates the ANSI SQL trim function on dialects which do not support the full definition.classAnsiTrimFunctionDefines support for rendering according to ANSI SQL TRIM function specification.classAvgWithArgumentCastFunctionSome databases strictly return the type of the aggregation value for AVG which is problematic in the case of averaging integers because the decimals will be dropped.classCastFunctionANSI-SQL stylecast(foo as type)where the type is a Hibernate typeclassCharIndexFunctionEmulation of locate() on SybaseclassConditionalParenthesisFunctionEssentially the same asStandardSQLFunction, except that here the parentheses are not included when no arguments are given.classConvertFunctionA Caché definition of a convert function.classDB2SubstringFunctionWhen "substring" function is used for DB2, this implementation ofStandardSQLFunctionwill render "substr" or "substring", depending on the last argument being used.classDerbyConcatFunctionA specialized concat() function definition in which: we translate to use the concat operator ('||') wrap dynamic parameters in CASTs to VARCHARclassNoArgSQLFunctionA function which takes no argumentsclassNvlFunctionEmulation of coalesce() on Oracle, using multiple nvl() callsclassPositionSubstringFunctionEmulation of locate() on PostgreSQLclassSQLFunctionTemplateRepresents HQL functions that can have different representations in different SQL dialects where that difference can be handled via a template/pattern.static classStandardAnsiSqlAggregationFunctions.AvgFunctionDefinition of a standard ANSI SQL compliant AVG functionstatic classStandardAnsiSqlAggregationFunctions.CountFunctionDefinition of a standard ANSI SQL compliant COUNT functionstatic classStandardAnsiSqlAggregationFunctions.MaxFunctionDefinition of a standard ANSI SQL compliant MAX functionstatic classStandardAnsiSqlAggregationFunctions.MinFunctionDefinition of a standard ANSI SQL compliant MIN functionstatic classStandardAnsiSqlAggregationFunctions.SumFunctionDefinition of a standard ANSI SQL compliant SUM functionclassStandardJDBCEscapeFunctionAnalogous toStandardSQLFunctionexcept that standard JDBC escape sequences (i.e.classStandardSQLFunctionProvides a standard implementation that supports the majority of the HQL functions that are translated to SQL.classStaticPrecisionFspTimestampFunctionA function that returns aStandardBasicTypes.TIMESTAMPwith static fractional seconds precision (fsp).classTrimFunctionTemplateDefines the basic template support for TRIM functionsclassVarArgsSQLFunctionSupport for slightly more general templating thanStandardSQLFunction, with an unlimited number of arguments.返回SQLFunction的org.hibernate.dialect.function中的方法 修饰符和类型 方法 说明 SQLFunctionSQLFunctionRegistry. findSQLFunction(String functionName)Find a SQLFunction by nameprotected abstract SQLFunctionAbstractAnsiTrimEmulationFunction. resolveBothSpaceTrimFromFunction()Resolve the function definition which should be used to trim both leading and trailing spaces.protected SQLFunctionAnsiTrimEmulationFunction. resolveBothSpaceTrimFromFunction()Resolve the function definition which should be used to trim both leading and trailing spaces.protected abstract SQLFunctionAbstractAnsiTrimEmulationFunction. resolveBothSpaceTrimFunction()Resolve the function definition which should be used to trim both leading and trailing spaces.protected SQLFunctionAnsiTrimEmulationFunction. resolveBothSpaceTrimFunction()Resolve the function definition which should be used to trim both leading and trailing spaces.protected abstract SQLFunctionAbstractAnsiTrimEmulationFunction. resolveBothTrimFunction()Resolve the function definition which should be used to trim the specified character from both the beginning (leading) and end (trailing) of the trim source.protected SQLFunctionAnsiTrimEmulationFunction. resolveBothTrimFunction()Resolve the function definition which should be used to trim the specified character from both the beginning (leading) and end (trailing) of the trim source.protected abstract SQLFunctionAbstractAnsiTrimEmulationFunction. resolveLeadingSpaceTrimFunction()Resolve the function definition which should be used to trim leading spaces.protected SQLFunctionAnsiTrimEmulationFunction. resolveLeadingSpaceTrimFunction()Resolve the function definition which should be used to trim leading spaces.protected abstract SQLFunctionAbstractAnsiTrimEmulationFunction. resolveLeadingTrimFunction()Resolve the function definition which should be used to trim the specified character from the beginning (leading) of the trim source.protected SQLFunctionAnsiTrimEmulationFunction. resolveLeadingTrimFunction()Resolve the function definition which should be used to trim the specified character from the beginning (leading) of the trim source.protected abstract SQLFunctionAbstractAnsiTrimEmulationFunction. resolveTrailingSpaceTrimFunction()Resolve the function definition which should be used to trim trailing spaces.protected SQLFunctionAnsiTrimEmulationFunction. resolveTrailingSpaceTrimFunction()Resolve the function definition which should be used to trim trailing spaces.protected abstract SQLFunctionAbstractAnsiTrimEmulationFunction. resolveTrailingTrimFunction()Resolve the function definition which should be used to trim the specified character from the end (trailing) of the trim source.protected SQLFunctionAnsiTrimEmulationFunction. resolveTrailingTrimFunction()Resolve the function definition which should be used to trim the specified character from the end (trailing) of the trim source.类型变量类型为SQLFunction的org.hibernate.dialect.function中的方法参数 修饰符和类型 方法 说明 static voidStandardAnsiSqlAggregationFunctions. primeFunctionMap(Map<String,SQLFunction> functionMap)Push the functions defined on StandardAnsiSqlAggregationFunctions into the given map类型变量类型为SQLFunction的org.hibernate.dialect.function中的构造器参数 构造器 说明 SQLFunctionRegistry(Dialect dialect, Map<String,SQLFunction> userFunctionMap)Constructs a SQLFunctionRegistry -
org.hibernate.hql.internal.ast.tree中SQLFunction的使用
返回SQLFunction的org.hibernate.hql.internal.ast.tree中的方法 修饰符和类型 方法 说明 SQLFunctionAggregateNode. getSQLFunction()SQLFunctionCastFunctionNode. getSQLFunction()SQLFunctionFunctionNode. getSQLFunction()SQLFunctionMethodNode. getSQLFunction() -
org.hibernate.hql.internal.ast.util中SQLFunction的使用
返回SQLFunction的org.hibernate.hql.internal.ast.util中的方法 修饰符和类型 方法 说明 SQLFunctionSessionFactoryHelper. findSQLFunction(String functionName)Locate a registered sql function by name.参数类型为SQLFunction的org.hibernate.hql.internal.ast.util中的方法 修饰符和类型 方法 说明 TypeSessionFactoryHelper. findFunctionReturnType(String functionName, SQLFunction sqlFunction, antlr.collections.AST firstArgument)
-