Package | Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
Map<String,SQLFunction> |
Metadata.getSqlFunctionMap() |
Modifier and Type | Method and Description |
---|---|
SessionFactoryBuilder |
SessionFactoryBuilder.applySqlFunction(String registrationName,
SQLFunction sqlFunction)
Apply a SQLFunction to the underlying
SQLFunctionRegistry . |
MetadataBuilder |
MetadataBuilder.applySqlFunction(String functionName,
SQLFunction function) |
Modifier and Type | Method and Description |
---|---|
Map<String,SQLFunction> |
SessionFactoryOptionsBuilder.getCustomSqlFunctionMap() |
Map<String,SQLFunction> |
MetadataImpl.getSqlFunctionMap() |
Map<String,SQLFunction> |
InFlightMetadataCollectorImpl.getSqlFunctionMap() |
Map<String,SQLFunction> |
MetadataBuilderImpl.MetadataBuildingOptionsImpl.getSqlFunctions() |
Map<String,SQLFunction> |
BootstrapContextImpl.getSqlFunctions() |
Modifier and Type | Method and Description |
---|---|
void |
BootstrapContextImpl.addSqlFunction(String functionName,
SQLFunction function) |
void |
SessionFactoryOptionsBuilder.applySqlFunction(String registrationName,
SQLFunction sqlFunction) |
SessionFactoryBuilder |
SessionFactoryBuilderImpl.applySqlFunction(String registrationName,
SQLFunction sqlFunction) |
MetadataBuilder |
MetadataBuilderImpl.applySqlFunction(String functionName,
SQLFunction function) |
Modifier and Type | Method and Description |
---|---|
Map<String,SQLFunction> |
SessionFactoryOptions.getCustomSqlFunctionMap() |
Map<String,SQLFunction> |
AbstractDelegatingSessionFactoryOptions.getCustomSqlFunctionMap() |
Map<String,SQLFunction> |
AbstractDelegatingMetadata.getSqlFunctionMap() |
Map<String,SQLFunction> |
MetadataBuildingOptions.getSqlFunctions()
Deprecated.
Use
BootstrapContext.getSqlFunctions() instead. |
Map<String,SQLFunction> |
BootstrapContext.getSqlFunctions()
Access to any SQL functions explicitly registered with the MetadataBuilder.
|
Map<String,SQLFunction> |
AbstractDelegatingMetadataBuildingOptions.getSqlFunctions() |
Modifier and Type | Method and Description |
---|---|
T |
AbstractDelegatingSessionFactoryBuilder.applySqlFunction(String registrationName,
SQLFunction sqlFunction) |
MetadataBuilder |
AbstractDelegatingMetadataBuilderImplementor.applySqlFunction(String functionName,
SQLFunction function) |
Modifier and Type | Method and Description |
---|---|
Map<String,SQLFunction> |
Configuration.getSqlFunctions() |
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 |
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 |
DB2SubstringFunction
When "substring" function is used for DB2, this implementation of
StandardSQLFunction
will render "substr" or "substring", depending on the last argument being used. |
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 SQLFunction |
AnsiTrimEmulationFunction.resolveBothSpaceTrimFromFunction()
Resolve the function definition which should be used to trim both leading and trailing spaces.
|
protected abstract SQLFunction |
AbstractAnsiTrimEmulationFunction.resolveBothSpaceTrimFromFunction()
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.resolveBothSpaceTrimFunction()
Resolve the function definition which should be used to trim both leading and trailing spaces.
|
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.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.resolveLeadingSpaceTrimFunction()
Resolve the function definition which should be used to trim leading spaces.
|
protected abstract SQLFunction |
AbstractAnsiTrimEmulationFunction.resolveLeadingSpaceTrimFunction()
Resolve the function definition which should be used to trim leading spaces.
|
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.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.resolveTrailingSpaceTrimFunction()
Resolve the function definition which should be used to trim trailing spaces.
|
protected abstract SQLFunction |
AbstractAnsiTrimEmulationFunction.resolveTrailingSpaceTrimFunction()
Resolve the function definition which should be used to trim trailing spaces.
|
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.
|
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.
|
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> userFunctionMap)
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 © 2019 JBoss by Red Hat. All rights reserved.