public interface JpaContext
extends com.holonplatform.core.ExpressionResolver.ExpressionResolverProvider
| Modifier and Type | Method and Description |
|---|---|
ORMDialect |
getDialect()
Get the
ORMDialect to use. |
javax.persistence.EntityManagerFactory |
getEntityManagerFactory()
Get the EntityManagerFactory.
|
Optional<ORMPlatform> |
getORMPlatform()
Get the ORM platform, if detected.
|
default JPQLValueDeserializer |
getValueDeserializer()
Get the
JPQLValueDeserializer of this context. |
default JPQLValueSerializer |
getValueSerializer()
Get the
JPQLValueSerializer of this context. |
void |
trace(String jpql)
Trace given JPQL statement.
|
void |
traceOperation(String operation)
Trace given JPA operation.
|
javax.persistence.EntityManagerFactory getEntityManagerFactory()
ORMDialect getDialect()
ORMDialect to use.Optional<ORMPlatform> getORMPlatform()
default JPQLValueSerializer getValueSerializer()
JPQLValueSerializer of this context.JPQLValueSerializerdefault JPQLValueDeserializer getValueDeserializer()
JPQLValueDeserializer of this context.JPQLValueDeserializervoid trace(String jpql)
If tracing is enabled, the JPQL statement is logged using the INFO level, otherwise it is logged
using the DEBUG level.
jpql - JPQL to tracevoid traceOperation(String operation)
If tracing is enabled, the operation is logged using the INFO level, otherwise it is logged using
the DEBUG level.
operation - Operation to traceCopyright © 2019 The Holon Platform. All rights reserved.