Repository Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:


== Methods ==
== Methods ==
===== Connection =====
*'''[[Repository.ConnectToRepository]]''' {{APIComment|Connects to any (MS Access, MS SQL or Oracle) repository. If the extension of the file is 'rserp' then it connects to the enterprise database described in the file. Otherwise MS Access repository is assumed.}}
*'''[[Repository.ConnectToRepository]]''' {{APIComment|Connects to any (MS Access, MS SQL or Oracle) repository. If the extension of the file is 'rserp' then it connects to the enterprise database described in the file. Otherwise MS Access repository is assumed.}}
*'''[[Repository.ConnectToAccessRepository]]''' {{APIComment|Connects to an MS Access repository.}}
*'''[[Repository.ConnectToAccessRepository]]''' {{APIComment|Connects to an MS Access repository.}}
Line 10: Line 11:
*'''[[Repository.ConnectToOracleRepository]]''' {{APIComment|Connects to an Oracle repository.}}
*'''[[Repository.ConnectToOracleRepository]]''' {{APIComment|Connects to an Oracle repository.}}
*'''[[Repository.DisconnectFromRepository]]''' {{APIComment|Disconnects from current repository.}}
*'''[[Repository.DisconnectFromRepository]]''' {{APIComment|Disconnects from current repository.}}
===== Project =====
*'''[[Repository.GetAllProjects]]''' {{APIComment|Returns an array containing all project names and their IDs from the current repository.}}
*'''[[Repository.GetAllProjects]]''' {{APIComment|Returns an array containing all project names and their IDs from the current repository.}}
*'''[[Repository.GetCurrentProject]]''' {{APIComment|Returns the name and ID of the current project.}}
*'''[[Repository.GetCurrentProject]]''' {{APIComment|Returns the name and ID of the current project.}}
*'''[[Repository.SetCurrentProject]]''' {{APIComment|Opens (sets as current) a project with the specified ID. If 0 is passed, a fist available project will be set as current.}}
*'''[[Repository.SetCurrentProject]]''' {{APIComment|Opens (sets as current) a project with the specified ID. If 0 is passed, a fist available project will be set as current.}}
*'''[[Repository.GetAllUnits]]''' {{APIComment|Returns the default unit ID.}}
*'''[[Repository.GetAllUnits]]''' {{APIComment|Returns the default unit ID.}}
*'''[[Repository.GetAllModelsInfo]]''' {{APIComment|Returns an array containing all model names and their IDs from the current project.}}
*'''[[Repository.GetAllModelsInfo]]''' {{APIComment|Returns an array containing all model names and their IDs from the current project.}}
*'''[[Repository.GetModel]]''' {{APIComment|Returns the model from the current project with the specified ID. Returns nothing if the model does not exist or is not in the current project.}}
*'''[[Repository.GetModel]]''' {{APIComment|Returns the model from the current project with the specified ID. Returns nothing if the model does not exist or is not in the current project.}}
*'''[[Repository.GetAllModels]]''' {{APIComment|Returns an array containing all models from the current project.}}
*'''[[Repository.GetAllModels]]''' {{APIComment|Returns an array containing all models from the current project.}}
*'''[[AddModel]]''' {{APIComment|Saves a new model in the repository. }}
*'''[[Repository.AddModel]]''' {{APIComment|Saves a new model in the repository. }}
*'''[[UpdateModel]]''' {{APIComment|Updates the model in the repository. }}
*'''[[Repository.UpdateModel]]''' {{APIComment|Updates the model in the repository. }}
 
*'''[[GetAllURDs]]''' {{APIComment|Returns an array containing all URDs from the current project.}}
*'''[[GetAllURDs]]''' {{APIComment|Returns an array containing all URDs from the current project.}}
*'''[[AddURD]]''' {{APIComment|Saves a new URD in the repository. }}
*'''[[AddURD]]''' {{APIComment|Saves a new URD in the repository. }}
Line 36: Line 41:
*'''[[AddAction]]''' {{APIComment|Saves the action in the repository.}}
*'''[[AddAction]]''' {{APIComment|Saves the action in the repository.}}
*'''[[UpdateAction]]''' {{APIComment|Updates the Action in the repository.}}
*'''[[UpdateAction]]''' {{APIComment|Updates the Action in the repository.}}
*'''[[ImportBlockSimXMLFile]]''' {{APIComment|Imports from XML file to the current project.}}
*'''[[ImportBlockSimXMLFile]]''' {{APIComment|Imports from XML file to the current project.}}
*'''[[SaveRawDataSet]]''' {{APIComment|Saves the raw data set in the repository.}}
*'''[[SaveRawDataSet]]''' {{APIComment|Saves the raw data set in the repository.}}

Revision as of 17:25, 18 September 2013


Provides an application the ability to access and edit Synthesis Repositories.

Constructors

Methods

Connection
Project
  • GetAllURDs Returns an array containing all URDs from the current project.
  • AddURD Saves a new URD in the repository.
  • UpdateURD Updates the URD in the repository.
  • GetAllVariables Returns an array containing all Variables from the current project.
  • AddVariable Saves a new Variable in the repository.
  • UpdateVariable Updates the Variable in the repository.
  • GetAllCorrectiveTasks Returns an array containing all corrective tasks from the current project.
  • AddCorrectiveTask Saves the corrective task in the repository.
  • UpdateCorrectiveTask Updates the Corrective task in the repository.
  • GetAllCrews Returns an array containing all crews from the current project.
  • AddCrew Saves the crew in the repository.
  • UpdateCrew Updates the Crew in the repository.
  • GetAllPools Returns an array containing all spare parts pools from the current project.
  • AddPool Saves the spare parts pool in the repository.
  • UpdatePool Updates the spare parts Pool in the repository.
  • AddAction Saves the action in the repository.
  • UpdateAction Updates the Action in the repository.

Properties