Package ecar.pojo

Examples of ecar.pojo.AcompRefLimitesArlPK


    public AcompRefLimitesArl getAcompRefLimitesByFuncaoAcomp(AcompReferenciaAref acomp, TipoFuncAcompTpfa funcaoAcomp)
  throws ECARException {
        try{
          return (AcompRefLimitesArl) this.getSession()
                .get(AcompRefLimitesArl.class,
                    new AcompRefLimitesArlPK(acomp.getCodAref(),funcaoAcomp.getCodTpfa()));
        } catch(HibernateException e){
          this.logger.error(e);
            throw new ECARException(e);
        }      
}
View Full Code Here


          AcompRefLimitesArl acompLimites = (AcompRefLimitesArl) itLimites.next();

                  if(acompLimites.getComp_id() != null){
                      session.update(acompLimites);
                  } else{
                      AcompRefLimitesArlPK pk = new AcompRefLimitesArlPK();
                      pk.setCodAref(acompLimites.getAcompReferenciaAref().getCodAref());
                      pk.setCodTpfa(acompLimites.getTipoFuncAcompTpfa().getCodTpfa());
                      acompLimites.setComp_id(pk);
                      session.save(acompLimites);                   
                  }                                 
          objetos.add(acompLimites);
              }
View Full Code Here

     * @throws ECARException
     */
    public AcompRefLimitesArl getAcompRefLimitesByAcompReferenciaTipoFuncAcomp(
                                      TipoFuncAcompTpfa funcAcomp,
                                      AcompReferenciaAref acompanhamento) throws ECARException{
        AcompRefLimitesArlPK pk = new AcompRefLimitesArlPK();
        pk.setCodAref(acompanhamento.getCodAref());
        pk.setCodTpfa(funcAcomp.getCodTpfa());
        try{
            AcompRefLimitesArl acomp = (AcompRefLimitesArl) this.buscar(AcompRefLimitesArl.class, pk);
            return acomp;
        } catch (ECARException e){
          //n�o � necess�rio lan�ar exce��o aqui
View Full Code Here

TOP

Related Classes of ecar.pojo.AcompRefLimitesArlPK

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.