Package com.easydesk.om
Class OptionOption
java.lang.Object
com.easydesk.om.BaseOptionOption
com.easydesk.om.OptionOption
- All Implemented Interfaces:
Orderable<OptionOption>,Serializable,Comparable<OptionOption>,ColumnAccessByName,ObjectModel,Persistent
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.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetArtifactKey(Integer relationship, Integer option1, Integer option2) Creates a key for use in caching AttributeOptionsstatic StringgetArtifactKey(Integer relationship, Integer option1, Integer option2, Integer itemTypeId, Long moduleId) Creates a key for use in caching AttributeOptionsGets the AttributeOption assigned to the Option1IdGets the AttributeOption assigned to the Option2Idvoidsave()Stores the object in the database.voidsetOption1Option(AttributeOption option) Sets the AttributeOption assigned to the Option1IdvoidsetOption2Option(AttributeOption option) Sets the AttributeOption assigned to the Option2IdMethods inherited from class com.easydesk.om.BaseOptionOption
copy, copy, copy, copy, copyInto, copyInto, copyInto, copyInto, equals, getAttributeOptionRelatedByOption1Id, getAttributeOptionRelatedByOption1Id, getAttributeOptionRelatedByOption2Id, getAttributeOptionRelatedByOption2Id, getByName, getByPeerName, getByPosition, getEasyDeskModule, getEasyDeskModule, getFieldNames, getForeignKeyForAttributeOptionRelatedByOption1Id, getForeignKeyForAttributeOptionRelatedByOption2Id, getForeignKeyForEasyDeskModule, getForeignKeyForItemType, getForeignKeyForOptionRelationship, getItemType, getItemType, getItemTypeId, getModuleId, getOption1Id, getOption2Id, getOptionRelationship, getOptionRelationship, getOrder, getPeer, getPrimaryKey, getRelationshipId, getTableMap, getWeight, hashCode, isCacheOnSave, isDeleted, isLoading, isModified, isNew, isSaving, resetModified, save, save, setAttributeOptionRelatedByOption1Id, setAttributeOptionRelatedByOption1IdKey, setAttributeOptionRelatedByOption2Id, setAttributeOptionRelatedByOption2IdKey, setByName, setByPeerName, setByPosition, setDeleted, setEasyDeskModule, setEasyDeskModuleKey, setItemType, setItemTypeId, setItemTypeKey, setLoading, setModified, setModuleId, setNew, setOption1Id, setOption2Id, setOptionRelationship, setOptionRelationshipKey, setOrder, setPrimaryKey, setPrimaryKey, setPrimaryKey, setRelationshipId, setSaving, setWeight, toString, valueEquals
-
Constructor Details
-
OptionOption
public OptionOption()새로운OptionOption인스턴스를 생성한다.
-
-
Method Details
-
save
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed.- Specified by:
savein interfacePersistent- Overrides:
savein classBaseOptionOption- Throws:
Exception- 저장 중 오류가 발생한 경우
-
getArtifactKey
Creates a key for use in caching AttributeOptions- Parameters:
relationship- OptionRelationship idoption1- 첫 번째(부모) option idoption2- 두 번째(자식) 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 idoption1- 첫 번째(부모) option idoption2- 두 번째(자식) option iditemTypeId- ItemType id,null이면 key 에 포함하지 않는다.moduleId- Module id,null이면 key 에 포함하지 않는다.- Returns:
- cache key
-
getOption1Option
Gets the AttributeOption assigned to the Option1Id- Returns:
- Option1Id 의 AttributeOption
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getOption2Option
Gets the AttributeOption assigned to the Option2Id- Returns:
- Option2Id 의 AttributeOption
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
setOption1Option
Sets the AttributeOption assigned to the Option1Id- Parameters:
option- Option1Id 에 설정할 AttributeOption- Throws:
TorqueException- 설정 중 오류가 발생한 경우
-
setOption2Option
Sets the AttributeOption assigned to the Option2Id- Parameters:
option- Option2Id 에 설정할 AttributeOption- Throws:
TorqueException- 설정 중 오류가 발생한 경우
-