1 2 3 24 package com.geinuke.dao; 25 26 import com.geinuke.vo.PortalCFGVO; 27 28 public class PortalCFGDAO extends GeiDAO{ 29 30 31 public PortalCFGDAO() throws Exception { 32 super(); 33 34 } 35 36 public PortalCFGVO getPortalCFG() throws Exception { 37 PortalCFGVO po=null; 38 try{ 39 this.sqlMap().startTransaction(); 40 po=(PortalCFGVO)this.sqlMap().queryForObject("getPortalCFG",""); 41 this.sqlMap().commitTransaction(); 42 }finally{ 43 this.sqlMap().endTransaction(); 44 } 45 return po; 46 } 47 48 public void updatePortalCFG(PortalCFGVO po) throws Exception { 49 50 try{ 51 this.sqlMap().startTransaction(); 52 this.sqlMap().update("updatePortalCFG",po); 53 this.sqlMap().commitTransaction(); 54 }finally{ 55 this.sqlMap().endTransaction(); 56 } 57 58 } 59 60 61 } 62 | Popular Tags |