Package com.blazebit.persistence.impl
Class CachingJpaProvider
java.lang.Object
com.blazebit.persistence.impl.CachingJpaProvider
- All Implemented Interfaces:
JpaProvider
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.blazebit.persistence.spi.JpaProvider
JpaProvider.ConstraintType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsEntity
(javax.persistence.EntityManager em, Class<?> entityClass, Object id) escapeCharacter
(char character) getBooleanConditionalExpression
(boolean value) getBooleanExpression
(boolean value) String[]
getColumnNames
(javax.persistence.metamodel.EntityType<?> ownerType, String attributeName) String[]
getColumnNames
(javax.persistence.metamodel.EntityType<?> ownerType, String elementCollectionPath, String attributeName) String[]
getColumnTypes
(javax.persistence.metamodel.EntityType<?> ownerType, String attributeName) String[]
getColumnTypes
(javax.persistence.metamodel.EntityType<?> ownerType, String elementCollectionPath, String attributeName) getCustomFunctionInvocation
(String functionName, int argumentCount) Class<?>
String[]
getDiscriminatorColumnCheck
(javax.persistence.metamodel.EntityType<?> entityType) getIdentifier
(Object entity) getIdentifierOrUniqueKeyEmbeddedPropertyNames
(javax.persistence.metamodel.EntityType<?> owner, String attributeName) getIdentifierOrUniqueKeyEmbeddedPropertyNames
(javax.persistence.metamodel.EntityType<?> owner, String elementCollectionPath, String attributeName) getJoinMappingPropertyNames
(javax.persistence.metamodel.EntityType<?> owner, String elementCollectionPath, String attributeName) getJoinTable
(javax.persistence.metamodel.EntityType<?> ownerType, String attributeName) getMappedBy
(javax.persistence.metamodel.EntityType<?> ownerType, String attributeName) getWritableMappedByMappings
(javax.persistence.metamodel.EntityType<?> inverseType, javax.persistence.metamodel.EntityType<?> ownerType, String attributeName, String inverseAttribute) boolean
hasJoinCondition
(javax.persistence.metamodel.ManagedType<?> ownerType, String elementCollectionPath, String attributeName) void
initialize
(Object entity) boolean
boolean
isColumnShared
(javax.persistence.metamodel.EntityType<?> ownerType, String attributeName) boolean
isDeleteCascaded
(javax.persistence.metamodel.ManagedType<?> ownerType, String attributeName) boolean
isDeleteCascaded
(javax.persistence.metamodel.ManagedType<?> ownerType, String elementCollectionPath, String attributeName) boolean
isForeignJoinColumn
(javax.persistence.metamodel.EntityType<?> ownerType, String attributeName) boolean
isOrphanRemoval
(javax.persistence.metamodel.ManagedType<?> ownerType, String attributeName) boolean
isOrphanRemoval
(javax.persistence.metamodel.ManagedType<?> ownerType, String elementCollectionPath, String attributeName) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
renderNullPrecedence
(StringBuilder sb, String expression, String resolvedExpression, String order, String nulls) requiresTreatFilter
(javax.persistence.metamodel.EntityType<?> ownerType, String attributeName, JoinType joinType) void
setCacheable
(javax.persistence.Query query) void
setSingularParameter
(javax.persistence.Query query, String name, Object value) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
supportsEnumLiteral
(javax.persistence.metamodel.ManagedType<?> ownerType, String attributeName, boolean key) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
<T> T
unproxy
(T entity)
-
Constructor Details
-
CachingJpaProvider
-
-
Method Details
-
getJpaProvider
-
getDiscriminatorColumnCheck
- Specified by:
getDiscriminatorColumnCheck
in interfaceJpaProvider
-
isForeignJoinColumn
public boolean isForeignJoinColumn(javax.persistence.metamodel.EntityType<?> ownerType, String attributeName) - Specified by:
isForeignJoinColumn
in interfaceJpaProvider
-
requiresTreatFilter
public JpaProvider.ConstraintType requiresTreatFilter(javax.persistence.metamodel.EntityType<?> ownerType, String attributeName, JoinType joinType) - Specified by:
requiresTreatFilter
in interfaceJpaProvider
-
getMappedBy
public String getMappedBy(javax.persistence.metamodel.EntityType<?> ownerType, String attributeName) - Specified by:
getMappedBy
in interfaceJpaProvider
-
getColumnNames
public String[] getColumnNames(javax.persistence.metamodel.EntityType<?> ownerType, String attributeName) - Specified by:
getColumnNames
in interfaceJpaProvider
-
getColumnNames
public String[] getColumnNames(javax.persistence.metamodel.EntityType<?> ownerType, String elementCollectionPath, String attributeName) - Specified by:
getColumnNames
in interfaceJpaProvider
-
getColumnTypes
public String[] getColumnTypes(javax.persistence.metamodel.EntityType<?> ownerType, String attributeName) - Specified by:
getColumnTypes
in interfaceJpaProvider
-
getColumnTypes
public String[] getColumnTypes(javax.persistence.metamodel.EntityType<?> ownerType, String elementCollectionPath, String attributeName) - Specified by:
getColumnTypes
in interfaceJpaProvider
-
getWritableMappedByMappings
public Map<String,String> getWritableMappedByMappings(javax.persistence.metamodel.EntityType<?> inverseType, javax.persistence.metamodel.EntityType<?> ownerType, String attributeName, String inverseAttribute) - Specified by:
getWritableMappedByMappings
in interfaceJpaProvider
-
getJoinTable
public JoinTable getJoinTable(javax.persistence.metamodel.EntityType<?> ownerType, String attributeName) - Specified by:
getJoinTable
in interfaceJpaProvider
-
isBag
- Specified by:
isBag
in interfaceJpaProvider
-
isOrphanRemoval
public boolean isOrphanRemoval(javax.persistence.metamodel.ManagedType<?> ownerType, String attributeName) - Specified by:
isOrphanRemoval
in interfaceJpaProvider
-
isOrphanRemoval
public boolean isOrphanRemoval(javax.persistence.metamodel.ManagedType<?> ownerType, String elementCollectionPath, String attributeName) - Specified by:
isOrphanRemoval
in interfaceJpaProvider
-
isDeleteCascaded
public boolean isDeleteCascaded(javax.persistence.metamodel.ManagedType<?> ownerType, String attributeName) - Specified by:
isDeleteCascaded
in interfaceJpaProvider
-
isDeleteCascaded
public boolean isDeleteCascaded(javax.persistence.metamodel.ManagedType<?> ownerType, String elementCollectionPath, String attributeName) - Specified by:
isDeleteCascaded
in interfaceJpaProvider
-
hasJoinCondition
public boolean hasJoinCondition(javax.persistence.metamodel.ManagedType<?> ownerType, String elementCollectionPath, String attributeName) - Specified by:
hasJoinCondition
in interfaceJpaProvider
-
supportsJpa21
public boolean supportsJpa21()- Specified by:
supportsJpa21
in interfaceJpaProvider
-
supportsEntityJoin
public boolean supportsEntityJoin()- Specified by:
supportsEntityJoin
in interfaceJpaProvider
-
supportsCrossJoin
public boolean supportsCrossJoin()- Specified by:
supportsCrossJoin
in interfaceJpaProvider
-
supportsInsertStatement
public boolean supportsInsertStatement()- Specified by:
supportsInsertStatement
in interfaceJpaProvider
-
needsBracketsForListParameter
public boolean needsBracketsForListParameter()- Specified by:
needsBracketsForListParameter
in interfaceJpaProvider
-
needsJoinSubqueryRewrite
public boolean needsJoinSubqueryRewrite()- Specified by:
needsJoinSubqueryRewrite
in interfaceJpaProvider
-
getBooleanExpression
- Specified by:
getBooleanExpression
in interfaceJpaProvider
-
getBooleanConditionalExpression
- Specified by:
getBooleanConditionalExpression
in interfaceJpaProvider
-
getNullExpression
- Specified by:
getNullExpression
in interfaceJpaProvider
-
getOnClause
- Specified by:
getOnClause
in interfaceJpaProvider
-
getCollectionValueFunction
- Specified by:
getCollectionValueFunction
in interfaceJpaProvider
-
supportsCollectionValueDereference
public boolean supportsCollectionValueDereference()- Specified by:
supportsCollectionValueDereference
in interfaceJpaProvider
-
supportsSubqueryLimitOffset
public boolean supportsSubqueryLimitOffset()- Specified by:
supportsSubqueryLimitOffset
in interfaceJpaProvider
-
supportsSetOperations
public boolean supportsSetOperations()- Specified by:
supportsSetOperations
in interfaceJpaProvider
-
supportsListagg
public boolean supportsListagg()- Specified by:
supportsListagg
in interfaceJpaProvider
-
getDefaultQueryResultType
- Specified by:
getDefaultQueryResultType
in interfaceJpaProvider
-
getCustomFunctionInvocation
- Specified by:
getCustomFunctionInvocation
in interfaceJpaProvider
-
escapeCharacter
- Specified by:
escapeCharacter
in interfaceJpaProvider
-
supportsNullPrecedenceExpression
public boolean supportsNullPrecedenceExpression()- Specified by:
supportsNullPrecedenceExpression
in interfaceJpaProvider
-
renderNullPrecedence
public void renderNullPrecedence(StringBuilder sb, String expression, String resolvedExpression, String order, String nulls) - Specified by:
renderNullPrecedence
in interfaceJpaProvider
-
supportsRootTreat
public boolean supportsRootTreat()- Specified by:
supportsRootTreat
in interfaceJpaProvider
-
supportsTreatJoin
public boolean supportsTreatJoin()- Specified by:
supportsTreatJoin
in interfaceJpaProvider
-
supportsTreatCorrelation
public boolean supportsTreatCorrelation()- Specified by:
supportsTreatCorrelation
in interfaceJpaProvider
-
supportsRootTreatJoin
public boolean supportsRootTreatJoin()- Specified by:
supportsRootTreatJoin
in interfaceJpaProvider
-
supportsRootTreatTreatJoin
public boolean supportsRootTreatTreatJoin()- Specified by:
supportsRootTreatTreatJoin
in interfaceJpaProvider
-
supportsSubtypePropertyResolving
public boolean supportsSubtypePropertyResolving()- Specified by:
supportsSubtypePropertyResolving
in interfaceJpaProvider
-
supportsSubtypeRelationResolving
public boolean supportsSubtypeRelationResolving()- Specified by:
supportsSubtypeRelationResolving
in interfaceJpaProvider
-
supportsCountStar
public boolean supportsCountStar()- Specified by:
supportsCountStar
in interfaceJpaProvider
-
supportsCountTuple
public boolean supportsCountTuple()- Specified by:
supportsCountTuple
in interfaceJpaProvider
-
supportsCustomFunctions
public boolean supportsCustomFunctions()- Specified by:
supportsCustomFunctions
in interfaceJpaProvider
-
supportsNonScalarSubquery
public boolean supportsNonScalarSubquery()- Specified by:
supportsNonScalarSubquery
in interfaceJpaProvider
-
supportsSubqueryInFunction
public boolean supportsSubqueryInFunction()- Specified by:
supportsSubqueryInFunction
in interfaceJpaProvider
-
supportsSubqueryAliasShadowing
public boolean supportsSubqueryAliasShadowing()- Specified by:
supportsSubqueryAliasShadowing
in interfaceJpaProvider
-
containsEntity
- Specified by:
containsEntity
in interfaceJpaProvider
-
supportsSingleValuedAssociationIdExpressions
public boolean supportsSingleValuedAssociationIdExpressions()- Specified by:
supportsSingleValuedAssociationIdExpressions
in interfaceJpaProvider
-
supportsForeignAssociationInOnClause
public boolean supportsForeignAssociationInOnClause()- Specified by:
supportsForeignAssociationInOnClause
in interfaceJpaProvider
-
supportsUpdateSetEmbeddable
public boolean supportsUpdateSetEmbeddable()- Specified by:
supportsUpdateSetEmbeddable
in interfaceJpaProvider
-
supportsUpdateSetAssociationId
public boolean supportsUpdateSetAssociationId()- Specified by:
supportsUpdateSetAssociationId
in interfaceJpaProvider
-
supportsTransientEntityAsParameter
public boolean supportsTransientEntityAsParameter()- Specified by:
supportsTransientEntityAsParameter
in interfaceJpaProvider
-
needsAssociationToIdRewriteInOnClause
public boolean needsAssociationToIdRewriteInOnClause()- Specified by:
needsAssociationToIdRewriteInOnClause
in interfaceJpaProvider
-
needsBrokenAssociationToIdRewriteInOnClause
public boolean needsBrokenAssociationToIdRewriteInOnClause()- Specified by:
needsBrokenAssociationToIdRewriteInOnClause
in interfaceJpaProvider
-
needsTypeConstraintForColumnSharing
public boolean needsTypeConstraintForColumnSharing()- Specified by:
needsTypeConstraintForColumnSharing
in interfaceJpaProvider
-
supportsCollectionTableCleanupOnDelete
public boolean supportsCollectionTableCleanupOnDelete()- Specified by:
supportsCollectionTableCleanupOnDelete
in interfaceJpaProvider
-
supportsJoinTableCleanupOnDelete
public boolean supportsJoinTableCleanupOnDelete()- Specified by:
supportsJoinTableCleanupOnDelete
in interfaceJpaProvider
-
needsCorrelationPredicateWhenCorrelatingWithWhereClause
public boolean needsCorrelationPredicateWhenCorrelatingWithWhereClause()- Specified by:
needsCorrelationPredicateWhenCorrelatingWithWhereClause
in interfaceJpaProvider
-
supportsSingleValuedAssociationNaturalIdExpressions
public boolean supportsSingleValuedAssociationNaturalIdExpressions()- Specified by:
supportsSingleValuedAssociationNaturalIdExpressions
in interfaceJpaProvider
-
supportsGroupByEntityAlias
public boolean supportsGroupByEntityAlias()- Specified by:
supportsGroupByEntityAlias
in interfaceJpaProvider
-
needsElementCollectionIdCutoff
public boolean needsElementCollectionIdCutoff()- Specified by:
needsElementCollectionIdCutoff
in interfaceJpaProvider
-
needsUnproxyForFieldAccess
public boolean needsUnproxyForFieldAccess()- Specified by:
needsUnproxyForFieldAccess
in interfaceJpaProvider
-
needsCaseWhenElseBranch
public boolean needsCaseWhenElseBranch()- Specified by:
needsCaseWhenElseBranch
in interfaceJpaProvider
-
supportsLikePatternEscape
public boolean supportsLikePatternEscape()- Specified by:
supportsLikePatternEscape
in interfaceJpaProvider
-
setCacheable
public void setCacheable(javax.persistence.Query query) - Specified by:
setCacheable
in interfaceJpaProvider
-
setSingularParameter
- Specified by:
setSingularParameter
in interfaceJpaProvider
-
getIdentifierOrUniqueKeyEmbeddedPropertyNames
public List<String> getIdentifierOrUniqueKeyEmbeddedPropertyNames(javax.persistence.metamodel.EntityType<?> owner, String attributeName) - Specified by:
getIdentifierOrUniqueKeyEmbeddedPropertyNames
in interfaceJpaProvider
-
getIdentifierOrUniqueKeyEmbeddedPropertyNames
public List<String> getIdentifierOrUniqueKeyEmbeddedPropertyNames(javax.persistence.metamodel.EntityType<?> owner, String elementCollectionPath, String attributeName) - Specified by:
getIdentifierOrUniqueKeyEmbeddedPropertyNames
in interfaceJpaProvider
-
getJoinMappingPropertyNames
public Map<String,String> getJoinMappingPropertyNames(javax.persistence.metamodel.EntityType<?> owner, String elementCollectionPath, String attributeName) - Specified by:
getJoinMappingPropertyNames
in interfaceJpaProvider
-
supportsEnumLiteral
public boolean supportsEnumLiteral(javax.persistence.metamodel.ManagedType<?> ownerType, String attributeName, boolean key) - Specified by:
supportsEnumLiteral
in interfaceJpaProvider
-
supportsTemporalLiteral
public boolean supportsTemporalLiteral()- Specified by:
supportsTemporalLiteral
in interfaceJpaProvider
-
supportsNonDrivingAliasInOnClause
public boolean supportsNonDrivingAliasInOnClause()- Specified by:
supportsNonDrivingAliasInOnClause
in interfaceJpaProvider
-
supportsSelectCompositeIdEntityInSubquery
public boolean supportsSelectCompositeIdEntityInSubquery()- Specified by:
supportsSelectCompositeIdEntityInSubquery
in interfaceJpaProvider
-
supportsProxyParameterForNonPkAssociation
public boolean supportsProxyParameterForNonPkAssociation()- Specified by:
supportsProxyParameterForNonPkAssociation
in interfaceJpaProvider
-
supportsProxyRemove
public boolean supportsProxyRemove()- Specified by:
supportsProxyRemove
in interfaceJpaProvider
-
initialize
- Specified by:
initialize
in interfaceJpaProvider
-
getIdentifier
- Specified by:
getIdentifier
in interfaceJpaProvider
-
unproxy
public <T> T unproxy(T entity) - Specified by:
unproxy
in interfaceJpaProvider
-
getJpaMetamodelAccessor
- Specified by:
getJpaMetamodelAccessor
in interfaceJpaProvider
-