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
ConstructorsConstructorDescriptionSqaleRepoContext(JdbcRepositoryConfiguration jdbcRepositoryConfiguration, DataSource dataSource, SchemaService schemaService, QueryModelMappingRegistry mappingRegistry, String schemaChangeNumberLabel, int schemaChangeNumberValue) -
Method Summary
Modifier and TypeMethodDescriptionvoidbyte[]createFullResult(OperationResultType operationResult) fullTextIndex(ObjectType object) Returns string with words for full-text index, or null if there is nothing to index.@Nullable MExtItemgetExtensionItem(MExtItem.Key extItemKey) @Nullable MExtItemvoidprocessCacheableRelation(QName qName) Returns ID for relation QName creating newQUrirow 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 MExtItemresolveExtensionItem(MExtItem.Key extItemKey) resolveIdToUri(Integer uriId) resolveUriIdToQName(Integer uriId) @NotNull IntegersearchCachedRelationId(QName qName) Returns ID for relation QName orUriCache.UNKNOWN_IDwithout going to the database.@NotNull IntegersearchCachedUriId(@NotNull Object uri) Supports search for URI ID by QName or String or any other type using `toString`.voidsetFullTextSearchConfiguration(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_IDwithout 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 newQUrirow 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
-