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 SummaryFields inherited from class com.evolveum.midpoint.repo.sqlbase.SqlRepoContextquerydslConfig, schemaService
- 
Constructor SummaryConstructorsConstructorDescriptionSqaleRepoContext(JdbcRepositoryConfiguration jdbcRepositoryConfiguration, DataSource dataSource, SchemaService schemaService, QueryModelMappingRegistry mappingRegistry, String schemaChangeNumberLabel, int schemaChangeNumberValue) 
- 
Method SummaryModifier 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.SqlRepoContextcreateStringParser, createStringSerializer, getJdbcRepositoryConfiguration, getMappingByQueryType, getMappingBySchemaType, getQuerydslConfiguration, getQuerydslTemplates, matchingRuleRegistry, newDelete, newInsert, newJdbcSession, newQuery, newQuery, newUpdate, normalizeAllRelations, normalizeRelation, parsePrismObject, prismContext, qNameToSchemaClass, relationRegistry, schemaClassToQName, setQuerydslSqlListener
- 
Constructor Details- 
SqaleRepoContextpublic SqaleRepoContext(JdbcRepositoryConfiguration jdbcRepositoryConfiguration, DataSource dataSource, SchemaService schemaService, QueryModelMappingRegistry mappingRegistry, String schemaChangeNumberLabel, int schemaChangeNumberValue) 
 
- 
- 
Method Details- 
initialize@PostConstruct public void initialize()
- 
clearCachespublic void clearCaches()
- 
searchCachedUriIdSupports search for URI ID by QName or String or any other type using `toString`.
- 
searchCachedRelationIdReturns 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.
- 
processCacheableUriReturns ID for URI creating new cache row in DB as needed.
- 
processCacheableRelationReturns 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
- 
fullTextIndexReturns string with words for full-text index, or null if there is nothing to index. This also checks whether the configuration is enabled.
- 
requiresFullTextReindexpublic <S extends ObjectType> boolean requiresFullTextReindex(Collection<? extends ItemDelta<?, ?>> modifications, PrismObject<S> prismObject) 
- 
createFullResult
 
-