Package hibernateLogic

Examples of hibernateLogic.ObjectRetrievalTools


          //UserRoleGroup table contains userId
          else
          {
           
            //Tool used to pull objects
            ObjectRetrievalTools objRetTools = new ObjectRetrievalTools();
           
            //list to store all the UserRoleGroups a userId belongs to
            List<UserRoleGroup> userUrgList = objRetTools.getObjectList(Table.UserRoleGroup, "userId", userId);
           
            //sets up a list to store the groups a userId belongs to
            List<Group> groups = new ArrayList<>(0);
           
            //iterates the list of UserRoleGroups and extracts the Group based on the groupId of the UserRoleGroup
            //add the Group to the list storing Groups
            for (UserRoleGroup urgIterator : userUrgList)
            {
              Group group = (Group) objRetTools.getObject(Table.Group, "id", urgIterator.getGroupId());
              groups.add(group);
              //System.out.println("\n\n\tThis is a title: " + group.getGroupTitle());
            }
           
            //sets up return object
View Full Code Here


          throw new Exception("Failed to find a group with this id" );
        }
        else
        {
          // Tool used to pull objects
        ObjectRetrievalTools objRetTools = new ObjectRetrievalTools();
       
        //list to store all the Question objects associated with the groupId
        List<Question> questionsList = objRetTools.getObjectList(Table.Question, "groupId", groupId);
       
        //sets up the return object
        QuestionDetailsJson[] questionDetailsList = QuestionFactory.createQuestionDetailsJson(questionsList.size());
       
        // If there are no questions, return an array of size 0
View Full Code Here

TOP

Related Classes of hibernateLogic.ObjectRetrievalTools

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.