Class InstanceMakerDao


  • public class InstanceMakerDao
    extends Object
    Instance maker persistence

    Note : Most database operations are handled by managed entities and cascade.

    Author:
    sandra
    • Constructor Detail

      • InstanceMakerDao

        public InstanceMakerDao()
    • 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 project
        user - 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