Class InstanceMakerDao
java.lang.Object
ch.colabproject.colab.api.persistence.jpa.project.InstanceMakerDao
Instance maker persistence
Note : Most database operations are handled by managed entities and cascade.
- Author:
- sandra
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteInstanceMaker(InstanceMaker instanceMaker) Delete the instance maker from database.Find an instance maker by idfindInstanceMakerByProjectAndUser(Project project, User user) Find the instance maker who match the given project and the given user.voidpersistInstanceMaker(InstanceMaker instanceMaker) Persist a brand-new instance maker to database
-
Constructor Details
-
InstanceMakerDao
public InstanceMakerDao()
-
-
Method Details
-
findInstanceMaker
Find an instance maker by id- Parameters:
id- the id of the instance maker- Returns:
- the instance maker or null if it does not exist
-
findInstanceMakerByProjectAndUser
Find the instance maker who match the given project and the given user.- Parameters:
project- the projectuser- the user- Returns:
- the instance maker or null
-
persistInstanceMaker
Persist a brand-new instance maker to database- Parameters:
instanceMaker- the new instance maker to persist
-
deleteInstanceMaker
Delete the instance maker from database. This can't be undone- Parameters:
instanceMaker- the instance maker to delete
-