示例#1
0
 public Object eliminar(Jpo jpo, HttpServletRequest request, HttpServletResponse response)
     throws Exception {
   // jpo.autoCommit(false);
   jpo.tabla("ATRIBUTO_SQL", "ADB").eliminar();
   jpo.tabla("ATRIBUTO", "ATR").eliminar();
   jpo.commitear();
   return true;
 }
示例#2
0
 public Object registrar(Jpo jpo, HttpServletRequest request, HttpServletResponse response)
     throws Exception {
   // jpo.autoCommit(false);
   jpo.tabla("ATRIBUTO", "ATR").registrar();
   if (request.getParameter("FLG_sql") != null && request.getParameter("FLG_sql").equals("true")) {
     jpo.tabla("ATRIBUTO_SQL", "ADB").registrar();
   }
   jpo.commitear();
   return true;
 }
示例#3
0
  public Object editar(Jpo jpo, HttpServletRequest request, HttpServletResponse response)
      throws Exception {

    String flg_sql = request.getParameter("FLG_sql");
    String flg_sqlEsEdicion = request.getParameter("FLG_sqlEsEdicion");

    // jpo.autoCommit(false);
    jpo.tabla("ATRIBUTO", "ATR").editar();
    Tabla atributoSQL = jpo.tabla("ATRIBUTO_SQL", "ADB");
    if (flg_sql != null && flg_sql.equals("true")) {
      if (flg_sqlEsEdicion != null && flg_sqlEsEdicion.equals("true")) {
        atributoSQL.editar();
      } else {
        atributoSQL.registrar();
      }
    } else {
      atributoSQL.eliminar();
    }
    jpo.commitear();
    return true;
  }