接口 CacheFactory

所有已知子接口:
FilterStateAwareCacheFactory
所有已知实现类:
AbstractCacheFactory

public interface CacheFactory
  • 方法概要

    修饰符和类型
    方法
    说明
    default Cache<?,?>
    createAssociatedIdCache(org.babyfish.jimmer.meta.ImmutableProp prop)
    Create cache for one-to-one/many-to-one association property.
    default Cache<?,List<?>>
    createAssociatedIdListCache(org.babyfish.jimmer.meta.ImmutableProp prop)
    Create cache for one-to-many/many-to-many association.
    default Cache<?,?>
    createObjectCache(org.babyfish.jimmer.meta.ImmutableType type)
    Create cache for an entity type.
    default Cache<?,?>
    createResolverCache(org.babyfish.jimmer.meta.ImmutableProp prop)
    Create cache for complex calculated property.
  • 方法详细资料

    • createObjectCache

      default Cache<?,?> createObjectCache(org.babyfish.jimmer.meta.ImmutableType type)
      Create cache for an entity type.

      If you don't want all entity types to support object caching, you can check the parameters and return null in some cases

      参数:
      type - The entity type
      返回:
      Cache object or null
      另请参阅:
    • createAssociatedIdCache

      default Cache<?,?> createAssociatedIdCache(org.babyfish.jimmer.meta.ImmutableProp prop)
      Create cache for one-to-one/many-to-one association property.

      If you don't want all one-to-one/many-to-one associations to support object caching, you can check the parameters and return null in some cases

      参数:
      prop - The one-to-one/many-to-one association property
      返回:
      Cache object or null
      另请参阅:
    • createAssociatedIdListCache

      default Cache<?,List<?>> createAssociatedIdListCache(org.babyfish.jimmer.meta.ImmutableProp prop)
      Create cache for one-to-many/many-to-many association.

      If you don't want all one-to-many/many-to-many associations to support object caching, you can check the parameters and return null in some cases

      参数:
      prop - The one-to-many/many-to-many association property
      返回:
      Cache object or null
      另请参阅:
    • createResolverCache

      default Cache<?,?> createResolverCache(org.babyfish.jimmer.meta.ImmutableProp prop)
      Create cache for complex calculated property.

      If you don't want all complex calculated properties to support object caching, you can check the parameters and return null in some cases

      参数:
      prop - The complex calculated property
      返回:
      Cache object or null
      另请参阅: