Class BaseItemManager

java.lang.Object
org.apache.torque.manager.AbstractBaseManager<Item>
com.easydesk.om.manager.base.BaseItemManager
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ItemManager

public abstract class BaseItemManager extends AbstractBaseManager<Item>
This class manages Item objects. a Content AutoIncrement from 10000 This class was autogenerated by Torque on: [Sun Oct 18 20:57:19 KST 2026] You should not use this class directly. It should not even be extended; all references should be to ItemBean
See Also:
  • Field Details

    • MANAGED_CLASS

      protected static final String MANAGED_CLASS
      The name of the manager
      See Also:
    • DEFAULT_MANAGER_CLASS

      protected static final String DEFAULT_MANAGER_CLASS
      The name of our class to pass to Torque as the default manager.
      See Also:
  • Constructor Details

    • BaseItemManager

      public BaseItemManager() throws TorqueException
      Creates a new BaseItemManager instance.
      Throws:
      TorqueException - if an error occurs
  • Method Details

    • getManager

      public static ItemManager getManager()
      Retrieves an implementation of the manager, based on the settings in the configuration.
      Returns:
      an implementation of ItemManager.
    • getInstance

      public static Item getInstance() throws TorqueException
      Static accessor for the @see #getOMInstance().
      Returns:
      a Item value
      Throws:
      TorqueException - if an error occurs
    • getInstance

      public static Item getInstance(ObjectKey<?> id) throws TorqueException
      Static accessor for the @see #getOMInstance(ObjectKey).
      Parameters:
      id - an ObjectKey value
      Returns:
      a Item value
      Throws:
      TorqueException - if an error occurs
    • getCachedInstance

      public static Item getCachedInstance(ObjectKey<?> id) throws TorqueException
      Static accessor for the @see #cacheGet(ObjectKey). Loads Item from cache, returns null, if instance is not in cache
      Parameters:
      id - an ObjectKey value
      Returns:
      a Item value
      Throws:
      TorqueException - if an error occurs
    • getInstance

      public static Item getInstance(ObjectKey<?> id, boolean fromCache) throws TorqueException
      Static accessor for the @see #getOMInstance(ObjectKey, boolean).
      Parameters:
      id - an ObjectKey value
      fromCache - if true, look for cached Items before loading from storage.
      Returns:
      a ${interfaceName} value
      Throws:
      TorqueException - if an error occurs
    • getInstance

      public static Item getInstance(Long id) throws TorqueException
      Static accessor for the @see #getOMInstance(ObjectKey).
      Parameters:
      id - an ObjectKey value
      Returns:
      a Item value
      Throws:
      TorqueException - if an error occurs
    • getInstance

      public static Item getInstance(Long id, boolean fromCache) throws TorqueException
      Static accessor for the @see #getOMInstance(ObjectKey).
      Parameters:
      id - an ObjectKey value
      fromCache - if true, look for cached Items before loading from storage.
      Returns:
      a Item value
      Throws:
      TorqueException - if an error occurs
    • getInstances

      public static List<Item> getInstances(List<? extends ObjectKey<?>> ids) throws TorqueException
      Static accessor for the @see #getOMs(List).
      Parameters:
      ids - a List value
      Returns:
      a List value
      Throws:
      TorqueException - if an error occurs
    • getInstances

      public static List<Item> getInstances(List<? extends ObjectKey<?>> ids, boolean fromCache) throws TorqueException
      Static accessor for the @see #getOMs(List, boolean).
      Parameters:
      ids - a List value
      fromCache - if true, look for cached Items before loading from storage.
      Returns:
      a List value
      Throws:
      TorqueException - if an error occurs
    • putInstance

      public static void putInstance(Item om) throws TorqueException
      Throws:
      TorqueException
    • clear

      public static void clear() throws TorqueException
      Throws:
      TorqueException
    • exists

      public static boolean exists(Item obj) throws TorqueException
      Throws:
      TorqueException
    • getMethodResult

      public static MethodResultCache getMethodResult()
    • addCacheListener

      public static void addCacheListener(CacheListener<? extends Persistent> listener)
    • existsImpl

      protected boolean existsImpl(Item om) throws TorqueException
      check for a duplicate project name
      Throws:
      TorqueException
    • retrieveStoredOM

      protected Item retrieveStoredOM(ObjectKey<?> id) throws TorqueException
      Gets a ModuleEntity based on id.
      Specified by:
      retrieveStoredOM in class AbstractBaseManager<Item>
      Parameters:
      id - a NumberKey value
      Throws:
      TorqueException
    • retrieveStoredOMs

      protected List<Item> retrieveStoredOMs(List<? extends ObjectKey<?>> ids) throws TorqueException
      Gets a list of ModuleEntities based on id's.
      Specified by:
      retrieveStoredOMs in class AbstractBaseManager<Item>
      Parameters:
      ids - a NumberKey[] value
      Returns:
      a List value
      Throws:
      TorqueException - if an error occurs