Class InterestsManager


  • public class InterestsManager
    extends Object
    • Constructor Detail

      • InterestsManager

        protected InterestsManager()
    • Method Detail

      • getInterestsByUserId

        public List<Interests> getInterestsByUserId​(int userId)
        Method getInterestsByUserId returns ArrayList of all Interests objects for user given by userId
      • getInterestsById

        public Interests getInterestsById​(int id)
        Method getInterestsByPK returns Interest Center given by id
      • isInterestsExists

        public int isInterestsExists​(String interestsName,
                                     int userId)
        Method isInterestsExists returns true if interests with the given name is already exists, false in other case
      • createInterests

        public int createInterests​(Interests interests)
        Method createInterests creates new Interests