Examples of dataRemoval()


Examples of hibernateLogic.DatabaseTools.dataRemoval()

        return UserFactory.validUser(false)
      }
    }
     
      // Remove user from table
    myTools.dataRemoval(deleteUser);
   
    // If user is not found return true! That means successful deletion.
    return UserFactory.validUser(!myTools.dataSearch("User", "email", email, "password", password));
    }
   
View Full Code Here

Examples of hibernateLogic.DatabaseTools.dataRemoval()

                    //delete the questions from the db
                    for (Iterator<Question> questIterator = questionList.iterator(); questIterator.hasNext();) {
                      Question questionDelete = questIterator.next();
                      //get questionId for answer deletion
                      int questionId = questionDelete.getId();
                      myTools.dataRemoval(questionDelete);
                     
                      //get all the answers associated with the question id
                         ObjectRetrievalTools<Answer> objTool3 = new ObjectRetrievalTools<Answer>();
                         List<Answer> answerList = objTool3.getObjectList(Table.Answer, "questionId", questionId);
                        
View Full Code Here

Examples of hibernateLogic.DatabaseTools.dataRemoval()

                         List<Answer> answerList = objTool3.getObjectList(Table.Answer, "questionId", questionId);
                        
                         //delete all the answers from the db
                         for (Iterator<Answer> ansIterator = answerList.iterator(); ansIterator.hasNext();) {
                           Answer answerDelete = ansIterator.next();
                           myTools.dataRemoval(answerDelete);       
                         }
                    }
               }
                              
               //group has no questions/answers
View Full Code Here

Examples of hibernateLogic.DatabaseTools.dataRemoval()

               List<UserRoleGroup> urgList = objTool4.getObjectList(Table.UserRoleGroup, "groupId", groupId);
              
               //delete all the UserRoleGroup from db
               for (Iterator<UserRoleGroup> iterator = urgList.iterator(); iterator.hasNext();) {
                 UserRoleGroup urgDelete = iterator.next();
                 myTools.dataRemoval(urgDelete);
               }
              
               //lastly, retrieve the actual group for deletion
               ObjectRetrievalTools<Group> objTool5 = new ObjectRetrievalTools<Group>();
               Group remGroup = (Group) objTool5.getObject(Table.Group, "id", groupId);
View Full Code Here

Examples of hibernateLogic.DatabaseTools.dataRemoval()

               //lastly, retrieve the actual group for deletion
               ObjectRetrievalTools<Group> objTool5 = new ObjectRetrievalTools<Group>();
               Group remGroup = (Group) objTool5.getObject(Table.Group, "id", groupId);
              
               //call the tools to remove the group from the db
               myTools.dataRemoval(remGroup);
              
               //return true when group is deleted
               return GroupFactory.validGroup(!myTools.dataSearch("Group", "id", groupId));
             }                       
           }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.