Package com.google.code.lightssh.common.dao

Examples of com.google.code.lightssh.common.dao.DaoException


      throw new SecurityException( "该角色名称'"+role.getName()+"'已经存在!" );
    */
    if( update ){
      Role db_role = get( role );
      if( db_role == null )
        throw new DaoException( "该角色已不存在,不能进行修改操作!" );
     
      db_role.setName( role.getName() );
      db_role.setDescription( role.getDescription() );
      //修改审核拒绝的角色进入待审核列表
      if(AuditStatus.AUDIT_REJECT.equals(db_role.getStatus()))
View Full Code Here


 
  public ListPage<T> list(ListPage<T> page,T t ){
    if( t == null )
      return list( page );
   
    throw new DaoException("实体("+entityClass+")带条件的查询没有实现!");
  }
View Full Code Here

    return (T)getHibernateTemplate().get( this.entityClass , identity );
  }
 
  @Override
  public T readWithLock(Serializable identity) {
    throw new DaoException("实体("+entityClass+")带锁的查询没有实现!");
  }
View Full Code Here

    return getHibernateTemplate().bulkUpdate(hql, params.toArray() );
  }

  @Override
  public void deleteAll() {
    throw new DaoException("删除实体("+entityClass+")"+
        "所有集合,需要在具体子类中实现!");
  }
View Full Code Here

 
  public ListPage<T> list(ListPage<T> page,T t ){
    if( t == null )
      return list( page );
   
    throw new DaoException("实体("+entityClass+")带条件的查询没有实现!");
  }
View Full Code Here

    return query.executeUpdate();
  }

  @Override
  public void deleteAll() {
    throw new DaoException("删除实体("+entityClass+")"+
      "所有集合,需要在具体子类中实现!");
  }
View Full Code Here

    return (T)element.getValue();
  }
 
  @Override
  public T readWithLock(Serializable identity) {
    throw new DaoException("实体("+identity+")带锁的查询没有实现!");
  }
View Full Code Here

TOP

Related Classes of com.google.code.lightssh.common.dao.DaoException

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.