Class Cache

java.lang.Object
org.apache.ofbiz.entity.cache.Cache

public class Cache extends Object
  • Constructor Details

    • Cache

      public Cache(String delegatorName)
  • Method Details

    • clear

      public void clear()
      Clear.
    • remove

      public void remove(String entityName)
      Remove.
      Parameters:
      entityName - the entity name
    • get

      public GenericValue get(GenericPK pk)
      Get generic value.
      Parameters:
      pk - the pk
      Returns:
      the generic value
    • get

      public List<GenericValue> get(String entityName, EntityCondition condition, List<String> orderBy)
      Get list.
      Parameters:
      entityName - the entity name
      condition - the condition
      orderBy - the order by
      Returns:
      the list
    • get

      public <T> T get(String entityName, EntityCondition condition, String name)
      Get t.
      Type Parameters:
      T - the type parameter
      Parameters:
      entityName - the entity name
      condition - the condition
      name - the name
      Returns:
      the t
    • put

      public List<GenericValue> put(String entityName, EntityCondition condition, List<String> orderBy, List<GenericValue> entities)
      Put list.
      Parameters:
      entityName - the entity name
      condition - the condition
      orderBy - the order by
      entities - the entities
      Returns:
      the list
    • put

      public <T> T put(String entityName, EntityCondition condition, String name, T value)
      Put t.
      Type Parameters:
      T - the type parameter
      Parameters:
      entityName - the entity name
      condition - the condition
      name - the name
      value - the value
      Returns:
      the t
    • put

      public GenericValue put(GenericValue entity)
      Put generic value.
      Parameters:
      entity - the entity
      Returns:
      the generic value
    • put

      public GenericValue put(GenericPK pk, GenericValue entity)
      Put generic value.
      Parameters:
      pk - the pk
      entity - the entity
      Returns:
      the generic value
    • remove

      public List<GenericValue> remove(String entityName, EntityCondition condition, List<String> orderBy)
      Remove list.
      Parameters:
      entityName - the entity name
      condition - the condition
      orderBy - the order by
      Returns:
      the list
    • remove

      public void remove(String entityName, EntityCondition condition)
      Remove.
      Parameters:
      entityName - the entity name
      condition - the condition
    • remove

      public <T> T remove(String entityName, EntityCondition condition, String name)
      Remove t.
      Type Parameters:
      T - the type parameter
      Parameters:
      entityName - the entity name
      condition - the condition
      name - the name
      Returns:
      the t
    • remove

      public GenericValue remove(GenericEntity entity)
      Remove generic value.
      Parameters:
      entity - the entity
      Returns:
      the generic value
    • remove

      public GenericValue remove(GenericPK pk)
      Remove generic value.
      Parameters:
      pk - the pk
      Returns:
      the generic value