public interface CriteriaBuilderConfiguration
CriteriaBuilderFactory
which is mostly used in non Java EE environments.Modifier and Type | Method and Description |
---|---|
CriteriaBuilderConfiguration |
addProperties(Properties extraProperties)
Add the given properties to the properties of the configuration.
|
CriteriaBuilderFactory |
createCriteriaBuilderFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
Creates a new CriteriaBuilderFactory based on this configuration.
|
List<EntityManagerFactoryIntegrator> |
getEntityManagerIntegrators()
Returns a list of registered entity manager enrichers.
|
JpqlFunctionGroup |
getFunction(String name)
Returns the
JpqlFunctionGroup for registered function with the given name or null . |
Set<String> |
getFunctionNames()
Returns the set of registered functions.
|
Set<String> |
getMacroNames()
Returns the set of registered macros.
|
Map<String,Class<?>> |
getNamedTypes()
Returns a map of registered named types.
|
Properties |
getProperties()
Returns all properties.
|
String |
getProperty(String propertyName)
Returns a property value by name.
|
CriteriaBuilderConfiguration |
mergeProperties(Properties properties)
Adds the given properties to the properties of the configuration, without overriding existing values.
|
CriteriaBuilderConfiguration |
registerDialect(String dbms,
DbmsDialect dialect)
Registers the given dialect for the given dbms name.
|
CriteriaBuilderConfiguration |
registerEntityManagerIntegrator(EntityManagerFactoryIntegrator entityManagerEnricher)
Registers the given entity manager enricher in the configuration.
|
CriteriaBuilderConfiguration |
registerFunction(JpqlFunctionGroup jpqlFunctionGroup)
Registers the given jpql function group in the configuration.
|
CriteriaBuilderConfiguration |
registerMacro(String macroName,
JpqlMacro jpqlMacro)
Registers the given jpql macro in the configuration.
|
CriteriaBuilderConfiguration |
registerNamedType(String name,
Class<?> type)
Registers the given type under the given name.
|
CriteriaBuilderConfiguration |
setProperties(Properties properties)
Replace the properties of the configuration with the given properties.
|
CriteriaBuilderConfiguration |
setProperty(String propertyName,
String value)
Set a property value by name.
|
CriteriaBuilderConfiguration registerNamedType(String name, Class<?> type)
VALUES
clause.name
- The name of the typetype
- The typeCriteriaBuilderConfiguration registerFunction(JpqlFunctionGroup jpqlFunctionGroup)
jpqlFunctionGroup
- The jpql function groupCriteriaBuilderConfiguration registerMacro(String macroName, JpqlMacro jpqlMacro)
macroName
- The name of the macrojpqlMacro
- The jpql macroCriteriaBuilderConfiguration registerDialect(String dbms, DbmsDialect dialect)
dbms
- The dbms for which the dialect should be registereddialect
- The dialect which should be registeredJpqlFunctionGroup getFunction(String name)
JpqlFunctionGroup
for registered function with the given name or null
.name
- The name of the functino to retrievenull
Set<String> getFunctionNames()
Set<String> getMacroNames()
Map<String,Class<?>> getNamedTypes()
CriteriaBuilderConfiguration registerEntityManagerIntegrator(EntityManagerFactoryIntegrator entityManagerEnricher)
entityManagerEnricher
- The enricher that should be addedList<EntityManagerFactoryIntegrator> getEntityManagerIntegrators()
CriteriaBuilderFactory createCriteriaBuilderFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
entityManagerFactory
- The entity manager factory for which the criteria builder factory should be createdProperties getProperties()
String getProperty(String propertyName)
propertyName
- The name of the propertyCriteriaBuilderConfiguration setProperties(Properties properties)
properties
- The new set of propertiesCriteriaBuilderConfiguration addProperties(Properties extraProperties)
extraProperties
- The properties to add.CriteriaBuilderConfiguration mergeProperties(Properties properties)
properties
- The properties to mergeCriteriaBuilderConfiguration setProperty(String propertyName, String value)
propertyName
- The name of the property to setvalue
- The new property valueCopyright © 2014–2018 Blazebit. All rights reserved.