Package org.bgerp.cache

# Class UserNewsCache

java.lang.Object
org.bgerp.cache.Cache<UserNewsCache>
org.bgerp.cache.UserNewsCache

public class UserNewsCache extends Cache<UserNewsCache>

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `UserNewsCache()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `flush(Connection con)`
  `static void`
  `flushCache(Connection con, Set<Integer> userIds)`
  `static NewsInfoEvent`
  `getUserEvent(ConnectionSet conSet, int userId)`
  `boolean`
  `isValid()`
  The cache is always valid.
  `protected UserNewsCache`
  `newInstance()`
  Creates a new cache instance

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### UserNewsCache

    public UserNewsCache()

- ## Method Details

  - ### getUserEvent

    public static NewsInfoEvent getUserEvent(ConnectionSet conSet, int userId) throws Exception
    Throws:
      `Exception`

  - ### flushCache

    public static void flushCache(Connection con, Set<Integer> userIds)

  - ### flush

    public static void flush(Connection con)

  - ### newInstance

    protected UserNewsCache newInstance()
    Description copied from class: `Cache`
    Creates a new cache instance
    Specified by:
      `newInstance` in class `Cache<UserNewsCache>`
    Returns:
      the instance

  - ### isValid

    public boolean isValid()
    The cache is always valid.
    Overrides:
      `isValid` in class `Cache<UserNewsCache>`
    Returns:
      the validity state