Class Attachment

All Implemented Interfaces:
Cacheable, Serializable, ColumnAccessByName, ObjectModel, Persistent

public class Attachment extends BaseAttachment implements Cacheable
Attachment table which describe additional information for activity, activitySet and Item The skeleton for this class was autogenerated by Torque on: [Sun Nov 14 20:29:22 KST 2021] You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.
  • Constructor Details

    • Attachment

      public Attachment()
      새로운 Attachment 인스턴스를 생성한다.
  • Method Details

    • save

      public void save() throws Exception
      DOCUMENT ME!
      Specified by:
      save in interface Persistent
      Overrides:
      save in class BaseAttachment
      Throws:
      Exception - DOCUMENT ME!
    • getProperties

      public Properties getProperties()
      Attachment 가 다양한 용도로 사용되고 있음으로 각 사용에 일관성을 유지하기 위하여 Data Field 에 문자열을 그냥 저장하지 않는다. 항상 Properties 의 xml representation 을 가지도록 한다. Data 를 이용할 때는 getProperties().getPropery(getName()) 을 이용한다.
      Returns:
      properties
    • setProperties

      public void setProperties(Properties updateProp)
      data field 를 update 한다. 사용은 getProperties() add info setProperties(prop) 이다.
      Parameters:
      updateProp - 저장할 Properties, null 이면 data 를 지운다.
    • setRelativePath

      public void setRelativePath(String path)
      for exporting temporary
      Parameters:
      path - 임시 export 상대 경로
    • getRelativePath

      public String getRelativePath() throws Exception
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
    • getRelativePath

      public String getRelativePath(String name) throws TorqueException, IOException
      Repository 에 대한 파일의 상대 경로를 구한다.
      Parameters:
      name - 파일 이름
      Returns:
      file
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
      IOException - 경로를 구하는 중 오류가 발생한 경우
    • getRelativePath

      public String getRelativePath(String name, String variant) throws TorqueException, IOException
      Repository 에 대한 variant 파일의 상대 경로를 구한다.
      Parameters:
      name - 파일 이름
      variant - 파일 variant (예: 크기)
      Returns:
      file
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
      IOException - 경로를 구하는 중 오류가 발생한 경우
    • getMethodCache

      public MethodResultCache getMethodCache()
      Specified by:
      getMethodCache in interface Cacheable
      Returns:
      MethodResultCache
    • clear

      public void clear()
      Description copied from interface: Cacheable
      clear this Serializable instance cache
      Specified by:
      clear in interface Cacheable