Class QueryValue

All Implemented Interfaces:
Deletable, Serializable, ColumnAccessByName, ObjectModel, Persistent

public class QueryValue extends BaseQueryValue implements Deletable
Author:
Youngho Cho
  • Field Details

    • SINGLE_VALUE_KEY

      public static final List<String> SINGLE_VALUE_KEY
      QUERY VALUE 가 단 하나의 값만 같을 수 있는 속성 예를 들면 resultsperpage 값 등
    • IGNORE_VALUE_KEY

      public static final List<String> IGNORE_VALUE_KEY
      IGNORE KEY 예를 들면 qattv 등 ???
    • INTAKE_KEY_PATTERN

      public static final Pattern INTAKE_KEY_PATTERN
      qattv__579val
  • Constructor Details

    • QueryValue

      public QueryValue()
      새로운 QueryValue 인스턴스를 생성한다.
  • 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 BaseQueryValue
      Throws:
      Exception - 저장 중 오류가 발생한 경우
    • delete

      public boolean delete(boolean overrideLock) throws Exception
      Delete the record.
      Specified by:
      delete in interface Deletable
      Parameters:
      overrideLock - lock 이 걸려 있어도 삭제할지 여부
      Returns:
      true success false not success
      Throws:
      Exception - 삭제 중 오류가 발생한 경우
    • setSearchItemKey

      public void setSearchItemKey(String name)
      Parameters:
      name -
    • parse

      public static QueryValue parse(String key) throws Exception
      key 값에 해당하는 QueryValue 를 구한다. 이때 QueryValue 는 완전한 것이 아니다. 단지 OptionId 와 AttributeId 를 설정한다. database format 으로 decode 의 역순이다.
      Parameters:
      key -
      Throws:
      Exception
    • decode

      public void decode(org.apache.fulcrum.parser.ValueParser parser) throws TorqueException
      application format 으로
      Parameters:
      parser -
      Throws:
      TorqueException
    • getAttributeKey

      public static String getAttributeKey(String key)
      DOCUMENT ME!
      Parameters:
      key - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • getQueryKey

      public static String getQueryKey(Attribute attribute) throws TorqueException
      각 속성에 맞는 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

      protected String getKey() throws TorqueException
      ValueParser 의 key 를 만든다.
      Throws:
      TorqueException
    • getValues

      protected String[] getValues() throws TorqueException
      다중 Query String 을 , seperated 로 저장하였다.
      Throws:
      TorqueException
    • toString

      public String toString()
      DOCUMENT ME!
      Overrides:
      toString in class BaseQueryValue
      Returns:
      DOCUMENT ME!
    • setProperties

      public void setProperties(QueryValue value) throws TorqueException
      DOCUMENT ME!
      Parameters:
      value - DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!