Class InstanceMakerDao
- java.lang.Object
-
- ch.colabproject.colab.api.persistence.jpa.project.InstanceMakerDao
-
public class InstanceMakerDao extends Object
Instance maker persistenceNote : Most database operations are handled by managed entities and cascade.
- Author:
- sandra
-
-
Constructor Summary
Constructors Constructor Description InstanceMakerDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteInstanceMaker(InstanceMaker instanceMaker)
Delete the instance maker from database.InstanceMaker
findInstanceMaker(Long id)
Find an instance maker by idInstanceMaker
findInstanceMakerByProjectAndUser(Project project, User user)
Find the instance maker who match the given project and the given user.void
persistInstanceMaker(InstanceMaker instanceMaker)
Persist a brand-new instance maker to database
-
-
-
Method Detail
-
findInstanceMaker
public InstanceMaker findInstanceMaker(Long id)
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
public InstanceMaker findInstanceMakerByProjectAndUser(Project project, User user)
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
public void persistInstanceMaker(InstanceMaker instanceMaker)
Persist a brand-new instance maker to database- Parameters:
instanceMaker
- the new instance maker to persist
-
deleteInstanceMaker
public void deleteInstanceMaker(InstanceMaker instanceMaker)
Delete the instance maker from database. This can't be undone- Parameters:
instanceMaker
- the instance maker to delete
-
-