Package com.cin.entity

Examples of com.cin.entity.Stateabbv


  return aTranslator.translateToZipDTO(theZipDetails);

}

public String getStateAbbv(String pStateName) throws PersistenceException {
  Stateabbv entity = null;
  try {
    EventLogger.getInstance().info("State is " + pStateName);
    String aQuery = "select s from Stateabbv s where upper(trim(s.name)) =  '" + pStateName.toUpperCase() + "' " ;
    Query aQueryObject = manager.createQuery(aQuery);
    entity = (Stateabbv)aQueryObject.getSingleResult();
  }
  catch(Exception pException) {
    throw new PersistenceException("State does not exist");
  }
    return entity.getAbbv();
}
View Full Code Here

TOP

Related Classes of com.cin.entity.Stateabbv

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.