Examples of deleteById()


Examples of org.milowski.db.DBConnection.deleteById()

      DBConnection connection = db.getConnection();
      try {
         db.LOG.info("Delete id "+id);
         connection.deleteById(AuthDB.DELETE_REALM_USER_ALIAS, id);
         connection.deleteById(AuthDB.DELETE_REALM_USER_GROUPS, id);
         connection.deleteById(AuthDB.DELETE_REALM_USER, id);
         db.realmUserCaches.get(realm).remove(id);
      } finally {
         db.release(connection);
      }
   }
View Full Code Here

Examples of org.milowski.db.DBConnection.deleteById()

            }
         } else {
            // alias is null, delete so we inherit
            DBConnection connection = db.getConnection();
            try {
               connection.deleteById(AuthDB.DELETE_REALM_USER_ALIAS, id);
            } finally {
               db.release(connection);
            }
         }
      }
View Full Code Here

Examples of org.mongodb.morphia.testdaos.HotelDAO.deleteById()

        // try updating
        final UpdateOperations<Hotel> mods = hotelDAO.createUpdateOperations().inc("stars", 1);
        hotelDAO.update(hotelDAO.createQuery().filter("stars", 4), mods);
        assertEquals(2, hotelDAO.count(hotelDAO.createQuery().filter("stars", 5)));

        hotelDAO.deleteById(borg.getId());
        assertEquals(1, hotelDAO.count());

        hotelDAO.getCollection().drop();
        assertEquals(0, hotelDAO.count());
    }
View Full Code Here

Examples of pl.zgora.uz.wmie.fe.service.DzialService.deleteById()

public class DzialAjaxAction {
  public String deleteDzialy(Integer id){
    try {
    DzialService dzialService = (DzialService) BusinessUtil.findBusiness("DzialService");
      dzialService.deleteById(id);
    } catch (Exception e) {
      e.printStackTrace();
      return e.getCause().getMessage();
    }
    return "";
View Full Code Here

Examples of pl.zgora.uz.wmie.fe.service.PracownikService.deleteById()

public class PracownicyAjaxAction {
 
  public String deletePracownicy(Integer id){
    try {
    PracownikService pracownikService = (PracownikService) BusinessUtil.findBusiness("PracownikService");
      pracownikService.deleteById(id);
    } catch (Exception e) {
      e.printStackTrace();
      return e.getCause().getMessage();
    }
    return "";
View Full Code Here

Examples of pl.zgora.uz.wmie.fe.service.StanowiskoService.deleteById()

public class StanowiskaAjaxAction {
  public String deleteStanowiska(Integer id){
    try {
    StanowiskoService stanowiskoService = (StanowiskoService) BusinessUtil.findBusiness("StanowiskoService");
      stanowiskoService.deleteById(id);
    } catch (Exception e) {
      e.printStackTrace();
      return e.getCause().getMessage();
    }
    return "";
View Full Code Here

Examples of pl.zgora.uz.wmie.fe.sps.business.service.AcademyService.deleteById()

public class AcademyAjaxAction {
  public void deleteSelectedAcademy(Integer id) throws Exception {
    AcademyService academyService = (AcademyService) BusinessUtil
        .findBusiness("AcademyService");
    academyService.deleteById(id);
  }
}
View Full Code Here

Examples of pl.zgora.uz.wmie.fe.sps.business.service.CompanyService.deleteById()

public class CompanyAjaxAction {
 
  public void deleteSelectedCompany(Integer id) throws Exception {
    CompanyService companyService = (CompanyService) BusinessUtil
        .findBusiness("CompanyService");
    companyService.deleteById(id);
  }
 
  public String isLoginUnique(String login) throws Exception {
    CompanyService companyService=(CompanyService) BusinessUtil
        .findBusiness("CompanyService");
View Full Code Here

Examples of pl.zgora.uz.wmie.fe.sps.business.service.OfferService.deleteById()

public class OfferAjaxAction {
  public void deleteSelectedAcademy(Integer id) throws Exception {
    OfferService offerService = (OfferService) BusinessUtil
        .findBusiness("OfferService");
    offerService.deleteById(id);
  }
}
View Full Code Here

Examples of pl.zgora.uz.wmie.fe.sps.business.service.StudentGuardianService.deleteById()

public class StudentGuardianAjaxAction {
  public void deleteSelectedAcademy(Integer id) throws Exception {
    StudentGuardianService studentGuardianService = (StudentGuardianService) BusinessUtil
        .findBusiness("StudentGuardianService");
    studentGuardianService.deleteById(id);
  }
}
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.