Package com.easydesk.om
Class Query
java.lang.Object
com.easydesk.om.BaseQuery
com.easydesk.om.Query
- All Implemented Interfaces:
DeleteMarkerable,LocalizableOM,Orderable<Query>,Serializable,Comparable<Query>,ColumnAccessByName,ObjectModel,Persistent
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intthe default number which show in a single page TODO : use configureprotected static final PatternQuery 가 하나의 AttributeOption 에 대응되고 있을때 Query 의 이름 패턴static final String모든 ModuleItemType 의 빠른 검색, System Query 이고 모든 Module 은 MITList 를 공유한다.Fields inherited from class com.easydesk.om.BaseQuery
collQueryUsers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandelete(EasyDeskUser user) Checks if user has permission to delete query.getLocalized(Locale locale) locale 에 해당하는 localized 정보를 구한다.booleanisOwner(EasyDeskUser user) DOCUMENT ME!voidsave()Stores the object in the database.Methods inherited from class com.easydesk.om.BaseQuery
addQueryUser, addQueryUser, copy, copy, copy, copy, copyInto, copyInto, copyInto, copyInto, equals, getByName, getByPeerName, getByPosition, getCreatedDate, getEasyDeskModule, getEasyDeskModule, getEasyDeskUserImpl, getEasyDeskUserImpl, getFieldNames, getForeignKeyForEasyDeskModule, getForeignKeyForEasyDeskUserImpl, getForeignKeyForMITList, getForeignKeyForScope, getForeignKeyForTimeScope, getListId, getMITList, getMITList, getModuleId, getName, getOrder, getPeer, getPrimaryKey, getQueryId, getQueryUsers, getQueryUsers, getQueryUsers, getQueryUsers, getQueryUsersJoinEasyDeskUserImpl, getQueryUsersJoinEasyDeskUserImpl, getQueryUsersJoinTimeScope, getQueryUsersJoinTimeScope, getScope, getScope, getScopeId, getSubscriptionFrequencyId, getTableMap, getTemplate, getTimeScope, getTimeScope, getUserId, hashCode, initQueryUsers, isApproved, isCacheOnSave, isDeleted, isHomePage, isLoading, isModified, isNew, isQueryUsersInitialized, isRemoved, isSaving, resetModified, resetQueryUser, save, save, setApproved, setByName, setByPeerName, setByPosition, setCreatedDate, setDeleted, setEasyDeskModule, setEasyDeskModuleKey, setEasyDeskUserImpl, setEasyDeskUserImplKey, setHomePage, setListId, setLoading, setMITList, setMITListKey, setModified, setModuleId, setName, setNew, setOrder, setPrimaryKey, setPrimaryKey, setQueryId, setRemoved, setSaving, setScope, setScopeId, setScopeKey, setSubscriptionFrequencyId, setTemplate, setTimeScope, setTimeScopeKey, setUserId, toString, valueEqualsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.easydesk.om.DeleteMarkerable
isDeletedMethods 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
-
QUICK_SEARCH
모든 ModuleItemType 의 빠른 검색, System Query 이고 모든 Module 은 MITList 를 공유한다.- See Also:
-
OPTION_NAME_PATTERN
Query 가 하나의 AttributeOption 에 대응되고 있을때 Query 의 이름 패턴 -
DEFAULT_NUMBER
public static final int DEFAULT_NUMBERthe default number which show in a single page TODO : use configure- See Also:
-
-
Constructor Details
-
Query
public Query()새로운Query인스턴스를 생성한다.
-
-
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 classBaseQuery- Throws:
Exception- 저장 중 오류가 발생한 경우
-
getLocalized
Description copied from interface:LocalizableOMlocale 에 해당하는 localized 정보를 구한다.- Specified by:
getLocalizedin interfaceLocalizableOM- Parameters:
locale-- Returns:
- localized
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
delete
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:
deletein interfaceDeleteMarkerable- Parameters:
user- who is acting- Returns:
- true success false not success
- Throws:
Exception- 삭제 중 오류가 발생한 경우
-
isOwner
DOCUMENT ME!- Parameters:
user- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-