Examples of KommunKey


Examples of org.openqreg.bean.KommunKey

   * @return kommunname if it is found, else return empty string
   */
  public static String getKommunname(String kommuncode){
    String kommunname = "";
    try{
      Kommun kommun = (Kommun)KommunFinderBase.findByPrimaryKey(new KommunKey(kommuncode));
      if(kommun != null && kommun.getKommunnamn() != null){
        kommunname = kommun.getKommunnamn();
      }
    }catch(SQLException sqle){
      log.log(Level.ERROR, sqle);
View Full Code Here

Examples of org.openqreg.bean.KommunKey

/**
* @return The primaryKey
*
*/
public PrimaryKey getPrimaryKey() {
return new KommunKey(getKommunkod());
}
View Full Code Here

Examples of org.openqreg.bean.KommunKey

*/
public static Object findByPrimaryKey(Connection con, PrimaryKey key) throws SQLException {
PreparedStatement pStmt = null;
ResultSet rs = null;
KommunBean valueObject = null;
KommunKey primaryKey = (KommunKey) key;
try{
pStmt = con.prepareStatement(KommunBeanBase.SELECT_STATEMENT);
pStmt.setObject(1, primaryKey.getKommunkod());
rs = pStmt.executeQuery();
while (rs.next()){
valueObject = populate(rs);
valueObject.afterPopulate(con);
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.