Package | Description |
---|---|
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 |
Modifier and Type | Field and Description |
---|---|
protected Map<String,SQLFunction> |
Configuration.sqlFunctions |
Modifier and Type | Method and Description |
---|---|
void |
Configuration.addSqlFunction(String functionName,
SQLFunction function) |
Modifier and Type | Method and Description |
---|---|
protected SQLFunction |
RowCountProjection.getFunction(CriteriaQuery criteriaQuery) |
protected SQLFunction |
AggregateProjection.getFunction(CriteriaQuery criteriaQuery) |
protected SQLFunction |
AggregateProjection.getFunction(String functionName,
CriteriaQuery criteriaQuery) |
Modifier and Type | Method and Description |
---|---|
Map<String,SQLFunction> |
Dialect.getFunctions()
Retrieves a map of the dialect's registered functions
(functionName =>
SQLFunction ). |
Modifier and Type | Method and Description |
---|---|
protected void |
Dialect.registerFunction(String name,
SQLFunction function) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractAnsiTrimEmulationFunction
A
SQLFunction providing 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. |
class |
AnsiTrimEmulationFunction
A
SQLFunction implementation that emulates the ANSI SQL trim function
on dialects which do not support the full definition. |
class |
AnsiTrimFunction
Defines support for rendering according to ANSI SQL TRIM function specification.
|
class |
AvgWithArgumentCastFunction
Some databases strictly return the type of the of the aggregation value for AVG which is
problematic in the case of averaging integers because the decimals will be dropped.
|
class |
CastFunction
ANSI-SQL style
cast(foo as type) where the type is a Hibernate type |
class |
CharIndexFunction
Emulation of locate() on Sybase
|
class |
ClassicAvgFunction
Deprecated.
|
class |
ClassicCountFunction
Deprecated.
Use
StandardAnsiSqlAggregationFunctions.CountFunction instead. |
class |
ClassicSumFunction
Deprecated.
Use
StandardAnsiSqlAggregationFunctions.SumFunction instead. |
class |
ConditionalParenthesisFunction
Essentially the same as
StandardSQLFunction ,
except that here the parentheses are not included when no arguments are given. |
class |
ConvertFunction
A Caché defintion of a convert function.
|
class |
DerbyConcatFunction
A specialized concat() function definition in which:
we translate to use the concat operator ('||')
wrap dynamic parameters in CASTs to VARCHAR
This last spec is to deal with a limitation on DB2 and variants (e.g.
|
class |
NoArgSQLFunction
A function which takes no arguments
|
class |
NvlFunction
Emulation of coalesce() on Oracle, using multiple nvl() calls
|
class |
PositionSubstringFunction
Emulation of locate() on PostgreSQL
|
class |
SQLFunctionTemplate
Represents HQL functions that can have different representations in different SQL dialects where that
difference can be handled via a template/pattern.
|
static class |
StandardAnsiSqlAggregationFunctions.AvgFunction
Definition of a standard ANSI SQL compliant AVG function
|
static class |
StandardAnsiSqlAggregationFunctions.CountFunction
Definition of a standard ANSI SQL compliant COUNT function
|
static class |
StandardAnsiSqlAggregationFunctions.MaxFunction
Definition of a standard ANSI SQL compliant MAX function
|
static class |
StandardAnsiSqlAggregationFunctions.MinFunction
Definition of a standard ANSI SQL compliant MIN function
|
static class |
StandardAnsiSqlAggregationFunctions.SumFunction
Definition of a standard ANSI SQL compliant SUM function
|
class |
StandardJDBCEscapeFunction
Analogous to
StandardSQLFunction
except that standard JDBC escape sequences (i.e. |
class |
StandardSQLFunction
Provides a standard implementation that supports the majority of the HQL
functions that are translated to SQL.
|
class |
StaticPrecisionFspTimestampFunction
A function that returns a
StandardBasicTypes.TIMESTAMP
with static fractional seconds precision (fsp). |
class |
TrimFunctionTemplate
Defines the basic template support for TRIM functions
|
class |
VarArgsSQLFunction
Support for slightly more general templating than
StandardSQLFunction , with an unlimited number of arguments. |
Modifier and Type | Method and Description |
---|---|
SQLFunction |
SQLFunctionRegistry.findSQLFunction(String functionName)
Find a SQLFunction by name
|
protected abstract SQLFunction |
AbstractAnsiTrimEmulationFunction.resolveBothSpaceTrimFromFunction()
Resolve the function definition which should be used to trim both leading and trailing spaces.
|
protected SQLFunction |
AnsiTrimEmulationFunction.resolveBothSpaceTrimFromFunction()
Resolve the function definition which should be used to trim both leading and trailing spaces.
|
protected abstract SQLFunction |
AbstractAnsiTrimEmulationFunction.resolveBothSpaceTrimFunction()
Resolve the function definition which should be used to trim both leading and trailing spaces.
|
protected SQLFunction |
AnsiTrimEmulationFunction.resolveBothSpaceTrimFunction()
Resolve the function definition which should be used to trim both leading and trailing spaces.
|
protected abstract SQLFunction |
AbstractAnsiTrimEmulationFunction.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 SQLFunction |
AnsiTrimEmulationFunction.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 SQLFunction |
AbstractAnsiTrimEmulationFunction.resolveLeadingSpaceTrimFunction()
Resolve the function definition which should be used to trim leading spaces.
|
protected SQLFunction |
AnsiTrimEmulationFunction.resolveLeadingSpaceTrimFunction()
Resolve the function definition which should be used to trim leading spaces.
|
protected abstract SQLFunction |
AbstractAnsiTrimEmulationFunction.resolveLeadingTrimFunction()
Resolve the function definition which should be used to trim the specified character from the
beginning (leading) of the trim source.
|
protected SQLFunction |
AnsiTrimEmulationFunction.resolveLeadingTrimFunction()
Resolve the function definition which should be used to trim the specified character from the
beginning (leading) of the trim source.
|
protected abstract SQLFunction |
AbstractAnsiTrimEmulationFunction.resolveTrailingSpaceTrimFunction()
Resolve the function definition which should be used to trim trailing spaces.
|
protected SQLFunction |
AnsiTrimEmulationFunction.resolveTrailingSpaceTrimFunction()
Resolve the function definition which should be used to trim trailing spaces.
|
protected abstract SQLFunction |
AbstractAnsiTrimEmulationFunction.resolveTrailingTrimFunction()
Resolve the function definition which should be used to trim the specified character from the
end (trailing) of the trim source.
|
protected SQLFunction |
AnsiTrimEmulationFunction.resolveTrailingTrimFunction()
Resolve the function definition which should be used to trim the specified character from the
end (trailing) of the trim source.
|
Modifier and Type | Method and Description |
---|---|
static void |
StandardAnsiSqlAggregationFunctions.primeFunctionMap(Map<String,SQLFunction> functionMap)
Push the functions defined on StandardAnsiSqlAggregationFunctions into the given map
|
Constructor and Description |
---|
SQLFunctionRegistry(Dialect dialect,
Map<String,SQLFunction> userFunctions)
Constructs a SQLFunctionRegistry
|
Modifier and Type | Method and Description |
---|---|
SQLFunction |
MethodNode.getSQLFunction() |
SQLFunction |
FunctionNode.getSQLFunction() |
SQLFunction |
CastFunctionNode.getSQLFunction() |
SQLFunction |
AggregateNode.getSQLFunction() |
Modifier and Type | Method and Description |
---|---|
SQLFunction |
SessionFactoryHelper.findSQLFunction(String functionName)
Locate a registered sql function by name.
|
Modifier and Type | Method and Description |
---|---|
Type |
SessionFactoryHelper.findFunctionReturnType(String functionName,
SQLFunction sqlFunction,
antlr.collections.AST firstArgument) |
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.