Package com.easydesk.om
Class QueryValue
java.lang.Object
com.easydesk.om.BaseQueryValue
com.easydesk.om.QueryValue
- All Implemented Interfaces:
Deletable,Serializable,ColumnAccessByName,ObjectModel,Persistent
- Author:
- Youngho Cho
-
Field Summary
FieldsModifier and TypeFieldDescriptionIGNORE KEY 예를 들면 qattv 등 ???static final Patternqattv__579valQUERY VALUE 가 단 하나의 값만 같을 수 있는 속성 예를 들면 resultsperpage 값 등 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(org.apache.fulcrum.parser.ValueParser parser) application format 으로booleandelete(boolean overrideLock) Delete the record.static StringgetAttributeKey(String key) DOCUMENT ME!protected StringgetKey()ValueParser 의 key 를 만든다.static StringgetQueryKey(Attribute attribute) 각 속성에 맞는 Query 용 intake QueryKey 를 생성한다.protected String[]다중 Query String 을 , seperated 로 저장하였다.static QueryValuekey 값에 해당하는 QueryValue 를 구한다.voidsave()Stores the object in the database.voidsetProperties(QueryValue value) DOCUMENT ME!static AttributeValuesetQueryValue(AttributeValue aval, String value) DOCUMENT ME!voidsetSearchItemKey(String name) toString()DOCUMENT ME!Methods inherited from class com.easydesk.om.BaseQueryValue
copy, copy, copy, copy, copyInto, copyInto, copyInto, copyInto, equals, getAttribute, getAttribute, getAttributeId, getAttributeOption, getAttributeOption, getByName, getByPeerName, getByPosition, getEasyDeskModule, getEasyDeskModule, getFieldNames, getForeignKeyForAttribute, getForeignKeyForAttributeOption, getForeignKeyForEasyDeskModule, getForeignKeyForMITList, getKeyType, getListId, getMITList, getMITList, getModuleId, getOptionId, getPeer, getPrimaryKey, getTableMap, getValue, hashCode, isCacheOnSave, isDeleted, isLoading, isModified, isNew, isSaving, resetModified, save, save, setAttribute, setAttributeId, setAttributeKey, setAttributeOption, setAttributeOptionKey, setByName, setByPeerName, setByPosition, setDeleted, setEasyDeskModule, setEasyDeskModuleKey, setKeyType, setListId, setLoading, setMITList, setMITListKey, setModified, setModuleId, setNew, setOptionId, setPrimaryKey, setPrimaryKey, setPrimaryKey, setSaving, setValue, valueEqualsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.torque.om.ObjectModel
getPrimaryKey, isModified, isNew, setModified, setNew, setPrimaryKey, setPrimaryKeyMethods inherited from interface org.apache.torque.om.Persistent
save, save
-
Field Details
-
SINGLE_VALUE_KEY
QUERY VALUE 가 단 하나의 값만 같을 수 있는 속성 예를 들면 resultsperpage 값 등 -
IGNORE_VALUE_KEY
IGNORE KEY 예를 들면 qattv 등 ??? -
INTAKE_KEY_PATTERN
qattv__579val
-
-
Constructor Details
-
QueryValue
public QueryValue()새로운QueryValue인스턴스를 생성한다.
-
-
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 classBaseQueryValue- Throws:
Exception- 저장 중 오류가 발생한 경우
-
delete
Delete the record. -
setSearchItemKey
- Parameters:
name-
-
parse
key 값에 해당하는 QueryValue 를 구한다. 이때 QueryValue 는 완전한 것이 아니다. 단지 OptionId 와 AttributeId 를 설정한다. database format 으로 decode 의 역순이다.- Parameters:
key-- Throws:
Exception
-
decode
application format 으로- Parameters:
parser-- Throws:
TorqueException
-
getAttributeKey
DOCUMENT ME!- Parameters:
key- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getQueryKey
각 속성에 맞는 Query 용 intake QueryKey 를 생성한다.- Parameters:
attribute-- Throws:
TorqueException
-
setQueryValue
public static AttributeValue setQueryValue(AttributeValue aval, String value) throws TorqueException DOCUMENT ME!- Parameters:
aval- DOCUMENT ME!value- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getKey
ValueParser 의 key 를 만든다.- Throws:
TorqueException
-
getValues
다중 Query String 을 , seperated 로 저장하였다.- Throws:
TorqueException
-
toString
DOCUMENT ME!- Overrides:
toStringin classBaseQueryValue- Returns:
- DOCUMENT ME!
-
setProperties
DOCUMENT ME!- Parameters:
value- DOCUMENT ME!- Throws:
TorqueException- DOCUMENT ME!
-