Package com.easydesk.om
Class AttributeType
java.lang.Object
com.easydesk.om.BaseAttributeType
com.easydesk.om.AttributeType
- All Implemented Interfaces:
Cacheable,Artifactizable,Optionable<AttributeType>,Identifiable<Integer>,Serializable,ColumnAccessByName,ObjectModel,Persistent
public class AttributeType
extends BaseAttributeType
implements Artifactizable, Optionable<AttributeType>, Identifiable<Integer>, Cacheable
속성 유형(AttributeType) OM. 속성 값의 저장 방식(ValidationKey)과 화면 표시 유형을 판단한다.
- Author:
- Youngho Cho
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAttributeTypestatic enumForm 과 입력단 binding 에서 사용할 ValidationKey -
Field Summary
Fields inherited from class com.easydesk.om.BaseAttributeType
collAttributesFields inherited from interface com.easydesk.om.Artifactizable
ARTIFACTIZABLE_PATTERN, ATTRIBUTE_MAP_PATTERNFields inherited from interface com.easydesk.om.Optionable
ALL, GET_BY_NAME, NAME_SEPERATOR, OPTIONABLE_PATTERN, ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clear this Serializable instance cachefixedDOCUMENT ME!DOCUMENT ME!getId()Get the Id of the Identifiable Entity.Class<?> JavaClassName field 에 해당하는 JavaClass 를 구한다.부모 Attribute 를 구한다.booleanIs Ajax used type ...booleanCheckBox, RadioBoxbooleanAttribute Type 이 CorrelatedType 인 경우 이름에 Correlated 을 비교한다.booleantype 의 이름이 Counter 로 끝나는 것booleanDOCUMENT ME!boolean날짜 유형인지 확인한다.booleanDropDownboolean종료시간을 나타내는 날짜 유형인지boolean파일 유형인지 확인한다.booleanAttribute 가 소수점을 가지는 NumberType 인지 확인booleanDOCUMENT ME!booleanText Type 중 LongText 를 이용할 유형인지..booleanDOCUMENT ME!booleanmulti-valued 인 경우boolean이 유형은 ModuleAttributeValuesMap 의 설정에서 personal 과 동일하게 취급한다.booleanAttribute 가 NumberType 인지 확인booleanattribute type 의 class name 이 SelectOne 또는 mulit-select 인지를 확인한다.booleanPersonal 인지 여부를 확인한다.booleanPickUp TypebooleanCheckBox, RadioBoxbooleanattribute type 이 Date 또는 numericbooleanOption Type 이 select-many 인 경우booleanOption Type 이 SelectOne 인 경우boolean저장할 때 한번 실행하는 속성인지booleantext 유형인지 확인한다.booleanis Need ToolTip 속성값을 누루면 편집할 수 있는 ToolTip 이 생성된다booleanDOCUMENT ME!booleanAttribute 가 UserType 인지 확인voidsave()Stores the object in the database.voidIdentifiable implementationvoidsetParent(AttributeType optionable) DOCUMENT ME!Methods inherited from class com.easydesk.om.BaseAttributeType
addAttribute, addAttribute, copy, copy, copy, copy, copyInto, copyInto, copyInto, copyInto, equals, getAttributes, getAttributes, getAttributes, getAttributes, getByName, getByPeerName, getByPosition, getFieldNames, getJavaClassName, getName, getPeer, getPrimaryKey, getTableMap, getTypeId, getValidationKey, hashCode, initAttributes, isAttributesInitialized, isCacheOnSave, isDeleted, isLoading, isModified, isNew, isSaving, resetAttribute, resetModified, save, save, setByName, setByPeerName, setByPosition, setDeleted, setJavaClassName, setLoading, setModified, setName, setNew, setPrimaryKey, setPrimaryKey, setSaving, setTypeId, setValidationKey, toString, valueEqualsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.easydesk.om.Artifactizable
getArtifact, getArtifactKey, getArtifactModule, getPrimaryKey, getTableMapMethods inherited from interface com.easydesk.om.Optionable
appendOption, getName, getPathName, isRoot, setName
-
Constructor Details
-
AttributeType
public AttributeType()새로운AttributeType인스턴스를 생성한다.
-
-
Method Details
-
getId
Description copied from interface:IdentifiableGet the Id of the Identifiable Entity.- Specified by:
getIdin interfaceIdentifiable<Integer>- Returns:
- The Id of the entity.
-
setId
Identifiable implementation- Specified by:
setIdin interfaceIdentifiable<Integer>- Parameters:
id- The new Id of the entity
-
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 classBaseAttributeType- Throws:
Exception- 저장 중 오류가 발생한 경우
-
getJavaClass
JavaClassName field 에 해당하는 JavaClass 를 구한다.- Returns:
- class
- Throws:
ClassNotFoundException- class 를 찾을 수 없는 경우
-
getValidationKeyEnum
- Returns:
- DOCUMENT ME!
-
isUserType
public boolean isUserType()Attribute 가 UserType 인지 확인- Returns:
- USER_ID 또는 USER_IDS 유형이면
true
-
isOptionType
attribute type 의 class name 이 SelectOne 또는 mulit-select 인지를 확인한다.- Returns:
- boolean
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
isNumericType
Attribute 가 NumberType 인지 확인- Returns:
- 숫자 유형이면
true - Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
isFileType
파일 유형인지 확인한다.- Returns:
- boolean
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
isSelectOne
Option Type 이 SelectOne 인 경우- Returns:
- boolean
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
isSelectMultiple
public boolean isSelectMultiple()Option Type 이 select-many 인 경우- Returns:
- boolean
-
isMultiValued
public boolean isMultiValued()multi-valued 인 경우- Returns:
- boolean
-
isFloatNumberType
public boolean isFloatNumberType()Attribute 가 소수점을 가지는 NumberType 인지 확인- Returns:
- 소수점 숫자 유형이면
true
-
isDateType
날짜 유형인지 확인한다.- Returns:
- 날짜 유형이면
true - Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
isDueDateType
public boolean isDueDateType()종료시간을 나타내는 날짜 유형인지- Returns:
- 종료시간 날짜 유형이면
true
-
isTextType
public boolean isTextType()text 유형인지 확인한다.- Returns:
- text 유형이면
true
-
isLongText
public boolean isLongText()Text Type 중 LongText 를 이용할 유형인지.. 주의 : LongText 유형은 Activity 에 OldValue, NewValue 를 저장할 때 압축을 실행한다. 따라서 LongText 의 유형변경은 가급적 하지 않아야 한다.- Returns:
- LongText 유형이면
true
-
isRangeType
attribute type 이 Date 또는 numeric- Returns:
- boolean
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
isCorrelateType
public boolean isCorrelateType()Attribute Type 이 CorrelatedType 인 경우 이름에 Correlated 을 비교한다.- Returns:
- boolean
-
isMultiValuedCorrelate
public boolean isMultiValuedCorrelate()이 유형은 ModuleAttributeValuesMap 의 설정에서 personal 과 동일하게 취급한다. 즉 personal 처럼 item 에 속성값의 정보를 저장하지 않는다.- Returns:
- true/false
-
isPersonal
public boolean isPersonal()Personal 인지 여부를 확인한다.- Returns:
- true/false
-
isCurrency
public boolean isCurrency()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
isKeyWord
public boolean isKeyWord()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
isSingleTriggeredType
public boolean isSingleTriggeredType()저장할 때 한번 실행하는 속성인지- Returns:
- 저장할 때 한번 실행하는 유형이면
true
-
isPickUpType
public boolean isPickUpType()PickUp Type- Returns:
- PickUp 유형이면
true
-
isLowerType
public boolean isLowerType()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
isUpperType
public boolean isUpperType()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
isDropDownType
public boolean isDropDownType()DropDown- Returns:
- DropDown 유형이면
true
-
isRadioType
public boolean isRadioType()CheckBox, RadioBox- Returns:
- Radio 유형이면
true
-
isCheckBoxType
public boolean isCheckBoxType()CheckBox, RadioBox- Returns:
- CheckBox 유형이면
true
-
isAsyncType
public boolean isAsyncType()Is Ajax used type ...- Returns:
- 비동기(Ajax) 유형이면
true
-
isToolTipType
public boolean isToolTipType()is Need ToolTip 속성값을 누루면 편집할 수 있는 ToolTip 이 생성된다- Returns:
- ToolTip 유형이면
true
-
isCounterType
public boolean isCounterType()type 의 이름이 Counter 로 끝나는 것- Returns:
- Counter 유형이면
true
-
getArtifactType
fixed- Specified by:
getArtifactTypein interfaceArtifactizable- Returns:
- itemType
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getParent
부모 Attribute 를 구한다.- Specified by:
getParentin interfaceOptionable<AttributeType>- Returns:
- parent attribute
-
setParent
DOCUMENT ME!- Specified by:
setParentin interfaceOptionable<AttributeType>- Parameters:
optionable- DOCUMENT ME!
-
getAttribute
DOCUMENT ME!- Specified by:
getAttributein interfaceOptionable<AttributeType>- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getAttributeOption
DOCUMENT ME!- Specified by:
getAttributeOptionin interfaceOptionable<AttributeType>- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getMethodCache
- Specified by:
getMethodCachein interfaceCacheable- Returns:
- MethodResultCache
-
clear
public void clear()Description copied from interface:Cacheableclear this Serializable instance cache
-