| org.objectweb.salome_tmf.api.sql.ISQLScript
All known Subclasses: org.objectweb.salome_tmf.soap.SQLScriptSoapBindingStub, org.objectweb.salome_tmf.databaseSQL.SQLScript,
Method Summary | |
public void | addAttach(int scriptId, int attachId) | public void | delete(int idScript) | public SalomeFileWrapper | getFile(int idScript) | public int | getLastIdAttach() | public int | getScriptIdAttach(int idScript) | public int | insert(String name, String arg1, String extension, String type) | public int | insert(String name, String arg1, String extension, String type, int idEnv) | public int | insert(int idExec, String name, String arg1, String extension, String type) | public void | update(int idScript, String filePath) | public void | update(int idScript, SalomeFileWrapper file) | public void | updateContent(int idScript, String filePath) | public void | updateDate(int idScript, Date date) | public void | updateLength(int idScript, long length) | public void | updateName(int idScript, String name) | public void | updatePlugArg(int idScript, String arg) |
addAttach | public void addAttach(int scriptId, int attachId) throws Exception(Code) | | Map the attachment attachId to the script scriptId in the table SCRIPT_ATTACHEMENT
Parameters: scriptId - Parameters: attachId - throws: Exception - |
delete | public void delete(int idScript) throws Exception(Code) | | Delete the script and mapped file in the tables ( SCRIPT, SCRIPT_ATTACHEMENT, ATTACHEMENT)
Parameters: idScript - Parameters: idAttach - throws: Exception - See Also: ISQLAttachment().delete(int) |
getFile | public SalomeFileWrapper getFile(int idScript) throws Exception(Code) | | Parameters: idScript - : id of the script in the database a SalomeFileWrapper attached to the script throws: Exception - See Also: ISQLFileAttachment.getFile(int) |
getLastIdAttach | public int getLastIdAttach() throws Exception(Code) | | the last id of an attachment in the table SCRIPT_ATTACHEMENT throws: Exception - |
getScriptIdAttach | public int getScriptIdAttach(int idScript) throws Exception(Code) | | Parameters: idScript - : id of the script in the database the id of the attachment mapped to the script in the database throws: Exception - |
insert | public int insert(String name, String arg1, String extension, String type) throws Exception(Code) | | Insert a new script in the table SCRIPT (No attachment are mapped)
Parameters: name - : the name of the script Parameters: arg1 - : argument 1 of the script (free use for plug-in) Parameters: extension - : argument 2 of the script (plugin extension) Parameters: type - : type of the script (ApiConstants.TEST_SCRIPT, ApiConstants.INIT_SCRIPT, ApiConstants.PRE_SCRIPT, ApiConstants.POST_SCRIPT) the id of the new Script throws: Exception - |
insert | public int insert(String name, String arg1, String extension, String type, int idEnv) throws Exception(Code) | | Insert a new script in the table SCRIPT (No attachment are mapped) for an Environnement
Parameters: name - : the name of the script Parameters: arg1 - : argument 1 of the script (free use for plug-in) Parameters: extension - : argument 2 of the script (plugin extension) Parameters: type - : type of the script Parameters: idEnv - : id of the Environnement mapped with the script(ApiConstants.TEST_SCRIPT, ApiConstants.INIT_SCRIPT, ApiConstants.PRE_SCRIPT, ApiConstants.POST_SCRIPT) the id of the new Script throws: Exception - |
insert | public int insert(int idExec, String name, String arg1, String extension, String type) throws Exception(Code) | | Insert a new script in the table SCRIPT (No attachment are mapped) for an EXECUTION
Parameters: name - : the name of the script Parameters: arg1 - : argument 1 of the script (free use for plug-in) Parameters: extension - : argument 2 of the script (plugin extension) Parameters: type - : type of the script Parameters: idEnv - : id of the Environnement mapped with the script(ApiConstants.TEST_SCRIPT, ApiConstants.INIT_SCRIPT, ApiConstants.PRE_SCRIPT, ApiConstants.POST_SCRIPT) the id of the new Script throws: Exception - |
update | public void update(int idScript, String filePath) throws Exception(Code) | | Update the script attachement (content, date size, and name) In Database
Parameters: idScript - Parameters: filePath - throws: Exception - See Also: ISQLFileAttachment.updateFile(int, File); See Also: no permission needed |
update | public void update(int idScript, SalomeFileWrapper file) throws Exception(Code) | | Update the script attachement (content, date size, and name) In Database
Parameters: idScript - Parameters: File - throws: Exception - See Also: ISQLFileAttachment.updateFile(int, File); See Also: no permission needed |
updateContent | public void updateContent(int idScript, String filePath) throws Exception(Code) | | Update the conetent of the script id with the content of the file with path filePath
Parameters: idScript - Parameters: filePath - throws: Exception - See Also: ISQLFileAttachment.updateFileContent(int,BufferedInputStream); See Also: no permission needed |
updateDate | public void updateDate(int idScript, Date date) throws Exception(Code) | | Update the date of the script idScript in the database
Parameters: idScript - Parameters: date - throws: Exception - no permission needed |
updateLength | public void updateLength(int idScript, long length) throws Exception(Code) | | Update the length of the script idScript in the database
Parameters: idScript - Parameters: length - throws: Exception - no permission needed |
updateName | public void updateName(int idScript, String name) throws Exception(Code) | | Update the Script name the table SCRIPT and ATTACHEMENT
Parameters: idScript - Parameters: name - throws: Exception - See Also: ISQLFileAttachment.updateFileName(int, String); See Also: no permission needed |
updatePlugArg | public void updatePlugArg(int idScript, String arg) throws Exception(Code) | | Update the argument reserved for plugin in the script idScript in the database
Parameters: idScript - Parameters: arg - throws: Exception - no permission needed |
|
|