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

SQLEnvironment
public class SQLEnvironment implements ISQLEnvironment(Code)




Method Summary
public  intaddAttachFile(int idEnv, SalomeFileWrapper f, String description)
    
public  intaddAttachUrl(int idEnv, String url, String description)
    
public  voidaddParamValue(int idEnv, int idParam, String value, String description)
    
public  intaddScript(int idEnv, SalomeFileWrapper file, String description, String name, String extention, String arg)
    
public  voiddelete(int idEnv)
    
public  voiddeleteAllAttach(int idEnv)
    
public  voiddeleteAttach(int idEnv, int idAttach)
    
public  voiddeleteDefParam(int idEnv, int paramId)
    
public  voiddeleteScript(int idEnv)
    
public  FileAttachementWrapper[]getAttachFiles(int idEnv)
    
public  UrlAttachementWrapper[]getAttachUrls(int idEnv)
    
public  AttachementWrapper[]getAttachs(int idEnv)
    
public  ValuedParameterWrapper[]getDefinedParameters(int idEnv)
    
public  intgetID(int idProject, String name)
    
 intgetIdScript(int idEnv)
    
public  StringgetParameterValue(int idEnv, int idParameter)
    
public  SalomeFileWrappergetScript(int idEnv)
    
public  ScriptWrappergetScriptWrapper(int idEnv)
    
public  EnvironmentWrappergetWrapper(int idEnv)
    
public  intinsert(int idProject, String name, String description)
    
public  voidupdate(int idEnv, String name, String description)
    
public  voidupdateParamValue(int idEnv, int idParam, String value, String description)
    



Method Detail
addAttachFile
public int addAttachFile(int idEnv, SalomeFileWrapper f, String description) throws Exception(Code)
Attach a file to the environment (table ENV_ATTACHEMENT)
Parameters:
  idEnv -
Parameters:
  f - the 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 idEnv, String url, String description) throws Exception(Code)
Attach an Url to the environment (table ENV_ATTACHEMENT)
Parameters:
  idEnv -
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



addParamValue
public void addParamValue(int idEnv, int idParam, String value, String description) throws Exception(Code)
Map a value for the parameter idParam in the environment idEnv (table VALEUR_PARAM)
Parameters:
  idEnv -
Parameters:
  idParam -
Parameters:
  value -
Parameters:
  description -
throws:
  Exception - need permission canCreateCamp or canExecutCamp



addScript
public int addScript(int idEnv, SalomeFileWrapper file, String description, String name, String extention, String arg) throws Exception(Code)
Insert a script (type ApiConstants.INIT_SCRIPT) to the environment idEnv If a script already exist, this previous script is deleted
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 of the script (free use for plug-in) the Id of the script
throws:
  Exception - no permission needed



delete
public void delete(int idEnv) throws Exception(Code)
Delete the environment idEnv in the Database then delete mapped parameters, mapped attachments and script and related execution
Parameters:
  idEnv -
throws:
  Exception -
See Also:    ISQLExecution.delete(int)
See Also:   need permission canExecutCamp or canDeleteCamp



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



deleteAttach
public void deleteAttach(int idEnv, int idAttach) throws Exception(Code)
Delete an attchement idAttach of the environments idEnv
Parameters:
  idEnv -
Parameters:
  attachId -
throws:
  Exception -
See Also:    ISQLAttachment.delete(int)
See Also:   no permission needed



deleteDefParam
public void deleteDefParam(int idEnv, int paramId) throws Exception(Code)
Deleted mapped reference to the parameter paramId in the environment idEnv
Parameters:
  idEnv -
Parameters:
  paramId -
throws:
  Exception - need permission canExecutCamp or canDeleteCamp



deleteScript
public void deleteScript(int idEnv) throws Exception(Code)
Delete the script of the environnement idEnv then delete reference in SCRIPT, SCRIPT_ATTACHEMENT, ATTACHEMENT
Parameters:
  idExec -
throws:
  Exception - no permission canExecutCamp or canDeleteCamp



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



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



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



getDefinedParameters
public ValuedParameterWrapper[] getDefinedParameters(int idEnv) throws Exception(Code)
Get a Vector of ValuedParameterWrapper for the environnement idEnv
Parameters:
  idEnv -
throws:
  Exception -



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



getIdScript
int getIdScript(int idEnv) throws Exception(Code)



getParameterValue
public String getParameterValue(int idEnv, int idParameter) throws Exception(Code)
Get the value of the parameter idParameter in the environnement idEnv
Parameters:
  idEnv -
Parameters:
  idParameter - the value or null if the parameter is not use by the environement
throws:
  Exception -



getScript
public SalomeFileWrapper getScript(int idEnv) throws Exception(Code)
Get the java.io.File of the script in the Environnement idEnv
Parameters:
  idExec -
throws:
  Exception -



getScriptWrapper
public ScriptWrapper getScriptWrapper(int idEnv) throws Exception(Code)
Get a ScriptWrapper representing the script of the Environnement
Parameters:
  idEnv -
throws:
  Exception -



getWrapper
public EnvironmentWrapper getWrapper(int idEnv) throws Exception(Code)
Get an EnvironmentWrapper reprensting the environnement idEnv
Parameters:
  idEnv -
throws:
  Exception -



insert
public int insert(int idProject, String name, String description) throws Exception(Code)
Insert a Environment in the database (table ENVIRONNEMENT)
Parameters:
  idProject - : id of the project wich contain the environment
Parameters:
  name - of the environment
Parameters:
  description - of the environment id of the environment in the table ENVIRONNEMENT
throws:
  Exception - need permission canCreateCamp or canExecutCamp



update
public void update(int idEnv, String name, String description) throws Exception(Code)
Update the name and the description of the environment idEnv
Parameters:
  idEnv -
Parameters:
  name -
Parameters:
  description -
throws:
  Exception - need permission canUpdateCamp or canExecutCamp



updateParamValue
public void updateParamValue(int idEnv, int idParam, String value, String description) throws Exception(Code)
Update a mapped value for the parameter idParam in the environment idEnv
Parameters:
  idEnv -
Parameters:
  idParam -
Parameters:
  value - : the new value
Parameters:
  description - : the new description
throws:
  Exception - need permission canUpdateCamp or canExecutCamp



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.