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

SQLExecution
public class SQLExecution implements ISQLExecution(Code)




Method Summary
public  intaddAttachFile(int idExec, SalomeFileWrapper file, String description)
    
public  intaddAttachUrl(int idExec, String url, String description)
    
public  intaddPostScript(int idExec, SalomeFileWrapper file, String description, String name, String extention, String arg)
    
public  intaddPreScript(int idExec, SalomeFileWrapper file, String description, String name, String extention, String arg)
    
 intaddScript(int idExec, SalomeFileWrapper file, String description, String name, String arg1, String extension, String type)
    
public  voiddelete(int idExec)
    
public  voiddeleteAllAttach(int idExec)
    
public  voiddeleteAllExecResult(int idExec)
    
public  voiddeleteAttach(int idExec, int idAttach)
    
public  voiddeletePostScript(int idExec)
    
public  voiddeletePreScript(int idExec)
    
public  voiddeleteScripts(int idExec)
    
public  long[]getAllExecDate(int idExec)
    
public  FileAttachementWrapper[]getAttachFiles(int idExec)
    
public  UrlAttachementWrapper[]getAttachUrls(int idExec)
    
public  AttachementWrapper[]getAttachs(int idExec)
    
public  DataSetWrappergetDataSetWrapper(int idExec)
    
public  EnvironmentWrappergetEnvironmentWrapper(int idExec)
    
public  ExecutionResultWrapper[]getExecResults(int idExec)
    
public  ScriptWrapper[]getExecutionScripts(int idExec)
    
public  intgetID(int idCamp, String name)
    
 intgetIdPostScript(int idEnv)
    
 intgetIdPreScript(int idEnv)
    
 intgetIdScript(int idEnv, String type)
    
public  SalomeFileWrappergetPostScript(int idExec)
    
public  SalomeFileWrappergetPreScript(int idExec)
    
public  ExecutionWrappergetWrapper(int idExec)
    
public  intinsert(int idCamp, String name, int idEnv, int idDataSet, int idUser, String description)
    
public  voidupdateDataset(int idExec, int idDataset)
    
public  voidupdateDate(int idExec, Date date)
    
public  voidupdateEnv(int idExec, int idEnv)
    
public  voidupdateName(int idExec, String name)
    
public  voidupdateUserRef(int idCamp, int oldIdUser, int newIdUser)
    



Method Detail
addAttachFile
public int addAttachFile(int idExec, SalomeFileWrapper file, String description) throws Exception(Code)
Attach a file to the Exceution (table EXEC_CAMP_ATTACH)
Parameters:
  idExec -
Parameters:
  file -
Parameters:
  description - of the file the Id of the attachment in the table ATTACHEMENT
throws:
  Exception -
See Also:    ISQLFileAttachment.insert(File, String)
See Also:   no permission needed



addAttachUrl
public int addAttachUrl(int idExec, String url, String description) throws Exception(Code)
Attach an Url to the Exceution (table EXEC_CAMP_ATTACH)
Parameters:
  idExec -
Parameters:
  url -
Parameters:
  description - of the url the Id of the attachment in the table ATTACHEMENT
throws:
  Exception -
See Also:    ISQLUrlAttachment.insert(String, String)
See Also:   no permission needed



addPostScript
public int addPostScript(int idExec, SalomeFileWrapper file, String description, String name, String extention, String arg) throws Exception(Code)
Insert a pre-scrit (type ApiConstants.POST_SCRIPT) to the execution idExec
Parameters:
  idExec -
Parameters:
  file - of the script
Parameters:
  description - the description of the script
Parameters:
  name - : the name of the script
Parameters:
  extention - : argument 1 of the script (plug-in extention)
Parameters:
  arg - : argument 2 of the script (free use for plug-in) the Id of the script
throws:
  Exception - no permission needed



addPreScript
public int addPreScript(int idExec, SalomeFileWrapper file, String description, String name, String extention, String arg) throws Exception(Code)
Insert a pre-scrit (type ApiConstants.PRE_SCRIPT) to the execution idExec
Parameters:
  idExec -
Parameters:
  file - of the script
Parameters:
  description - the description of the script
Parameters:
  name - : the name of the script
Parameters:
  extention - : argument 1 of the script (plug-in extention)
Parameters:
  arg - : argument 2 of the script (free use for plug-in) the Id of the script
throws:
  Exception - no permission needed



addScript
int addScript(int idExec, SalomeFileWrapper file, String description, String name, String arg1, String extension, String type) throws Exception(Code)



delete
public void delete(int idExec) throws Exception(Code)
Delete the execution idExec in the Database Then delete all attachemnts, the script, and all related execution result
Parameters:
  idExec -
See Also:    ISQLExecutionResult.delete(int)
See Also:   need permission canExecutCamp



deleteAllAttach
public void deleteAllAttach(int idExec) throws Exception(Code)
Delete all attchements of the execution idExec
Parameters:
  idExec -
throws:
  Exception - no permission needed



deleteAllExecResult
public void deleteAllExecResult(int idExec) throws Exception(Code)
Delete all execution result for the execution idExec in the Database
Parameters:
  idExec -
See Also:    ISQLExecutionResult.delete(int)
See Also:   need permission canExecutCamp



deleteAttach
public void deleteAttach(int idExec, int idAttach) throws Exception(Code)
Delete an attchement idAttach of the execution idExec
Parameters:
  idExec -
Parameters:
  idAttach -
throws:
  Exception - no permission needed



deletePostScript
public void deletePostScript(int idExec) throws Exception(Code)
Delete the post-script of the execution idExec
Parameters:
  idExec -
throws:
  Exception - no permission needed



deletePreScript
public void deletePreScript(int idExec) throws Exception(Code)
Delete the pre-script of the execution idExec
Parameters:
  idExec -
throws:
  Exception - no permission needed



deleteScripts
public void deleteScripts(int idExec) throws Exception(Code)
Delete pre-script and post-script of the execution idEnv
Parameters:
  idEnv -
throws:
  Exception - no permission needed



getAllExecDate
public long[] getAllExecDate(int idExec) throws Exception(Code)
Get a Vect of java.sql.Date reprenting all date (sorted) where the execution idExec was executed
Parameters:
  idExec -
throws:
  Exception -



getAttachFiles
public FileAttachementWrapper[] getAttachFiles(int idExec) throws Exception(Code)
Get a vector of FileAttachementWrapper representing the files attachment of the execution
Parameters:
  idExec -
throws:
  Exception -



getAttachUrls
public UrlAttachementWrapper[] getAttachUrls(int idExec) throws Exception(Code)
Get a vector of UrlAttachementWrapper representing the Urls attachment of the execution
Parameters:
  idExec -
throws:
  Exception -



getAttachs
public AttachementWrapper[] getAttachs(int idExec) throws Exception(Code)
Get a vector of all attachments (AttachementWrapper, File or Url) of the execution
Parameters:
  idExec -
throws:
  Exception -



getDataSetWrapper
public DataSetWrapper getDataSetWrapper(int idExec) throws Exception(Code)
Get an DataSetWrapper representing the dataset used by the execution idExec
Parameters:
  idExec -
throws:
  Exception -



getEnvironmentWrapper
public EnvironmentWrapper getEnvironmentWrapper(int idExec) throws Exception(Code)
Get an EnvironmentWrapper representing the environnment used by the execution idExec
Parameters:
  idExec -
throws:
  Exception -



getExecResults
public ExecutionResultWrapper[] getExecResults(int idExec) throws Exception(Code)
Get a vector of ExecutionResultWrapper representing the execution result of the execution idExec
Parameters:
  idExec -
throws:
  Exception -



getExecutionScripts
public ScriptWrapper[] getExecutionScripts(int idExec) throws Exception(Code)
Get an array (lenth 2) of ScriptWrapper representing the pre and post script of the Execution idExec
Parameters:
  idExec -
throws:
  Exception -



getID
public int getID(int idCamp, String name) throws Exception(Code)
Get the id of the execution name in the campaign idCamp
Parameters:
  idCamp -
Parameters:
  name -
throws:
  Exception -



getIdPostScript
int getIdPostScript(int idEnv) throws Exception(Code)



getIdPreScript
int getIdPreScript(int idEnv) throws Exception(Code)



getIdScript
int getIdScript(int idEnv, String type) throws Exception(Code)



getPostScript
public SalomeFileWrapper getPostScript(int idExec) throws Exception(Code)
Get the java.io.File of the post-script in the Execution idExec
Parameters:
  idExec -
throws:
  Exception -



getPreScript
public SalomeFileWrapper getPreScript(int idExec) throws Exception(Code)
Get the java.io.File of the pre-script in the Execution idExec
Parameters:
  idExec -
throws:
  Exception -



getWrapper
public ExecutionWrapper getWrapper(int idExec) throws Exception(Code)
Get a wrapper of the execution represented by idExec
Parameters:
  idExec -
throws:
  Exception -



insert
public int insert(int idCamp, String name, int idEnv, int idDataSet, int idUser, String description) throws Exception(Code)
Insert an Exceution in the campaign idCamp (table EXEC_CAMP)
Parameters:
  idCamp -
Parameters:
  name - of the execution
Parameters:
  idEnv - used by the execution
Parameters:
  idDataSet - used by the execution
Parameters:
  idUser - who created the execution
Parameters:
  description - of the execution the id of the execution
throws:
  Exception - need permission canExecutCamp



updateDataset
public void updateDataset(int idExec, int idDataset) throws Exception(Code)
Update the dataset mapped to the execution idExec
Parameters:
  idExec -
Parameters:
  idDataset - the new dataset to use
throws:
  Exception - need permission canExecutCamp



updateDate
public void updateDate(int idExec, Date date) throws Exception(Code)
Update the date of the execution idExec
Parameters:
  idExec -
Parameters:
  date -
throws:
  Exception - no permission needed



updateEnv
public void updateEnv(int idExec, int idEnv) throws Exception(Code)
Update the environment mapped to the execution idExec
Parameters:
  idExec -
Parameters:
  idEnv - the new env to use
throws:
  Exception - need permission canExecutCamp



updateName
public void updateName(int idExec, String name) throws Exception(Code)
Update the name and the description of the execution idExec
Parameters:
  idExec -
Parameters:
  name -
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 (EXEC_CAMP) where 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.