Java Doc for SQLTest.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.SQLTest

All known Subclasses:   org.objectweb.salome_tmf.databaseSQL.SQLManualTest,  org.objectweb.salome_tmf.databaseSQL.SQLAutomaticTest,
SQLTest
public class SQLTest implements ISQLTest(Code)




Method Summary
public  intaddAttachFile(int idTest, SalomeFileWrapper f, String description)
    
public  intaddAttachUrl(int idTest, String url, String description)
    
public  voidaddUseParam(int idTest, int paramId)
    
public  voiddelete(int idTest)
    
public  voiddelete(int idTest, boolean reorder)
    
public  voiddeleteAllAttach(int idTest)
    
public  voiddeleteAllUseParam(int idTest)
    
public  voiddeleteAttach(int idTest, int attachId)
    
protected  voiddeleteRef(int idTest, boolean reorder)
    
public  voiddeleteUseParam(int idTest, int paramId)
    
protected  voiddeleteUseParamRef(int idTest, int paramId)
    
public  FileAttachementWrapper[]getAllAttachFiles(int testId)
    
public  UrlAttachementWrapper[]getAllAttachUrls(int testId)
    
public  AttachementWrapper[]getAllAttachemnt(int testId)
    
public  ParameterWrapper[]getAllUseParams(int testId)
    
public  intgetID(int idTestList, String name)
    
public  TestWrappergetTest(int testId)
    
public  voidupdate(int idTest, String newName, String newDesc)
    
 voidupdateOrder(int idTest, int order)
    
public  intupdateOrder(int idTest, boolean increment)
    
public  voidupdateUserRef(int idSuite, int oldIdUser, int newIdUser)
    



Method Detail
addAttachFile
public int addAttachFile(int idTest, SalomeFileWrapper f, String description) throws Exception(Code)
Attach a file attach to a test in table ATTACHEMENT and reference in table CAS_ATTACHEMENT
Parameters:
  idTest - : id of the test
Parameters:
  f - : the file
Parameters:
  description - of the file the id of the attachment in the table ATTACHEMENT
throws:
  Exception -



addAttachUrl
public int addAttachUrl(int idTest, String url, String description) throws Exception(Code)
Attach a url to a test in table ATTACHEMENT and reference in table CAS_ATTACHEMENT
Parameters:
  idTest - : id of the test
Parameters:
  url -
Parameters:
  description - of the url the id of the attachment in the table ATTACHEMENT
See Also:    ISQLUrlAttachment.insert(String, String);
throws:
  Exception -



addUseParam
public void addUseParam(int idTest, int paramId) throws Exception(Code)
Add in database the reference of use paramter paramId for test idTest in table CAS_PARAM_TEST
Parameters:
  idTest - : id of the test
Parameters:
  paramId - : id of the parameter
throws:
  Exception - need permission canUpdateTest



delete
public void delete(int idTest) throws Exception(Code)
Delete the test in table CAS_TEST and all reference (Parameter, Campaign) and the test attachments delete test actions (if manual test), delete test script (if automatic test)
Parameters:
  idTest - : id of the test
throws:
  Exception -
See Also:    deleteAllUseParam(int)
See Also:    deleteAllAttach(int)
See Also:    ISQLCampaign.deleteTestInAllCampaign(int)
See Also:   need permission canDeleteTest



delete
public void delete(int idTest, boolean reorder) throws Exception(Code)
Delete the test in table CAS_TEST and all reference (Parameter, Campaign) and the test attachments delete test actions (if manual test), delete test script (if automatic test) Update order of test in the suite if reorder = true
Parameters:
  idTest - : id of the test
Parameters:
  reorder - reorder the test in the suite
throws:
  Exception -
See Also:    deleteAllUseParam(int)
See Also:    deleteAllAttach(int)
See Also:    ISQLCampaign.deleteTestInAllCampaign(int)
See Also:   need permission canDeleteTest



deleteAllAttach
public void deleteAllAttach(int idTest) throws Exception(Code)
Delete all attachment in table (CAS_ATTACHEMENT and ATTACHEMENT) for the test
Parameters:
  idTest - : id of the test
throws:
  Exception -
See Also:    deleteAttach(int, int)
See Also:   no permission needed



deleteAllUseParam
public void deleteAllUseParam(int idTest) throws Exception(Code)
Delete all reference about using parameter (table CAS_PARAM_TEST) for the test if the test is manual, parameters are deleted in action
Parameters:
  idTest - : id of the test
throws:
  Exception - need permission canUpdateTest



deleteAttach
public void deleteAttach(int idTest, int attachId) throws Exception(Code)
Delete attachement for the test and the attachement (tables CAS_ATTACHEMENT, ATTACHEMENT)
Parameters:
  idTest - : id of the test
Parameters:
  attachId - : id of the attachment
throws:
  Exception -
See Also:    ISQLAttachment.delete(int)
See Also:   no permission needed



deleteRef
protected void deleteRef(int idTest, boolean reorder) throws Exception(Code)
Delete the test in table CAS_TEST and all reference (Parameter, Campaign) and the test attachments
Parameters:
  idTest - : id of the test
throws:
  Exception -
See Also:    deleteAllUseParam(int)
See Also:    deleteAllAttach(int)
See Also:    ISQLCampaign.deleteTestInAllCampaign(int)
See Also:   need permission canDeleteTest



deleteUseParam
public void deleteUseParam(int idTest, int paramId) throws Exception(Code)
Delete reference about using parameter paramId (table CAS_PARAM_TEST) for the test if the test is manual, parameters are deleted in action
Parameters:
  idTest - : id of the test
Parameters:
  paramId - : id of the parameter
throws:
  Exception -
See Also:    ISQLAction.deleteParamUse(int, int)
See Also:   need permission canUpdateTest



deleteUseParamRef
protected void deleteUseParamRef(int idTest, int paramId) throws Exception(Code)
Delete reference about using parameter paramId (table CAS_PARAM_TEST) for the test
Parameters:
  idTest - : id of the test
Parameters:
  paramId - : id of the parameter
throws:
  Exception - need permission canUpdateTest



getAllAttachFiles
public FileAttachementWrapper[] getAllAttachFiles(int testId) throws Exception(Code)
Get a Vector of FileAttachementWrapper for the test identified by testId
Parameters:
  testId - : id of the test
throws:
  Exception -



getAllAttachUrls
public UrlAttachementWrapper[] getAllAttachUrls(int testId) throws Exception(Code)
Get a Vector of UrlAttachementWrapper for the test identified by testId
Parameters:
  testId - : id of the test
throws:
  Exception -



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



getAllUseParams
public ParameterWrapper[] getAllUseParams(int testId) throws Exception(Code)
Get a Vector of ParameterWrapper (only id is set) using by the test identifed by testId
Parameters:
  testId - : id of the test
throws:
  Exception -



getID
public int getID(int idTestList, String name) throws Exception(Code)
Get the id of the test identified by name in the testlist identified by idTestList
Parameters:
  idTestList - : id of the testlist
Parameters:
  name - : the test name a test id
throws:
  Exception -



getTest
public TestWrapper getTest(int testId) throws Exception(Code)
Get a TestWrapper for the test identified by testId
Parameters:
  testId - : id of the test
throws:
  Exception -
See Also:   TestWrapper



update
public void update(int idTest, String newName, String newDesc) throws Exception(Code)
Update the test with new name and description
Parameters:
  idTest - : id of the test
Parameters:
  newName - : the new name
Parameters:
  newDesc - : the new description
throws:
  Exception - need permission canUpdateTest



updateOrder
void updateOrder(int idTest, int order) throws Exception(Code)
Update order of the test
Parameters:
  idTest - : id of the test
Parameters:
  order -
throws:
  Exception -



updateOrder
public int updateOrder(int idTest, boolean increment) throws Exception(Code)
Update order of the test by incrementation if increment = true or decrementation
Parameters:
  idTest - : id of the test
Parameters:
  increment - the new order of the test in database
throws:
  Exception -



updateUserRef
public void updateUserRef(int idSuite, int oldIdUser, int newIdUser) throws Exception(Code)
replace all reference of user oldIdUser by newIdUser in the table (CAS_TEST) where suite = idSuite
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.