Class OptionOption

All Implemented Interfaces:
Orderable<OptionOption>, Serializable, Comparable<OptionOption>, ColumnAccessByName, ObjectModel, Persistent

public class OptionOption extends BaseOptionOption implements Orderable<OptionOption>
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

    • OptionOption

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

    • save

      public void save() throws Exception
      Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed.
      Specified by:
      save in interface Persistent
      Overrides:
      save in class BaseOptionOption
      Throws:
      Exception - 저장 중 오류가 발생한 경우
    • getArtifactKey

      public static String getArtifactKey(Integer relationship, Integer option1, Integer option2)
      Creates a key for use in caching AttributeOptions
      Parameters:
      relationship - OptionRelationship id
      option1 - 첫 번째(부모) option id
      option2 - 두 번째(자식) option id
      Returns:
      cache key
    • getArtifactKey

      public static String getArtifactKey(Integer relationship, Integer option1, Integer option2, Integer itemTypeId, Long moduleId)
      Creates a key for use in caching AttributeOptions
      Parameters:
      relationship - OptionRelationship id
      option1 - 첫 번째(부모) option id
      option2 - 두 번째(자식) option id
      itemTypeId - ItemType id, null 이면 key 에 포함하지 않는다.
      moduleId - Module id, null 이면 key 에 포함하지 않는다.
      Returns:
      cache key
    • getOption1Option

      public AttributeOption getOption1Option() throws TorqueException
      Gets the AttributeOption assigned to the Option1Id
      Returns:
      Option1Id 의 AttributeOption
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getOption2Option

      public AttributeOption getOption2Option() throws TorqueException
      Gets the AttributeOption assigned to the Option2Id
      Returns:
      Option2Id 의 AttributeOption
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • setOption1Option

      public void setOption1Option(AttributeOption option) throws TorqueException
      Sets the AttributeOption assigned to the Option1Id
      Parameters:
      option - Option1Id 에 설정할 AttributeOption
      Throws:
      TorqueException - 설정 중 오류가 발생한 경우
    • setOption2Option

      public void setOption2Option(AttributeOption option) throws TorqueException
      Sets the AttributeOption assigned to the Option2Id
      Parameters:
      option - Option2Id 에 설정할 AttributeOption
      Throws:
      TorqueException - 설정 중 오류가 발생한 경우