Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void homePoiCategoryVCE(ValueChangeEvent vce) {
- try {
- AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
- String procedure = "of_owner.p_poi.setIsHomePoiCategoryFlag(?,?)";
- String stmt = "begin " + procedure + "; end;";
- CallableStatement st = am.getDBTransaction().createCallableStatement(stmt, 0);
- Integer oldValue = (Integer)vce.getOldValue();
- Integer newValue = (Integer)vce.getNewValue();
- st.setInt(1, oldValue);
- st.setInt(2, newValue);
- st.executeUpdate();
- } catch (Exception e) {
- log.error("Error with execution of p_poi.setIsHomePoiCategoryFlag(?,?)", e);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement