Package com.easydesk.om
Class Attachment
java.lang.Object
com.easydesk.om.BaseAttachment
com.easydesk.om.Attachment
- All Implemented Interfaces:
Cacheable,Serializable,ColumnAccessByName,ObjectModel,Persistent
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.easydesk.om.BaseAttachment
collActivitys, collActivitySets -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clear this Serializable instance cacheAttachment 가 다양한 용도로 사용되고 있음으로 각 사용에 일관성을 유지하기 위하여 Data Field 에 문자열을 그냥 저장하지 않는다.DOCUMENT ME!getRelativePath(String name) Repository 에 대한 파일의 상대 경로를 구한다.getRelativePath(String name, String variant) Repository 에 대한 variant 파일의 상대 경로를 구한다.voidsave()DOCUMENT ME!voidsetProperties(Properties updateProp) data field 를 update 한다.voidsetRelativePath(String path) for exporting temporaryMethods inherited from class com.easydesk.om.BaseAttachment
addActivity, addActivity, addActivitySet, addActivitySet, copy, copy, copy, copy, copyInto, copyInto, copyInto, copyInto, equals, getActivitys, getActivitys, getActivitys, getActivitys, getActivitySets, getActivitySets, getActivitySets, getActivitySets, getActivitySetsJoinActivitySetType, getActivitySetsJoinActivitySetType, getActivitySetsJoinEasyDeskUserImpl, getActivitySetsJoinEasyDeskUserImpl, getActivitysJoinActivitySet, getActivitysJoinActivitySet, getActivitysJoinAttribute, getActivitysJoinAttribute, getActivitysJoinAttributeOptionRelatedByNewOptionId, getActivitysJoinAttributeOptionRelatedByNewOptionId, getActivitysJoinAttributeOptionRelatedByOldOptionId, getActivitysJoinAttributeOptionRelatedByOldOptionId, getActivitysJoinDepend, getActivitysJoinDepend, getActivitysJoinEasyDeskUserImplRelatedByNewUserId, getActivitysJoinEasyDeskUserImplRelatedByNewUserId, getActivitysJoinEasyDeskUserImplRelatedByOldUserId, getActivitysJoinEasyDeskUserImplRelatedByOldUserId, getActivitysJoinItem, getActivitysJoinItem, getAttachmentId, getAttachmentType, getAttachmentType, getByName, getByPeerName, getByPosition, getCounterId, getCreatedBy, getCreatedDate, getData, getEasyDeskUserImplRelatedByCreatedBy, getEasyDeskUserImplRelatedByCreatedBy, getEasyDeskUserImplRelatedByModifiedBy, getEasyDeskUserImplRelatedByModifiedBy, getFieldNames, getFileName, getForeignKeyForAttachmentType, getForeignKeyForEasyDeskUserImplRelatedByCreatedBy, getForeignKeyForEasyDeskUserImplRelatedByModifiedBy, getForeignKeyForItem, getItem, getItem, getItemId, getMimeType, getModifiedBy, getModifiedDate, getName, getPeer, getPrimaryKey, getSize, getTableMap, getTypeId, hashCode, initActivitys, initActivitySets, isActivitySetsInitialized, isActivitysInitialized, isCacheOnSave, isDeleted, isLoading, isModified, isNew, isRemoved, isSaving, resetActivity, resetActivitySet, resetModified, save, save, setAttachmentId, setAttachmentType, setAttachmentTypeKey, setByName, setByPeerName, setByPosition, setCounterId, setCreatedBy, setCreatedDate, setData, setDeleted, setEasyDeskUserImplRelatedByCreatedBy, setEasyDeskUserImplRelatedByCreatedByKey, setEasyDeskUserImplRelatedByModifiedBy, setEasyDeskUserImplRelatedByModifiedByKey, setFileName, setItem, setItemId, setItemKey, setLoading, setMimeType, setModified, setModifiedBy, setModifiedDate, setName, setNew, setPrimaryKey, setPrimaryKey, setRemoved, setSaving, setSize, setTypeId, toString, valueEquals
-
Constructor Details
-
Attachment
public Attachment()새로운Attachment인스턴스를 생성한다.
-
-
Method Details
-
save
DOCUMENT ME!- Specified by:
savein interfacePersistent- Overrides:
savein classBaseAttachment- Throws:
Exception- DOCUMENT ME!
-
getProperties
Attachment 가 다양한 용도로 사용되고 있음으로 각 사용에 일관성을 유지하기 위하여 Data Field 에 문자열을 그냥 저장하지 않는다. 항상 Properties 의 xml representation 을 가지도록 한다. Data 를 이용할 때는 getProperties().getPropery(getName()) 을 이용한다.- Returns:
- properties
-
setProperties
data field 를 update 한다. 사용은 getProperties() add info setProperties(prop) 이다.- Parameters:
updateProp- 저장할 Properties,null이면 data 를 지운다.
-
setRelativePath
for exporting temporary- Parameters:
path- 임시 export 상대 경로
-
getRelativePath
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!
-
getRelativePath
Repository 에 대한 파일의 상대 경로를 구한다.- Parameters:
name- 파일 이름- Returns:
- file
- Throws:
TorqueException- 조회 중 오류가 발생한 경우IOException- 경로를 구하는 중 오류가 발생한 경우
-
getRelativePath
Repository 에 대한 variant 파일의 상대 경로를 구한다.- Parameters:
name- 파일 이름variant- 파일 variant (예: 크기)- Returns:
- file
- Throws:
TorqueException- 조회 중 오류가 발생한 경우IOException- 경로를 구하는 중 오류가 발생한 경우
-
getMethodCache
- Specified by:
getMethodCachein interfaceCacheable- Returns:
- MethodResultCache
-
clear
public void clear()Description copied from interface:Cacheableclear this Serializable instance cache
-