public interface ORMDialect
| Modifier and Type | Method and Description |
|---|---|
static ORMDialect |
datanucleus()
Obtain the Datanucleus ORM dialect implementation.
|
default boolean |
deleteStatementAliasSupported()
Get whether alias is supported in DELETE statements.
|
static Optional<ORMDialect> |
detect(ORMPlatform platform)
Detect a suitable
ORMDialect to use with given ORM platform, if available. |
static ORMDialect |
eclipselink()
Obtain the Eclipselink ORM dialect implementation.
|
default Optional<String> |
getBatchSizeConfigurationProperty()
Get the JPA configuration property name which corresponds to bulk operations batch size.
|
default char |
getLikeEscapeCharacter()
Get the character to use for ESCAPE in LIKE predicate.
|
default String |
getLikeEscapeJPQL(char escapeCharacter)
Serialize LIKE ESCAPE character as JPQL.
|
int |
getSupportedJPAMajorVersion()
Get the supported JPA major version.
|
int |
getSupportedJPAMinorVersion()
Get the supported JPA minor version.
|
static ORMDialect |
hibernate()
Obtain the Hibernate ORM dialect implementation.
|
void |
init(ORMDialectContext context)
Dialect initialization hook at parent datastore initialization.
|
boolean |
isTupleSupported()
Returns whether the
Tuple query result type is supported. |
default boolean |
likeEscapeSupported()
Get whether the ESCAPE clause in LIKE predicate is supported.
|
static ORMDialect |
openJPA()
Obtain the OpenJPA ORM dialect implementation.
|
default Optional<JPQLFunction> |
resolveFunction(com.holonplatform.core.query.QueryFunction<?,?> function)
Resolve given
function into a dialect-specific JPQLFunction. |
default boolean |
temporalTypeParametersSupported()
Get whether
Temporal type query parameters are supported. |
default boolean |
temporalTypeProjectionSupported()
Get whether
Temporal type query result is supported. |
default com.holonplatform.core.exceptions.DataAccessException |
translateException(javax.persistence.PersistenceException exception)
Translates given
PersistenceException into a suitable DataAccessException. |
default boolean |
updateStatementAliasSupported()
Get whether alias is supported in UPDATE statements.
|
default boolean |
updateStatementSetAliasSupported()
Get whether alias is supported in UPDATE statement SET clause.
|
void init(ORMDialectContext context)
context - Dialect contextint getSupportedJPAMajorVersion()
int getSupportedJPAMinorVersion()
boolean isTupleSupported()
Tuple query result type is supported.Tuple query result type is supporteddefault Optional<String> getBatchSizeConfigurationProperty()
default boolean temporalTypeParametersSupported()
Temporal type query parameters are supported.Temporal type query parameters are supporteddefault boolean temporalTypeProjectionSupported()
Temporal type query result is supported.Temporal type query result is supporteddefault boolean updateStatementAliasSupported()
default boolean updateStatementSetAliasSupported()
default boolean deleteStatementAliasSupported()
default boolean likeEscapeSupported()
default char getLikeEscapeCharacter()
default String getLikeEscapeJPQL(char escapeCharacter)
escapeCharacter - The LIKE ESCAPE character to usedefault Optional<JPQLFunction> resolveFunction(com.holonplatform.core.query.QueryFunction<?,?> function)
function into a dialect-specific JPQLFunction.function - The function to resolve (not null)default com.holonplatform.core.exceptions.DataAccessException translateException(javax.persistence.PersistenceException exception)
PersistenceException into a suitable DataAccessException.exception - Exception to translate (not null)PersistenceExceptionstatic Optional<ORMDialect> detect(ORMPlatform platform)
ORMDialect to use with given ORM platform, if available.platform - ORM platformORMDialect for given platformstatic ORMDialect hibernate()
ORMDialect instancestatic ORMDialect eclipselink()
ORMDialect instancestatic ORMDialect openJPA()
ORMDialect instancestatic ORMDialect datanucleus()
ORMDialect instanceCopyright © 2019 The Holon Platform. All rights reserved.