MetaDone
|
Classes | |
class | BMFactoryChanged |
Public Member Functions | |
Workspace | createWorkspace (String nameFactory, String nameProject) throws BadPreCondition, FailedOperation |
Workspace | openWorkspace (String nameFactory, String nameProject) throws BadPreCondition, FailedOperation, BadVersionMetal2 |
void | createFactory (RepositoryManager.TechnoRepository techno, Properties props, String name) throws FailedOperation, BadPreCondition |
boolean | removeFactory (String name) |
Set< String > | listFactories () |
Set< String > | listProjects (String nameFactory) throws BadPreCondition, FailedOperation |
void | dispose () |
Transaction | newTransaction (String nameFactory) throws BadPreCondition |
Transaction | currentTransaction (String nameFactory) throws BadPreCondition |
MetadoneEvents | getEventManager () |
Manages a set of project factories.
void metadone_bundle_metabusiness.service.BusinessManager.createFactory | ( | RepositoryManager.TechnoRepository | techno, |
Properties | props, | ||
String | name | ||
) | throws FailedOperation, BadPreCondition |
Creates a factory.
techno | The technology used |
props | The properties |
name | The name |
FailedOperation | |
BadPreCondition |
Implemented in metadone_bundle_metabusiness.TheBusinessManager.
Referenced by metadone.client.actions.ConnectAction.configureJPA2().
Workspace metadone_bundle_metabusiness.service.BusinessManager.createWorkspace | ( | String | nameFactory, |
String | nameProject | ||
) | throws BadPreCondition, FailedOperation |
Creates a workspace using a factory.
BadPreCondition | Some precondition has failed. |
FailedOperation | Some error occured during the creation. |
Implemented in metadone_bundle_metabusiness.TheBusinessManager.
Transaction metadone_bundle_metabusiness.service.BusinessManager.currentTransaction | ( | String | nameFactory | ) | throws BadPreCondition |
Depending on the persistence layer, this transaction can be more efficient (does not require to open a new connection to the server for instance.
BadPreCondition |
Implemented in metadone_bundle_metabusiness.TheBusinessManager.
Referenced by metadone.client.actions.RollbackAction.actionPerformed().
void metadone_bundle_metabusiness.service.BusinessManager.dispose | ( | ) |
Disposes the resources.
Implemented in metadone_bundle_metabusiness.TheBusinessManager.
MetadoneEvents metadone_bundle_metabusiness.service.BusinessManager.getEventManager | ( | ) |
Gets the event manager.
Implemented in metadone_bundle_metabusiness.TheBusinessManager.
Referenced by metadone.client.MainClientMetadone.getEventManager().
Set<String> metadone_bundle_metabusiness.service.BusinessManager.listFactories | ( | ) |
Gets the names of opened factories.
Implemented in metadone_bundle_metabusiness.TheBusinessManager.
Referenced by metadone.client.MainClientMetadone.BusinessManagerSubscriber.trigger().
Set<String> metadone_bundle_metabusiness.service.BusinessManager.listProjects | ( | String | nameFactory | ) | throws BadPreCondition, FailedOperation |
Retrieves a list of projects from a factory.
nameFactory | The name of the factory |
BadPreCondition | |
FailedOperation |
Implemented in metadone_bundle_metabusiness.TheBusinessManager.
Referenced by metadone.client.actions.OpenProjectAction.actionPerformed().
Transaction metadone_bundle_metabusiness.service.BusinessManager.newTransaction | ( | String | nameFactory | ) | throws BadPreCondition |
BadPreCondition |
Implemented in metadone_bundle_metabusiness.TheBusinessManager.
Workspace metadone_bundle_metabusiness.service.BusinessManager.openWorkspace | ( | String | nameFactory, |
String | nameProject | ||
) | throws BadPreCondition, FailedOperation, BadVersionMetal2 |
Opens a workspace using a factory.
BadPreCondition | Some precondition has failed. |
FailedOperation | Some error occured during the creation. |
BadVersionMetal2 | The version of the repository doesn't match the version of the repository, and the repository is not compliant with that version. |
Implemented in metadone_bundle_metabusiness.TheBusinessManager.
Referenced by metadone.client.actions.OpenProjectAction.actionPerformed().
boolean metadone_bundle_metabusiness.service.BusinessManager.removeFactory | ( | String | name | ) |
Removes a factory from the manager.
name | The name of the factory |
true
iff a factory was removed Implemented in metadone_bundle_metabusiness.TheBusinessManager.
Referenced by metadone.client.actions.CloseDatabaseAction.actionPerformed().