Java Doc for SurveyDB.java in  » Portal » Open-Portal » com » sun » portal » app » collab » survey » model » 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 » Portal » Open Portal » com.sun.portal.app.collab.survey.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.app.collab.survey.model.SurveyDB

SurveyDB
public class SurveyDB (Code)


Field Summary
final public static  intLIST_STATUS_ALL
    
final public static  intLIST_STATUS_CLOSED
    
final public static  intLIST_STATUS_OPEN
    
final public static  intLIST_TYPE_BOTH
    
final public static  intLIST_TYPE_POLLS
    
final public static  intLIST_TYPE_SURVEYS
    


Method Summary
public  voidaddResponse(int surveyId, String userId, int questionId, int answerId)
    
public  voidaddResponse(int surveyId, String userId, int questionId, String open_answer)
    
public  voidcreate(SurveyModel survey)
    
public  voiddelete(int surveyId)
    
public  voiddelete(String ctyId)
    
protected  voiddeleteAnswer(Connection conn, int answerId)
    
protected  voiddeleteQuestion(Connection conn, int questionId)
    
protected  voiddeleteResponses(Connection conn, int surveyId)
    
protected  voiddeleteSurvey(Connection conn, int surveyId)
    
public  intgetAnswerResponseCount(int answerId)
    
public  floatgetAnswerResponsePct(int answerId)
    
public  ArrayListgetAnswers(int questionid)
    
protected  ConnectiongetConnection()
    
public  String[]getCustomAnswers(int questionId)
    
public  intgetQuestionRespondantCount(int questionId)
    
public  intgetQuestionResponseCount(int questionId)
    
public  floatgetQuestionResponsePct(int questionId)
    
public  ArrayListgetQuestions(int surveyId)
    
public  SurveyModelgetSurveyModel(int surveyId)
    
public  intgetSurveyResponseCount(int surveyId)
    
public  booleanhasResponded(int surveyId, String userId)
    
public  ArrayListlist(String communityId, int type, int status, int maxnum)
    
protected  voidlogException(String msg, Exception e)
    
public static  voidmain(String[] args)
    
public  booleanresponseAllowed(int surveyId, int questionId, String userId)
    
public  ArrayListsearch(String communityId, String searchstr, java.util.Date startdate, java.util.Date enddate, int type, int status, int maxnum)
    
public static  voidtestAddResponse()
    
public static  voidtestCreateSurvey()
    
public static  voidtestDelete(int surveyId)
    
public static  voidtestGetSurvey(int surveyId)
    
public static  voidtestHasResponded(int surveyId, String userId)
    
public static  voidtestList()
    
public static  voidtestPrintSurvey(SurveyModel s)
    
public static  voidtestSetupLogging()
    

Field Detail
LIST_STATUS_ALL
final public static int LIST_STATUS_ALL(Code)



LIST_STATUS_CLOSED
final public static int LIST_STATUS_CLOSED(Code)



LIST_STATUS_OPEN
final public static int LIST_STATUS_OPEN(Code)



LIST_TYPE_BOTH
final public static int LIST_TYPE_BOTH(Code)



LIST_TYPE_POLLS
final public static int LIST_TYPE_POLLS(Code)



LIST_TYPE_SURVEYS
final public static int LIST_TYPE_SURVEYS(Code)





Method Detail
addResponse
public void addResponse(int surveyId, String userId, int questionId, int answerId) throws SurveyException(Code)



addResponse
public void addResponse(int surveyId, String userId, int questionId, String open_answer) throws SurveyException(Code)



create
public void create(SurveyModel survey) throws SurveyException(Code)



delete
public void delete(int surveyId) throws SurveyException(Code)



delete
public void delete(String ctyId) throws SurveyException(Code)



deleteAnswer
protected void deleteAnswer(Connection conn, int answerId) throws SQLException(Code)



deleteQuestion
protected void deleteQuestion(Connection conn, int questionId) throws SQLException(Code)



deleteResponses
protected void deleteResponses(Connection conn, int surveyId) throws SQLException(Code)



deleteSurvey
protected void deleteSurvey(Connection conn, int surveyId) throws SQLException(Code)



getAnswerResponseCount
public int getAnswerResponseCount(int answerId) throws SurveyException(Code)



getAnswerResponsePct
public float getAnswerResponsePct(int answerId) throws SurveyException(Code)



getAnswers
public ArrayList getAnswers(int questionid) throws SurveyException(Code)



getConnection
protected Connection getConnection() throws SurveyException(Code)



getCustomAnswers
public String[] getCustomAnswers(int questionId) throws SurveyException(Code)



getQuestionRespondantCount
public int getQuestionRespondantCount(int questionId) throws SurveyException(Code)



getQuestionResponseCount
public int getQuestionResponseCount(int questionId) throws SurveyException(Code)



getQuestionResponsePct
public float getQuestionResponsePct(int questionId) throws SurveyException(Code)



getQuestions
public ArrayList getQuestions(int surveyId) throws SurveyException(Code)



getSurveyModel
public SurveyModel getSurveyModel(int surveyId) throws SurveyException(Code)



getSurveyResponseCount
public int getSurveyResponseCount(int surveyId) throws SurveyException(Code)



hasResponded
public boolean hasResponded(int surveyId, String userId) throws SurveyException(Code)



list
public ArrayList list(String communityId, int type, int status, int maxnum) throws SurveyException(Code)



logException
protected void logException(String msg, Exception e)(Code)



main
public static void main(String[] args) throws Exception(Code)



responseAllowed
public boolean responseAllowed(int surveyId, int questionId, String userId) throws SurveyException(Code)



search
public ArrayList search(String communityId, String searchstr, java.util.Date startdate, java.util.Date enddate, int type, int status, int maxnum) throws SurveyException(Code)



testAddResponse
public static void testAddResponse() throws SurveyException(Code)



testCreateSurvey
public static void testCreateSurvey() throws SurveyException(Code)



testDelete
public static void testDelete(int surveyId) throws SurveyException(Code)



testGetSurvey
public static void testGetSurvey(int surveyId) throws SurveyException(Code)



testHasResponded
public static void testHasResponded(int surveyId, String userId) throws SurveyException(Code)



testList
public static void testList() throws SurveyException(Code)



testPrintSurvey
public static void testPrintSurvey(SurveyModel s) throws SurveyException(Code)



testSetupLogging
public static void testSetupLogging() throws Exception(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

w_w___w_._ja__va__2__s__.___co_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.