Module org.jooq
Package org.jooq.impl

Enum Class CacheType

java.lang.Object
java.lang.Enum<CacheType>
org.jooq.impl.CacheType
All Implemented Interfaces:
Serializable, Comparable<CacheType>, Constable

public enum CacheType extends Enum<CacheType>
The set of internal cache types.

These are all the cache types that jOOQ internally uses for caching various things in a Configuration, including e.g. reflection lookups, mappers, SQL translations, etc.

The actual cache implementations are provided by CacheProvider and can be overridden.

See [#2965] [#8334]

Author:
Lukas Eder
  • Enum Constant Details

    • REFLECTION_CACHE_GET_ANNOTATED_GETTER

      public static final CacheType REFLECTION_CACHE_GET_ANNOTATED_GETTER
      A reflection cache for lookups of JPA annotated getters in DefaultRecordMapper.
    • REFLECTION_CACHE_GET_ANNOTATED_MEMBERS

      public static final CacheType REFLECTION_CACHE_GET_ANNOTATED_MEMBERS
      A reflection cache for lookups of JPA annotated members in DefaultRecordMapper.
    • REFLECTION_CACHE_GET_ANNOTATED_SETTERS

      public static final CacheType REFLECTION_CACHE_GET_ANNOTATED_SETTERS
      A reflection cache for lookups of JPA annotated setters in DefaultRecordMapper.
    • REFLECTION_CACHE_GET_MATCHING_GETTER

      public static final CacheType REFLECTION_CACHE_GET_MATCHING_GETTER
      A reflection cache for lookups of getters matched by name in DefaultRecordMapper.
    • REFLECTION_CACHE_GET_MATCHING_MEMBERS

      public static final CacheType REFLECTION_CACHE_GET_MATCHING_MEMBERS
      A reflection cache for lookups of members matched by name in DefaultRecordMapper.
    • REFLECTION_CACHE_GET_MATCHING_SETTERS

      public static final CacheType REFLECTION_CACHE_GET_MATCHING_SETTERS
      A reflection cache for lookups of setters matched by name in DefaultRecordMapper.
    • REFLECTION_CACHE_HAS_COLUMN_ANNOTATIONS

      public static final CacheType REFLECTION_CACHE_HAS_COLUMN_ANNOTATIONS
      A reflection cache to check if a type has any JPA annotations at all, in DefaultRecordMapper.
    • CACHE_RECORD_MAPPERS

      public static final CacheType CACHE_RECORD_MAPPERS
      A cache used by the DefaultRecordMapperProvider to cache all RecordMapper instances and their possibly expensive initialisations per RecordType and Class pairs.
    • CACHE_PARSING_CONNECTION

      public static final CacheType CACHE_PARSING_CONNECTION
      [#8334] A cache for SQL to SQL translations in the DSLContext.parsingConnection(), to speed up its usage.
  • Method Details

    • values

      public static CacheType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CacheType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null