Class SqaleRepoContext


  • public class SqaleRepoContext
    extends SqlRepoContext
    SQL repository context adding support for QName cache.
    • Method Detail

      • initialize

        @PostConstruct
        public void initialize()
      • clearCaches

        public void clearCaches()
      • searchCachedUriId

        @NotNull
        public @NotNull Integer searchCachedUriId​(@NotNull
                                                  @NotNull Object uri)
        Supports search for URI ID by QName or String or any other type using `toString`.
      • searchCachedRelationId

        @NotNull
        public @NotNull Integer searchCachedRelationId​(QName qName)
        Returns ID for relation QName or UriCache.UNKNOWN_ID without going to the database. Relation is normalized before consulting UriCache. Never returns null; returns default ID for configured default relation if provided with null.
      • processCacheableUri

        public Integer processCacheableUri​(Object uri)
        Returns ID for URI creating new cache row in DB as needed.
      • processCacheableRelation

        public Integer processCacheableRelation​(QName qName)
        Returns ID for relation QName creating new QUri row in DB as needed. Relation is normalized before consulting the cache. Never returns null, returns default ID for configured default relation.
      • resolveIdToUri

        public String resolveIdToUri​(Integer uriId)
      • resolveUriIdToQName

        public QName resolveUriIdToQName​(Integer uriId)
      • resolveExtensionItem

        @NotNull
        public @NotNull MExtItem resolveExtensionItem​(@NotNull
                                                      MExtItem.Key extItemKey)
      • getExtensionItem

        @Nullable
        public @Nullable MExtItem getExtensionItem​(Integer id)
      • getExtensionItem

        @Nullable
        public @Nullable MExtItem getExtensionItem​(MExtItem.Key extItemKey)
      • fullTextIndex

        public String fullTextIndex​(ObjectType object)
        Returns string with words for full-text index, or null if there is nothing to index. This also checks whether the configuration is enabled.