Class SqaleServiceBase

java.lang.Object
com.evolveum.midpoint.repo.sqale.SqaleServiceBase
Direct Known Subclasses:
SqaleAuditService, SqaleRepositoryService

public class SqaleServiceBase extends Object
  • Field Details

    • logger

      protected final Trace logger
    • REPOSITORY_IMPL_NAME

      public static final String REPOSITORY_IMPL_NAME
      Name of the repository implementation. While public, the value is often copied because this service class is implementation detail for the rest of the midPoint.
      See Also:
    • opNamePrefix

      protected final String opNamePrefix
      Class name prefix for operation names, including the dot separator. Use with various `RepositoryService.OP_*` constants, not with constants without `OP_` prefix because they already contain class name of the service interface. [NOTE] This distinguishes operation names for audit and repository (e.g. `searchObjects`) - both in operation results and in performance monitoring (which previously didn't include class names). To make things compact enough, simple (short) class name is used.
    • sqlRepoContext

      protected final SqaleRepoContext sqlRepoContext
    • sqlPerformanceMonitorsCollection

      protected final SqlPerformanceMonitorsCollection sqlPerformanceMonitorsCollection
    • performanceMonitor

      protected SqlPerformanceMonitorImpl performanceMonitor
  • Constructor Details

  • Method Details

    • sqlRepoContext

      public SqaleRepoContext sqlRepoContext()
    • repositoryConfiguration

      public SqaleRepositoryConfiguration repositoryConfiguration()
    • prismContext

      protected PrismContext prismContext()
    • getPerformanceMonitor

      public SqlPerformanceMonitorImpl getPerformanceMonitor()
    • handledGeneralException

      protected SystemException handledGeneralException(@NotNull @NotNull Throwable ex, @NotNull @NotNull OperationResult operationResult)
      Handles exception outside of transaction - this does not handle transactional problems. Returns SystemException, call with `throw` keyword.
    • recordFatalError

      protected void recordFatalError(@NotNull @NotNull OperationResult operationResult, @NotNull @NotNull Throwable t)
    • logSearchInputParameters

      protected <T> void logSearchInputParameters(Class<T> type, ObjectQuery query, String operation)
    • registerOperationStart

      protected <T extends Containerable> long registerOperationStart(String kind, PrismContainer<T> object)
      Registers operation start with specified short operation type name.
    • registerOperationStart

      protected long registerOperationStart(String kind, Class<?> type)
    • registerOperationFinish

      protected void registerOperationFinish(long opHandle)
    • destroy

      @PreDestroy public void destroy()
    • getRepositoryDiag

      @NotNull public @NotNull RepositoryDiag getRepositoryDiag()
    • isGenericNonH2

      public boolean isGenericNonH2()