Class ItemManager

All Implemented Interfaces:
Serializable, CacheListener<Persistent>

public class ItemManager extends BaseItemManager implements CacheListener<Persistent>
ItemManager
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getAllInstance

      public List<Item> getAllInstance(Module module, ItemType itemType) throws TorqueException
      DOCUMENT ME!
      Parameters:
      module - DOCUMENT ME!
      itemType - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • getInstance

      public static Item getInstance(Artifactizable artifactizable) throws TorqueException
      Artifactizable 을 표현하고 있는 Item Object 을 구한다.
      Parameters:
      artifactizable - 대상 Artifactizable
      Returns:
      Item
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getInstance

      public static Item getInstance(Artifactizable artifactizable, Module module) throws TorqueException
      Artifactizable 을 표현하고 있는 Item Object 을 구한다. TODO @ManagerCache 적용.
      Parameters:
      artifactizable - 대상 Artifactizable
      module - Artifact item 이 속한 Module
      Returns:
      Item
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getOMInstance

      item 이 표현하고 있는 Artifactizable Object 을 구한다.
      Parameters:
      item - Artifact item
      Returns:
      Artifactizable
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
      ArtifactUndefinedException - item 에 대응하는 Artifactizable 이 정의되어 있지 않은 경우
      IllegalArgumentException - item 이 null 이거나 새 item 인 경우
    • getItemById

      public static Item getItemById(String id, String defaultCode) throws Exception
      If the id is not specified, return null otherwise return the item object. if the id does not have a character prefix the default code is prepended
      Parameters:
      id - item id
      defaultCode - id 에 prefix 가 없을 때 붙일 module code
      Returns:
      Item, id 가 null 이면 null
      Throws:
      Exception - 조회 중 오류가 발생한 경우
    • getItemById

      public static Item getItemById(String uniqueId) throws Exception
      If the id is not specified, return null otherwise return the item object. id 는 unique id (형식은 Item.ID_PATTERN 참고)
      Parameters:
      uniqueId - id
      Returns:
      Item
      Throws:
      Exception - 조회 중 오류가 발생한 경우
    • getItemById

      public static Item getItemById(Item.FederatedId fid) throws Exception
      FederatedId 에 해당하는 item 을 구한다.
      Parameters:
      fid - item 의 FederatedId
      Returns:
      Item
      Throws:
      Exception - 조회 중 오류가 발생한 경우
    • getItemByIdImpl

      public Item getItemByIdImpl(Item.FederatedId fid) throws TorqueException
      FederatedId 의 prefix, count, domain 으로 item 을 조회한다. 결과는 method result cache 에 보관한다.
      Parameters:
      fid - item 의 FederatedId
      Returns:
      Item
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • registerAsListener

      protected void registerAsListener()
      Notify other managers with relevant CacheEvents.
      Overrides:
      registerAsListener in class AbstractBaseManager<Item>
    • addedObject

      public void addedObject(Persistent om)
      Refresh and Update Local Cache
      Specified by:
      addedObject in interface CacheListener<Persistent>
      Parameters:
      om - Description of the Parameter
    • refreshedObject

      public void refreshedObject(Persistent om)
      Notify to All and update local cache
      Specified by:
      refreshedObject in interface CacheListener<Persistent>
      Parameters:
      om - Description of the Parameter
    • removedObject

      public void removedObject(Persistent om)
      DOCUMENT ME!
      Specified by:
      removedObject in interface CacheListener<Persistent>
      Parameters:
      om - DOCUMENT ME!
    • getInterestedFields

      public List<Column> getInterestedFields()
      fields which interest us with respect to cache events
      Specified by:
      getInterestedFields in interface CacheListener<Persistent>
      Returns:
      The interestedFields value