类 JimmerProperties

java.lang.Object
org.babyfish.jimmer.spring.cfg.JimmerProperties

@ConstructorBinding @ConfigurationProperties("jimmer") public class JimmerProperties extends Object
  • 构造器详细资料

    • JimmerProperties

      public JimmerProperties(@Nullable String language, @Nullable String dialect, boolean showSql, @Nullable org.babyfish.jimmer.sql.runtime.DatabaseValidationMode databaseValidationMode, @Nullable org.babyfish.jimmer.sql.event.TriggerType triggerType, @Nullable org.babyfish.jimmer.sql.EnumType.Strategy defaultEnumStrategy, @Nullable Integer defaultBatchSize, @Nullable Integer defaultListBatchSize, @Nullable Collection<String> executorContextPrefixes, @Nullable String microServiceName, @Nullable JimmerProperties.Client client, @Nullable Map<String,JimmerProperties.Client> clients)
  • 方法详细资料

    • getLanguage

      @NotNull public String getLanguage()
    • getDialect

      @NotNull public org.babyfish.jimmer.sql.dialect.Dialect getDialect()
    • isShowSql

      public boolean isShowSql()
    • getDatabaseValidationMode

      @NotNull public org.babyfish.jimmer.sql.runtime.DatabaseValidationMode getDatabaseValidationMode()
    • getTriggerType

      @NotNull public org.babyfish.jimmer.sql.event.TriggerType getTriggerType()
    • getDefaultEnumStrategy

      @NotNull public org.babyfish.jimmer.sql.EnumType.Strategy getDefaultEnumStrategy()
    • getDefaultBatchSize

      public int getDefaultBatchSize()
    • getDefaultListBatchSize

      public int getDefaultListBatchSize()
    • getExecutorContextPrefixes

      @Nullable public Collection<String> getExecutorContextPrefixes()
      If this option is configured, when jimmer calls back `org.babyfish.jimmer.sql.runtime.Executor.execute` before executing SQL, it will check the stack trace information of the current thread. However, these stack traces have too much information, including infrastructure call frames represented by jdk, jdbc driver, jimmer, and spring, and the business-related information you care about will be submerged in the ocean of information. Through this configuration, you can specify multiple package or class prefixes, and jimmer will judge whether there are some call frames in the stack trace whose class names start with some of these prefixes. If the judgment is true, jimmer believes that the current callback is related to your business, and the `ctx` parameter of `org.babyfish.jimmer.sql.runtime.Executor.execute` will be passed as non-null. If the SQL logging configuration is enabled at the same time, when a SQL statement is caused by the business you care about, the business call frame will be printed together with the SQL log.
    • getMicroServiceName

      @NotNull public String getMicroServiceName()
    • getClient

      @NotNull public JimmerProperties.Client getClient()
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object