Package com.cin.entity

Examples of com.cin.entity.Industry


  }
 
  public Industry findIndCode(String pIndustry) {
    String aQuery = "select ind from Industry ind where upper(trim(ind.industry)) =  '" + pIndustry.toUpperCase() + "' " ;
    Query aQueryObject = manager.createQuery(aQuery);
    Industry aInd = (Industry)aQueryObject.getSingleResult();
    return aInd;
  }
View Full Code Here


    }
 
    return anDTO;
  }
  public IndustryDTO findStabilityForIndustryCode(int pCode) {
    Industry anEntity = (Industry) manager.find(Industry.class, pCode);
   
    IndustryDTO anDTO = null;
   
    if(anEntity != null) {
     
View Full Code Here

    List<?> ejbList = queryLargestOccupationOrIndustry("industry", stateAbbv, zipCode);
    List<IndustryDTO> dtoList = new ArrayList<IndustryDTO>();
    int copySize = Math.min(resultSize, ejbList.size());
   
    for( int i = 0; i < copySize; i++ ){
      Industry ejb = (Industry) ejbList.get(i);
      dtoList.add(new IndustryDTO( ejb) );
    }
    return dtoList;
  }
View Full Code Here

        }
      }
      if((aIndCategory != null && !aIndCategory.equals("")) || aIndCode > 0) {
        if(aIndCategory != null) {
         
          Industry indEntity = aTxnRemote.findIndCode(aIndCategory);
         
          if(indEntity != null)
         
            aIndCode = indEntity.getIndustrycode();
        }
      }
     
      if(isCriteria) {
        query.append(" AND ");
View Full Code Here

    if( ejb == null )
    {
      ejb = user.getJobDetails().toEJB(user.getSsn());
      persist(ejb);
    } else {
      Industry ind = new Industry();
      Occupation occ = new Occupation();
      ind.setIndustrycode(user.getJobDetails().getIndustryCode());
      occ.setOccupationcode(user.getJobDetails().getOccupationCode());
      ejb.setEmployersize(user.getJobDetails().getEmployerSize());
      ejb.setIndustry(ind);
      ejb.setOccupation(occ);
      ejb.setSelfemployed(user.getJobDetails().getSelfEmployed());
View Full Code Here

        }
      }
      if((aIndCategory != null && !aIndCategory.equals("")) || aIndCode > 0) {
        if(aIndCategory != null) {
         
          Industry indEntity = aTxnRemote.findIndCode(aIndCategory);
         
          if(indEntity != null)
         
            aIndCode = indEntity.getIndustrycode();
        }
      }
     
      query.append("SELECT u ");
      query.append("FROM Userrecord u, IN( u.job ) j, IN( j.occupation ) o, IN( j.industry ) i ");
View Full Code Here

TOP

Related Classes of com.cin.entity.Industry

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.