Package com.google.code.lightssh.project.uom.entity

Examples of com.google.code.lightssh.project.uom.entity.UnitOfMeasure


    this.dao = dao;
  }
 
  private List<UnitOfMeasure> list(UomType type,Boolean active) {
    ListPage<UnitOfMeasure> page = new ListPage<UnitOfMeasure>( Integer.MAX_VALUE );
    UnitOfMeasure uom = new UnitOfMeasure( );
    uom.setType(type);
    uom.setActive( active );
    page = super.dao.list(page, uom);
   
    return page.getList();
  }
View Full Code Here


  @Override
  public void toggleActive(UnitOfMeasure uom) {
    if( uom == null || uom.getIdentity() == null )
      return;
   
    UnitOfMeasure db_uom = this.get( uom );
    if( db_uom != null ){
      db_uom.setActive( !db_uom.isActive() );
      dao.update( db_uom );
    }
  }
View Full Code Here

TOP

Related Classes of com.google.code.lightssh.project.uom.entity.UnitOfMeasure

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.