Package com.evolveum.midpoint.repo.sqale
Class SqaleRepoContext
java.lang.Object
com.evolveum.midpoint.repo.sqlbase.SqlRepoContext
com.evolveum.midpoint.repo.sqale.SqaleRepoContext
SQL repository context adding support for QName cache.
-
Field Summary
Fields inherited from class com.evolveum.midpoint.repo.sqlbase.SqlRepoContext
querydslConfig, schemaService
-
Constructor Summary
ConstructorDescriptionSqaleRepoContext
(JdbcRepositoryConfiguration jdbcRepositoryConfiguration, DataSource dataSource, SchemaService schemaService, QueryModelMappingRegistry mappingRegistry, String schemaChangeNumberLabel, int schemaChangeNumberValue) -
Method Summary
Modifier and TypeMethodDescriptionvoid
byte[]
createFullResult
(OperationResultType operationResult) fullTextIndex
(ObjectType object) Returns string with words for full-text index, or null if there is nothing to index.@Nullable MExtItem
getExtensionItem
(MExtItem.Key extItemKey) @Nullable MExtItem
void
processCacheableRelation
(QName qName) Returns ID for relation QName creating newQUri
row in DB as needed.Returns ID for URI creating new cache row in DB as needed.<S extends ObjectType>
booleanrequiresFullTextReindex
(Collection<? extends ItemDelta<?, ?>> modifications, PrismObject<S> prismObject) @NotNull MExtItem
resolveExtensionItem
(MExtItem.Key extItemKey) resolveIdToUri
(Integer uriId) resolveUriIdToQName
(Integer uriId) @NotNull Integer
searchCachedRelationId
(QName qName) Returns ID for relation QName orUriCache.UNKNOWN_ID
without going to the database.@NotNull Integer
searchCachedUriId
(@NotNull Object uri) Supports search for URI ID by QName or String or any other type using `toString`.void
setFullTextSearchConfiguration
(FullTextSearchConfigurationType fullTextSearchConfig) Methods inherited from class com.evolveum.midpoint.repo.sqlbase.SqlRepoContext
createStringParser, createStringSerializer, getJdbcRepositoryConfiguration, getMappingByQueryType, getMappingBySchemaType, getQuerydslConfiguration, getQuerydslTemplates, matchingRuleRegistry, newDelete, newInsert, newJdbcSession, newQuery, newQuery, newUpdate, normalizeAllRelations, normalizeRelation, parsePrismObject, prismContext, qNameToSchemaClass, relationRegistry, schemaClassToQName, setQuerydslSqlListener
-
Constructor Details
-
SqaleRepoContext
public SqaleRepoContext(JdbcRepositoryConfiguration jdbcRepositoryConfiguration, DataSource dataSource, SchemaService schemaService, QueryModelMappingRegistry mappingRegistry, String schemaChangeNumberLabel, int schemaChangeNumberValue)
-
-
Method Details
-
initialize
@PostConstruct public void initialize() -
clearCaches
public void clearCaches() -
searchCachedUriId
Supports search for URI ID by QName or String or any other type using `toString`. -
searchCachedRelationId
Returns ID for relation QName orUriCache.UNKNOWN_ID
without going to the database. Relation is normalized before consultingUriCache
. Never returns null; returns default ID for configured default relation if provided with null. -
processCacheableUri
Returns ID for URI creating new cache row in DB as needed. -
processCacheableRelation
Returns ID for relation QName creating newQUri
row in DB as needed. Relation is normalized before consulting the cache. Never returns null, returns default ID for configured default relation. -
resolveIdToUri
-
resolveUriIdToQName
-
resolveExtensionItem
-
getExtensionItem
-
getExtensionItem
-
setFullTextSearchConfiguration
-
fullTextIndex
Returns string with words for full-text index, or null if there is nothing to index. This also checks whether the configuration is enabled. -
requiresFullTextReindex
public <S extends ObjectType> boolean requiresFullTextReindex(Collection<? extends ItemDelta<?, ?>> modifications, PrismObject<S> prismObject) -
createFullResult
-