MetaDone
|
Public Member Functions | |
void | setEventManager (EventTower<?super Metal1Event > e) |
Project | createProject (String name) throws BadPreCondition, FailedOperation |
Project | openProject (String name) throws BadPreCondition, FailedOperation |
Set< String > | listProjects () throws BadPreCondition, FailedOperation |
void | dispose () |
Transaction | newTransaction () throws BadPreCondition |
Transaction | currentTransaction () throws BadPreCondition |
The FactoryProject Object is in charge to create/open/dispose a project.
Project metadone.repository.kernel.FactoryProject.createProject | ( | String | name | ) | throws BadPreCondition, FailedOperation |
Create a new project named 'name'
name | Denotes the name of the new project. |
BadPreCondition | If a project already exists with the same name. |
FailedOperation | If some error occured while using the datastore. |
Implemented in metadone.repository.kernel.jpa2.FactoryProjectJPA2.
Referenced by metadone_bundle_metabusiness.TheBusinessManager.createWorkspace().
Transaction metadone.repository.kernel.FactoryProject.currentTransaction | ( | ) | 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.repository.kernel.jpa2.FactoryProjectJPA2.
Referenced by metadone_bundle_metabusiness.TheBusinessManager.currentTransaction().
void metadone.repository.kernel.FactoryProject.dispose | ( | ) |
Implemented in metadone.repository.kernel.jpa2.FactoryProjectJPA2.
Referenced by metadone_bundle_metabusiness.TheBusinessManager.removeFactory().
Set<String> metadone.repository.kernel.FactoryProject.listProjects | ( | ) | throws BadPreCondition, FailedOperation |
This operation returns the list of all the name of the projects in the datastore. This operation is transsactional. If the caller is already running in a transaction, then this transaction is reused, otherwise, a transaction is created and committed inside the operation.
BadPreCondition | |
FailedOperation |
Implemented in metadone.repository.kernel.jpa2.FactoryProjectJPA2.
Referenced by metadone_bundle_metabusiness.TheBusinessManager.listProjects().
Transaction metadone.repository.kernel.FactoryProject.newTransaction | ( | ) | throws BadPreCondition |
BadPreCondition |
Implemented in metadone.repository.kernel.jpa2.FactoryProjectJPA2.
Referenced by metadone_bundle_metabusiness.TheBusinessManager.newTransaction().
Project metadone.repository.kernel.FactoryProject.openProject | ( | String | name | ) | throws BadPreCondition, FailedOperation |
Open a project named 'name' If the operation succeeds, then a transaction has been created. If an exception is thrown, then no transaction has been created.
name | Denotes the name of the project. |
BadPreCondition | if some precondition is not fulfilled or if there is no project with this name in the datastore. |
FailedOperation | If some error occured while using the datastore. |
Implemented in metadone.repository.kernel.jpa2.FactoryProjectJPA2.
Referenced by metadone_bundle_metabusiness.TheBusinessManager.openWorkspace().
void metadone.repository.kernel.FactoryProject.setEventManager | ( | EventTower<?super Metal1Event > | e | ) |
Sets the event manager that will be used by the projects by default.
e | The event manager or null |
Implemented in metadone.repository.kernel.jpa2.FactoryProjectJPA2.
Referenced by metadone_bundle_metabusiness.TheBusinessManager.createFactory().