Advertisement
psi_mmobile

Untitled

Jun 4th, 2019
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. public void homePoiCategoryVCE(ValueChangeEvent vce) {
  2. try {
  3. AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
  4. String procedure = "of_owner.p_poi.setIsHomePoiCategoryFlag(?,?)";
  5. String stmt = "begin " + procedure + "; end;";
  6. CallableStatement st = am.getDBTransaction().createCallableStatement(stmt, 0);
  7. Integer oldValue = (Integer)vce.getOldValue();
  8. Integer newValue = (Integer)vce.getNewValue();
  9. st.setInt(1, oldValue);
  10. st.setInt(2, newValue);
  11. st.executeUpdate();
  12. } catch (Exception e) {
  13. log.error("Error with execution of p_poi.setIsHomePoiCategoryFlag(?,?)", e);
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement