Package net.naijatek.myalumni.framework.exceptions

Examples of net.naijatek.myalumni.framework.exceptions.MyAlumniException


  public void softDeleteObject(String id, String lastModifiedBy) throws MyAlumniException {
    try{
      softDelete(load(PrivateMessageVO.class, id), lastModifiedBy);
    } catch(Exception e){
      throw new MyAlumniException("Could not delete private message because " + e.getMessage());
    }
  }
View Full Code Here


      throws MyAlumniException {
    try{
      getHibernateTemplate().deleteAll(getHibernateTemplate().loadAll(LoginHistoryVO.class));
      getHibernateTemplate().flush();
    } catch(Exception e){
      throw new MyAlumniException("Could not delete access logs because " + e.getMessage());
    }
  }
View Full Code Here

  public void deleteAllErrorLogs() throws MyAlumniException {
    try{     
      getHibernateTemplate().deleteAll(getHibernateTemplate().loadAll(ErrorLogVO.class));
      getHibernateTemplate().flush()
    } catch(Exception e){
      throw new MyAlumniException("Could not delete error logs because " + e.getMessage());
    }

  }
View Full Code Here

  public void deleteErrorLog(String logId) throws MyAlumniException {
    try{     
      ErrorLogVO el = (ErrorLogVO) getHibernateTemplate().load(ErrorLogVO.class, logId);
      hardDelete(el);
    } catch(Exception e){
      throw new MyAlumniException("Could not delete error log because " + e.getMessage());
    }

  }
View Full Code Here

  public void hardDeleteObject(String id) throws MyAlumniException {
    try{
      hardDelete(load(FrontPageVO.class, id));
    } catch(Exception e){
      throw new MyAlumniException("Could not delete FrontPageVO because " + e.getMessage());
    }
  }
View Full Code Here

  public void softDeleteObject(String id, String lastModifiedBy) throws MyAlumniException {
    try{
      softDelete(load(FrontPageVO.class, id), lastModifiedBy);
    } catch(Exception e){
      throw new MyAlumniException("Could not delete front page link because " + e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of net.naijatek.myalumni.framework.exceptions.MyAlumniException

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.