Class Query

All Implemented Interfaces:
DeleteMarkerable, LocalizableOM, Orderable<Query>, Serializable, Comparable<Query>, ColumnAccessByName, ObjectModel, Persistent

public class Query extends BaseQuery implements Orderable<Query>, LocalizableOM, DeleteMarkerable
Artifactizable(Query) The skeleton for this class was autogenerated by Torque This class manages the Query table. TODO : Personal 은 Artifactizable 을 만들지 않는다. Scope 에 따라 Artifactizable Process 를 진행한다.
Version:
$Id: Query.java,v 1.193 2008/12/25 04:03:45 youngho Exp $
Author:
Youngho Cho
  • Field Details

    • OPTION_NAME_PATTERN

      protected static final Pattern OPTION_NAME_PATTERN
      Query 가 하나의 AttributeOption 에 대응되고 있을때 Query 의 이름 패턴
    • DEFAULT_NUMBER

      public static final int DEFAULT_NUMBER
      the default number which show in a single page TODO : use configure
      See Also:
  • Constructor Details

    • Query

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

      public Localized[] getLocalized(Locale locale) throws TorqueException
      Description copied from interface: LocalizableOM
      locale 에 해당하는 localized 정보를 구한다.
      Specified by:
      getLocalized in interface LocalizableOM
      Parameters:
      locale -
      Returns:
      localized
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • delete

      public boolean delete(EasyDeskUser user) throws Exception
      Checks if user has permission to delete query. Only the creating user can delete a personal query. Only project owner or admin can delete a project-wide query.
      Specified by:
      delete in interface DeleteMarkerable
      Parameters:
      user - who is acting
      Returns:
      true success false not success
      Throws:
      Exception - 삭제 중 오류가 발생한 경우
    • isOwner

      public boolean isOwner(EasyDeskUser user)
      DOCUMENT ME!
      Parameters:
      user - DOCUMENT ME!
      Returns:
      DOCUMENT ME!