Java Doc for SQLCampaign.java in  » Test-Coverage » salome-tmf » org » objectweb » salome_tmf » databaseSQL » 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 » Test Coverage » salome tmf » org.objectweb.salome_tmf.databaseSQL 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.salome_tmf.databaseSQL.SQLCampaign

SQLCampaign
public class SQLCampaign implements ISQLCampaign(Code)




Method Summary
public  intaddAttachFile(int idCamp, SalomeFileWrapper file, String description)
    
public  intaddAttachUrl(int idCamp, String url, String description)
    
public  voiddelete(int idCamp)
    
public  voiddelete(int idCamp, boolean reorder)
    
public  voiddeleteAllAttach(int idCamp)
    
public  voiddeleteAllDataset(int idCamp)
    
public  voiddeleteAllExec(int idCamp)
    
public  voiddeleteAttach(int idCamp, int idAttach)
    
public  voiddeleteTest(int idCamp, int testId, boolean deleteExec)
    
public  voiddeleteTest(int idCamp, int testId, boolean deleteExec, boolean reorder)
    
public  voiddeleteTestInAllCampaign(int idTest)
    
public  CampaignWrapper[]getAllCampaigns(int idProject)
    
public  FileAttachementWrapper[]getAttachFiles(int idCamp)
    
public  UrlAttachementWrapper[]getAttachUrls(int idCamp)
    
public  AttachementWrapper[]getAttachs(int idCamp)
    
public  CampaignWrappergetCampaign(int idCamp)
    
public  CampaignWrappergetCampaignByOrder(int idProject, int order)
    
public  DataSetWrapper[]getDatsets(int idCamp)
    
public  ExecutionWrapper[]getExecutions(int idCamp)
    
public  intgetID(int idProject, String name)
    
 TestCampWrappergetInCampaignFirstTestInFamily(int idCamp, int idFamily)
    
 TestCampWrappergetInCampaignFirstTestInSuite(int idCamp, int idSuite)
    
 TestCampWrappergetInCampaignLastTestInFamily(int idCamp, int idFamily)
    
 TestCampWrappergetInCampaignLastTestInSuite(int idCamp, int idSuite)
    
public  intgetNumberOfCampaign(int idProject)
    
public  intgetNumberOfTestInCampaign(int idCamp)
    
public  ExecutionAttachmentWrapper[]getResExecutionsAttachment(int idCamp)
    
public  intgetSizeOfFamilyInCampaign(int idCamp, int idFamily)
    
public  intgetSizeOfSuiteInCampaign(int idCamp, int idSuite)
    
public  TestCampWrappergetTestCampById(int idCamp, int idTest)
    
public  TestCampWrappergetTestCampByOrder(int idCamp, int order)
    
public  TestCampWrapper[]getTestsByOrder(int idCamp)
    
public  intimportTest(int idCamp, int idTest, int userID)
    
public  intinsert(int idProject, String name, String description, int idPers)
    
 voidpurgeTest(int idCamp, int idTest, boolean deleteExec)
    
public  voidupdate(int idCamp, String name, String description)
    
public  voidupdateCampagneAssignationRef(int idCamp, int assignedNewID)
    
public  voidupdateFamilyAssignation(int idCamp, int idFamille, int assignedID)
    
 voidupdateOrder(int idCamp, int order)
    
public  intupdateOrder(int idCamp, boolean increment)
    
public  voidupdateSuiteAssignation(int idCamp, int idSuite, int assignedID)
    
public  voidupdateTestAssignation(int idCamp, int idTest, int assignedID)
    
public  voidupdateTestAssignationRef(int idCamp, int assignedOldID, int assignedNewID)
    
public  voidupdateTestFamilyOrder(int idCamp, int idFamily, boolean increment)
    
 voidupdateTestOrder(int idCamp, int idTest, int order)
    
public  intupdateTestOrder(int idCamp, int idTest, boolean increment)
    
public  voidupdateTestSuiteOrder(int idCamp, int idSuite, boolean increment)
    
public  voidupdateUserRef(int idCamp, int oldIdUser, int newIdUser)
    



Method Detail
addAttachFile
public int addAttachFile(int idCamp, SalomeFileWrapper file, String description) throws Exception(Code)
Attach a file to a campaign identified by idCamp (table CAMPAGNE_ATTACHEMENT)
Parameters:
  idCamp -
Parameters:
  file - : the file to insert in the database
Parameters:
  description - the id of the attachement in the table ATTACHEMENT
throws:
  Exception -
See Also:    ISQLFileAttachment.insert(File, String)
See Also:   no permission needed



addAttachUrl
public int addAttachUrl(int idCamp, String url, String description) throws Exception(Code)
Attach a URL to a campaign identified by idCamp (table CAMPAGNE_ATTACHEMENT)
Parameters:
  idCamp -
Parameters:
  url - : the url to insert in the database
Parameters:
  description - the id of the attachement in the table ATTACHEMENT
throws:
  Exception -
See Also:    ISQLUrlAttachment.insert(String String)
See Also:   no permission needed



delete
public void delete(int idCamp) throws Exception(Code)
Delete a campaign and it's related links in the database include : delete test in campaign, dataset, execution (and result), and attachment reorder the campaign in the project
Parameters:
  idCamp -
throws:
  Exception - need permission canDeleteCamp
See Also:    deleteTest(int,int)
See Also:    deleteAllExec(int)
See Also:    deleteAllAttach(int)
See Also:    deleteAllDataset(int)
See Also:   need permission canDeleteCamp



delete
public void delete(int idCamp, boolean reorder) throws Exception(Code)
Delete a campaign and it's related links in the database include : delete test in campaign, dataset, execution (and result), and attachment reorder the campaign in the project if reorder = true
Parameters:
  idCamp -
throws:
  Exception - need permission canDeleteCamp
See Also:    deleteTest(int,int)
See Also:    deleteAllExec(int)
See Also:    deleteAllAttach(int)
See Also:    deleteAllDataset(int)
See Also:   need permission canDeleteCamp



deleteAllAttach
public void deleteAllAttach(int idCamp) throws Exception(Code)
Delete all attachments in the campaign (table CAMPAGNE_ATTACHEMENT and ATTACHEMENT)
Parameters:
  idCamp -
See Also:    deleteAttach(int, int)
throws:
  Exception -



deleteAllDataset
public void deleteAllDataset(int idCamp) throws Exception(Code)
Delete all datasets reference for the campaign identified by idCamp
Parameters:
  idCamp -
throws:
  Exception -
See Also:    ISQLDataset.delete(int)
See Also:   need permission canExecutCamp or canDeleteCamp



deleteAllExec
public void deleteAllExec(int idCamp) throws Exception(Code)
Delete all executions reference (and it's result) for the campaign identified by idCamp
Parameters:
  idCamp -
throws:
  Exception -
See Also:    ISQLExecution.delete(int)
See Also:   need permission canExecutCamp or canDeleteCamp



deleteAttach
public void deleteAttach(int idCamp, int idAttach) throws Exception(Code)
Delete an attachment idAttach in the campaign (table CAMPAGNE_ATTACHEMENT and ATTACHEMENT)
Parameters:
  idCamp -
Parameters:
  idAttach -
throws:
  Exception -
See Also:    ISQLAttachment.delete(int)
See Also:   no permission needed



deleteTest
public void deleteTest(int idCamp, int testId, boolean deleteExec) throws Exception(Code)



deleteTest
public void deleteTest(int idCamp, int testId, boolean deleteExec, boolean reorder) throws Exception(Code)
Delete a test reference for the campaign identified by idCamp then reoder the test in the campaign, and clean result on Excecution then delete execution if empty and deleteExec = true
Parameters:
  idCamp -
Parameters:
  testId -
Parameters:
  deleteExec -
throws:
  Exception - need permission canDeleteCamp



deleteTestInAllCampaign
public void deleteTestInAllCampaign(int idTest) throws Exception(Code)
Delete a test reference in all campaign and then reorder the tests in the campaign
Parameters:
  idTest -
See Also:    deleteTest(int, int)
See Also:   need permission canDeleteCamp
throws:
  Exception -



getAllCampaigns
public CampaignWrapper[] getAllCampaigns(int idProject) throws Exception(Code)
Return a Vector of CampaignWrapper representing the campaign of the project identified by idProject
Parameters:
  idProject -
throws:
  Exception -



getAttachFiles
public FileAttachementWrapper[] getAttachFiles(int idCamp) throws Exception(Code)
Get a Vector of FileAttachementWrapper for the campaign identified by idCamp
Parameters:
  idCamp - : id of the campaign
throws:
  Exception -



getAttachUrls
public UrlAttachementWrapper[] getAttachUrls(int idCamp) throws Exception(Code)
Get a Vector of UrlAttachementWrapper for the campaign identified by idCamp
Parameters:
  idCamp - : id of the campaign
throws:
  Exception -



getAttachs
public AttachementWrapper[] getAttachs(int idCamp) throws Exception(Code)
Get a Vector of AttachementWrapper (FileAttachementWrapper, UrlAttachementWrapper) for the campaign identified by idCamp
Parameters:
  idCamp - : id of the campaign
throws:
  Exception -



getCampaign
public CampaignWrapper getCampaign(int idCamp) throws Exception(Code)
Return a CampaignWrapper for the campaign identified by idCamp
Parameters:
  idCamp -
throws:
  Exception -



getCampaignByOrder
public CampaignWrapper getCampaignByOrder(int idProject, int order) throws Exception(Code)
Return a CampaignWrapper representing a campaign at order 'order' in the project identified by idProject
Parameters:
  idProject -
Parameters:
  order -
throws:
  Exception -



getDatsets
public DataSetWrapper[] getDatsets(int idCamp) throws Exception(Code)
Get a vector of DataSetWrapper used by the campaign idCamp
Parameters:
  idCamp -
throws:
  Exception -



getExecutions
public ExecutionWrapper[] getExecutions(int idCamp) throws Exception(Code)
Get a vector of ExecutionWrapper used by the campaign idCamp
Parameters:
  idCamp -
throws:
  Exception -



getID
public int getID(int idProject, String name) throws Exception(Code)
Get the id of the campaign identified by name in the project identified by idProject
Parameters:
  idProject -
Parameters:
  name -
throws:
  Exception -



getInCampaignFirstTestInFamily
TestCampWrapper getInCampaignFirstTestInFamily(int idCamp, int idFamily) throws Exception(Code)



getInCampaignFirstTestInSuite
TestCampWrapper getInCampaignFirstTestInSuite(int idCamp, int idSuite) throws Exception(Code)



getInCampaignLastTestInFamily
TestCampWrapper getInCampaignLastTestInFamily(int idCamp, int idFamily) throws Exception(Code)



getInCampaignLastTestInSuite
TestCampWrapper getInCampaignLastTestInSuite(int idCamp, int idSuite) throws Exception(Code)



getNumberOfCampaign
public int getNumberOfCampaign(int idProject) throws Exception(Code)
Return the number of campaign in the project identified by idProject
Parameters:
  idProject -
throws:
  Exception -



getNumberOfTestInCampaign
public int getNumberOfTestInCampaign(int idCamp) throws Exception(Code)
Return the number of tests in the campaign identified by idCamp
Parameters:
  idCamp -
throws:
  Exception -



getResExecutionsAttachment
public ExecutionAttachmentWrapper[] getResExecutionsAttachment(int idCamp) throws Exception(Code)
Get an Array of ExecutionAttachmentWrapper representing all attachement of all execution result
Parameters:
  idCamp -
throws:
  Exception -



getSizeOfFamilyInCampaign
public int getSizeOfFamilyInCampaign(int idCamp, int idFamily) throws Exception(Code)
Get the number of tests in the family idFamily in the campaign idCamp
Parameters:
  idCamp -
Parameters:
  idFamily -
throws:
  Exception -



getSizeOfSuiteInCampaign
public int getSizeOfSuiteInCampaign(int idCamp, int idSuite) throws Exception(Code)
Get the number of tests in the suite idSuite in the campaign idCamp
Parameters:
  idCamp -
Parameters:
  idSuite -
throws:
  Exception -



getTestCampById
public TestCampWrapper getTestCampById(int idCamp, int idTest) throws Exception(Code)
Get a TestCampWrapper representing the test idTest in the campagne idCamp
Parameters:
  idCamp -
Parameters:
  idTest -
throws:
  Exception -



getTestCampByOrder
public TestCampWrapper getTestCampByOrder(int idCamp, int order) throws Exception(Code)
Get a TestCampWrapper representing the test at defined order in the campagne idCamp
Parameters:
  idCamp -
Parameters:
  order -
throws:
  Exception -



getTestsByOrder
public TestCampWrapper[] getTestsByOrder(int idCamp) throws Exception(Code)
Get an ordered Vector of TestCampWrapper representing test available in the campaign idCamp
Parameters:
  idCamp -
throws:
  Exception -



importTest
public int importTest(int idCamp, int idTest, int userID) throws Exception(Code)
Import a test identified by idTest (in table CAS_TEST) in the campaign identified by idCamp in table CAMPAGNE_CAS
Parameters:
  idCamp -
Parameters:
  idTest - the order of the test in the campaign
throws:
  Exception - need permission canCreateCamp



insert
public int insert(int idProject, String name, String description, int idPers) throws Exception(Code)
Inset a campaign in table CAMPAGNE_TEST
Parameters:
  idProject - : id of the projet where to insert the campaign
Parameters:
  name - of the campaign
Parameters:
  description - of the campaign
Parameters:
  idPers - : id of the user who insert the campaign the id (id_camp) of new campaign
throws:
  Exception - need permission canCreateCamp



purgeTest
void purgeTest(int idCamp, int idTest, boolean deleteExec) throws Exception(Code)



update
public void update(int idCamp, String name, String description) throws Exception(Code)
Update the name and the description of the campaign identified by idCamp
Parameters:
  idCamp - of the campaign
Parameters:
  name - : new name of the campaign
Parameters:
  description - : new description of the campaign
throws:
  Exception - need permission canUpdateCamp



updateCampagneAssignationRef
public void updateCampagneAssignationRef(int idCamp, int assignedNewID) throws Exception(Code)
Update All test Assignation (field assigned_user_id) in CAMPAGNE_CAS
Parameters:
  idCamp -
Parameters:
  idTest -
Parameters:
  assignedID -
throws:
  Exception -



updateFamilyAssignation
public void updateFamilyAssignation(int idCamp, int idFamille, int assignedID) throws Exception(Code)
Update Suite Assignation (field assigned_user_id for all tests in the suite) in CAMPAGNE_CAS
Parameters:
  idCamp -
Parameters:
  idTest -
Parameters:
  assignedID -
throws:
  Exception -



updateOrder
void updateOrder(int idCamp, int order) throws Exception(Code)



updateOrder
public int updateOrder(int idCamp, boolean increment) throws Exception(Code)
Update the order of the campaign by incrementation (if increment = true) or decrementation
Parameters:
  idCamp - : id of the campaign
Parameters:
  increment -
throws:
  Exception - need permission canUpdateCamp or canExecutCamp



updateSuiteAssignation
public void updateSuiteAssignation(int idCamp, int idSuite, int assignedID) throws Exception(Code)
Update Suite Assignation (field assigned_user_id for all tests in the suite) in CAMPAGNE_CAS
Parameters:
  idCamp -
Parameters:
  idTest -
Parameters:
  assignedID -
throws:
  Exception -



updateTestAssignation
public void updateTestAssignation(int idCamp, int idTest, int assignedID) throws Exception(Code)
Update test Assignation (field assigned_user_id) in CAMPAGNE_CAS
Parameters:
  idCamp -
Parameters:
  idTest -
Parameters:
  assignedID -
throws:
  Exception -



updateTestAssignationRef
public void updateTestAssignationRef(int idCamp, int assignedOldID, int assignedNewID) throws Exception(Code)
Update test Assignation for all reference of old assignation (field assigned_user_id) in CAMPAGNE_CAS
Parameters:
  idCamp -
Parameters:
  idTest -
Parameters:
  assignedID -
throws:
  Exception -



updateTestFamilyOrder
public void updateTestFamilyOrder(int idCamp, int idFamily, boolean increment) throws Exception(Code)
Update a family order in the campaign (+1 if increment = true) or -1
Parameters:
  idCamp -
Parameters:
  idFamily - : id of the suite in table FAMILLE_TEST
Parameters:
  increment -
throws:
  Exception - need permission canUpdateCamp or canExecutCamp



updateTestOrder
void updateTestOrder(int idCamp, int idTest, int order) throws Exception(Code)



updateTestOrder
public int updateTestOrder(int idCamp, int idTest, boolean increment) throws Exception(Code)
Update a test order in the campaign (+1 if increment = true) or -1
Parameters:
  idCamp -
Parameters:
  idTest - : id of the test in the table CAS_TEST
Parameters:
  increment -
throws:
  Exception - need permission canUpdateCamp



updateTestSuiteOrder
public void updateTestSuiteOrder(int idCamp, int idSuite, boolean increment) throws Exception(Code)
Update test suite order in the campaign (+1 if increment = true) or -1
Parameters:
  idCamp - : id of the campaign
Parameters:
  idSuite - : id of the suite in table SUITE_TEST
Parameters:
  increment -
throws:
  Exception - need permission canUpdateCamp or canExecutCamp



updateUserRef
public void updateUserRef(int idCamp, int oldIdUser, int newIdUser) throws Exception(Code)
replace all reference of user oldIdUser by newIdUser in the table (CAMPAGNE_CAS) whrerre campagne = idCamp
Parameters:
  oldIdUser -
Parameters:
  newIdUser -
throws:
  Exception - no permission needed



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)

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