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.
|
Set<String> |
getFunctionNames()
Returns the set of registered functions.
|
Properties |
getProperties()
Returns all properties.
|
String |
getProperty(String propertyName)
Returns a property value by name.
|
List<QueryTransformer> |
getQueryTransformers()
Returns a list of registered query transformers.
|
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 |
registerQueryTransformer(QueryTransformer queryTransformer)
Registers the given query transformer in the configuration.
|
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 registerQueryTransformer(QueryTransformer queryTransformer)
queryTransformer
- The transformer that should be addedList<QueryTransformer> getQueryTransformers()
CriteriaBuilderConfiguration registerFunction(JpqlFunctionGroup jpqlFunctionGroup)
jpqlFunctionGroup
- The jpql function groupCriteriaBuilderConfiguration registerDialect(String dbms, DbmsDialect dialect)
dbms
- The dbms for which the dialect should be registereddialect
- The dialect which should be registeredSet<String> getFunctionNames()
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 © 2016 Blazebit. All Rights Reserved.