Java Doc for Query.java in  » Issue-Tracking » scarab-0.21 » org » tigris » scarab » om » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Issue Tracking » scarab 0.21 » org.tigris.scarab.om 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.tigris.scarab.om.BaseQuery
   org.tigris.scarab.om.Query

Query
public class Query extends BaseQuery implements Persistent(Code)
This class manages the Query table.
author:
   John McNally
version:
   $Id: Query.java 9977 2005-12-09 00:40:59Z hair $




Method Summary
public  voidapprove(ScarabUser user, boolean approved)
     Checks permission and approves or rejects query.
public  booleancanDelete(ScarabUser user)
    
public  booleancanEdit(ScarabUser user)
    
public  voidcopyQuery(ScarabUser user)
     Checks if user has permission to delete query.
public  voiddelete(ScarabUser user)
     Checks if user has permission to delete query.
public static  QuerygetInstance()
    
public  MITListgetMITList()
    
public  ModulegetModule()
     Module getter.
public  RQueryUsergetRQueryUser(ScarabUser user)
     Gets RQueryUser object for this query and user.
public  ScarabModulegetScarabModule()
     Throws UnsupportedOperationException.
public  ScarabUsergetScarabUser()
     Get the value of scarabUser.
public  booleansaveAndSendEmail(ScarabUser user, Module module, TemplateContext context)
     Either returns true, if no email problem occured, or throws an appropriate Exception.
public  voidsetModule(Module me)
     Use this instead of setScarabModule.
public  voidsetScarabModule(ScarabModule module)
     Throws UnsupportedOperationException.
public  voidsetScarabUser(ScarabUser v)
     Set the value of scarabUser.
public  voidsubscribe(ScarabUser user, Integer frequencyId)
     Subscribes user to query.
public  voidunSubscribe(ScarabUser user)
     Unsubscribes user from query.



Method Detail
approve
public void approve(ScarabUser user, boolean approved) throws TorqueException, ScarabException(Code)
Checks permission and approves or rejects query. If query is approved, query type set to "module", else set to "personal".



canDelete
public boolean canDelete(ScarabUser user) throws TorqueException(Code)



canEdit
public boolean canEdit(ScarabUser user) throws TorqueException(Code)



copyQuery
public void copyQuery(ScarabUser user) throws TorqueException(Code)
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.



delete
public void delete(ScarabUser user) throws TorqueException, ScarabException(Code)
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.



getInstance
public static Query getInstance()(Code)
A new Query object



getMITList
public MITList getMITList() throws TorqueException(Code)



getModule
public Module getModule() throws TorqueException(Code)
Module getter. Use this method instead of getScarabModule(). a Module value



getRQueryUser
public RQueryUser getRQueryUser(ScarabUser user) throws TorqueException(Code)
Gets RQueryUser object for this query and user.



getScarabModule
public ScarabModule getScarabModule()(Code)
Throws UnsupportedOperationException. Use getModule() instead. a ScarabModule value



getScarabUser
public ScarabUser getScarabUser() throws TorqueException(Code)
Get the value of scarabUser. value of scarabUser.



saveAndSendEmail
public boolean saveAndSendEmail(ScarabUser user, Module module, TemplateContext context) throws TorqueException, ScarabException(Code)
Either returns true, if no email problem occured, or throws an appropriate Exception. Note: If an email exception occured, the query is still saved.
Parameters:
  user -
Parameters:
  module -
Parameters:
  context -
throws:
  TorqueException -



setModule
public void setModule(Module me) throws TorqueException(Code)
Use this instead of setScarabModule. Note: module cannot be new.



setScarabModule
public void setScarabModule(ScarabModule module)(Code)
Throws UnsupportedOperationException. Use setModule(Module) instead.



setScarabUser
public void setScarabUser(ScarabUser v) throws TorqueException(Code)
Set the value of scarabUser.
Parameters:
  v - Value to assign to scarabUser.



subscribe
public void subscribe(ScarabUser user, Integer frequencyId) throws TorqueException(Code)
Subscribes user to query.



unSubscribe
public void unSubscribe(ScarabUser user) throws TorqueException(Code)
Unsubscribes user from query.



Fields inherited from org.tigris.scarab.om.BaseQuery
protected List collRQueryUsers(Code)(Java Doc)

Methods inherited from org.tigris.scarab.om.BaseQuery
public void addRQueryUser(RQueryUser l) throws TorqueException(Code)(Java Doc)
public Query copy() throws TorqueException(Code)(Java Doc)
protected Query copyInto(Query copyObj) throws TorqueException(Code)(Java Doc)
public boolean getApproved()(Code)(Java Doc)
public Object getByName(String name)(Code)(Java Doc)
public Object getByPeerName(String name)(Code)(Java Doc)
public Object getByPosition(int pos)(Code)(Java Doc)
public Date getCreatedDate()(Code)(Java Doc)
public boolean getDeleted()(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
public static synchronized List getFieldNames()(Code)(Java Doc)
public Frequency getFrequency() throws TorqueException(Code)(Java Doc)
public Frequency getFrequency(Connection connection) throws TorqueException(Code)(Java Doc)
public boolean getHomePage()(Code)(Java Doc)
public IssueType getIssueType() throws TorqueException(Code)(Java Doc)
public IssueType getIssueType(Connection connection) throws TorqueException(Code)(Java Doc)
public Integer getIssueTypeId()(Code)(Java Doc)
public Long getListId()(Code)(Java Doc)
public MITList getMITList() throws TorqueException(Code)(Java Doc)
public MITList getMITList(Connection connection) throws TorqueException(Code)(Java Doc)
public Module getModule() throws TorqueException(Code)(Java Doc)
public Module getModule(Connection connection) throws TorqueException(Code)(Java Doc)
public Integer getModuleId()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public int getOrder()(Code)(Java Doc)
public QueryPeer getPeer()(Code)(Java Doc)
public ObjectKey getPrimaryKey()(Code)(Java Doc)
public Long getQueryId()(Code)(Java Doc)
public String getQueryKey()(Code)(Java Doc)
public List getRQueryUsers() throws TorqueException(Code)(Java Doc)
public List getRQueryUsers(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getRQueryUsers(Connection con) throws TorqueException(Code)(Java Doc)
public List getRQueryUsers(Criteria criteria, Connection con) throws TorqueException(Code)(Java Doc)
protected List getRQueryUsersJoinFrequency(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getRQueryUsersJoinQuery(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getRQueryUsersJoinScarabUserImpl(Criteria criteria) throws TorqueException(Code)(Java Doc)
public ScarabUser getScarabUser() throws TorqueException(Code)(Java Doc)
public ScarabUser getScarabUser(Connection connection) throws TorqueException(Code)(Java Doc)
public Scope getScope() throws TorqueException(Code)(Java Doc)
public Scope getScope(Connection connection) throws TorqueException(Code)(Java Doc)
public Integer getScopeId()(Code)(Java Doc)
public Integer getSubscriptionFrequencyId()(Code)(Java Doc)
public Integer getUserId()(Code)(Java Doc)
public String getValue()(Code)(Java Doc)
protected void initRQueryUsers()(Code)(Java Doc)
protected boolean isCacheOnSave()(Code)(Java Doc)
public void save() throws TorqueException(Code)(Java Doc)
public void save(String dbName) throws TorqueException(Code)(Java Doc)
public void save(Connection con) throws TorqueException(Code)(Java Doc)
public void setApproved(boolean v)(Code)(Java Doc)
public void setCreatedDate(Date v)(Code)(Java Doc)
public void setDeleted(boolean v)(Code)(Java Doc)
public void setDescription(String v)(Code)(Java Doc)
public void setFrequency(Frequency v) throws TorqueException(Code)(Java Doc)
public void setFrequencyKey(ObjectKey key) throws TorqueException(Code)(Java Doc)
public void setHomePage(boolean v)(Code)(Java Doc)
public void setIssueType(IssueType v) throws TorqueException(Code)(Java Doc)
public void setIssueTypeId(Integer v) throws TorqueException(Code)(Java Doc)
public void setIssueTypeKey(ObjectKey key) throws TorqueException(Code)(Java Doc)
public void setListId(Long v) throws TorqueException(Code)(Java Doc)
public void setMITList(MITList v) throws TorqueException(Code)(Java Doc)
public void setMITListKey(ObjectKey key) throws TorqueException(Code)(Java Doc)
public void setModule(Module v) throws TorqueException(Code)(Java Doc)
public void setModuleId(Integer v) throws TorqueException(Code)(Java Doc)
public void setModuleKey(ObjectKey key) throws TorqueException(Code)(Java Doc)
public void setName(String v)(Code)(Java Doc)
public void setOrder(int v)(Code)(Java Doc)
public void setPrimaryKey(ObjectKey key) throws TorqueException(Code)(Java Doc)
public void setPrimaryKey(String key) throws TorqueException(Code)(Java Doc)
public void setQueryId(Long v) throws TorqueException(Code)(Java Doc)
public void setQueryKey(String key) throws TorqueException(Code)(Java Doc)
public void setScarabUser(ScarabUser v) throws TorqueException(Code)(Java Doc)
public void setScarabUserKey(ObjectKey key) throws TorqueException(Code)(Java Doc)
public void setScope(Scope v) throws TorqueException(Code)(Java Doc)
public void setScopeId(Integer v) throws TorqueException(Code)(Java Doc)
public void setScopeKey(ObjectKey key) throws TorqueException(Code)(Java Doc)
public void setSubscriptionFrequencyId(Integer v) throws TorqueException(Code)(Java Doc)
public void setUserId(Integer v) throws TorqueException(Code)(Java Doc)
public void setValue(String v)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.