Package org.eweb4j.orm.dao

Examples of org.eweb4j.orm.dao.DAOException


          int rs = (Integer) JdbcUtil.update(con, sqls[0]);
          ids[i] = rs;
        }
      }
    } catch (Exception e) {
      throw new DAOException("", e);
    }

    return ids;
  }
View Full Code Here


        con = ds.getConnection();
        String[] sqls = SqlFactory.getDeleteSql(new Object[] { t })
            .delete(fields);
        id = JdbcUtil.update(con, sqls[0]);
      } catch (Exception e) {
        throw new DAOException("", e);
      }
    }
    return id;
  }
View Full Code Here

        String[] sqls = SqlFactory.getDeleteSql(
            new Object[] { clazz.newInstance() }).delete(fields,
            values);
        id = JdbcUtil.update(con, sqls[0]);
      } catch (Exception e) {
        throw new DAOException("", e);
      }
    }
    return id;
  }
View Full Code Here

              new Object[] { ts[i] }).update();
          ids[i] = JdbcUtil.update(con, sqls[i]);
          // 更新缓存
        }
      } catch (Exception e) {
        throw new DAOException("batchUpdate exception ", e);
      }
    }
    return ids;
  }
View Full Code Here

          String[] sqls = SqlFactory.getUpdateSql(ts).update(fields);
          ids[i] = JdbcUtil.update(con, sqls[i]);
          // 更新缓存
        }
      } catch (Exception e) {
        throw new DAOException("updateByFields exception ", e);
      }
    }
    return ids;
  }
View Full Code Here

            new Object[] { clazz.newInstance() }).deleteWhere(
            condition);
        id = JdbcUtil.updateWithArgs(con, sql, args);
        // 缓存
      } catch (Exception e) {
        throw new DAOException("", e);
      }
    }
    return id;
  }
View Full Code Here

              values);
          ids[i] = JdbcUtil.update(con, sqls[i]);
          // 更新缓存
        }
      } catch (Exception e) {
        throw new DAOException("updateByFieldIsValue exception ", e);
      }
    }
    return ids;
  }
View Full Code Here

    Connection con = null;
    try {
      con = ds.getConnection();
      result = JdbcUtil.update(con, sqls);
    } catch (Exception e) {
      throw new DAOException("updateBySQL exception ", e);
    }

    return result;
  }
View Full Code Here

    Connection con = null;
    try {
      con = ds.getConnection();
      result = JdbcUtil.updateWithArgs(con, sqls, args);
    } catch (Exception e) {
      throw new DAOException("updateBySQLWithArgs exception ", e);
    }

    return result;
  }
View Full Code Here

        con = ds.getConnection();
        String sql = SqlFactory.getSelectSql(clazz.newInstance(),
            dbType).selectAll(orderField, orderType);
        list = JdbcUtil.getList(con, clazz, sql);
      } catch (Exception e) {
        throw new DAOException("", e);
      }
    }
    return list;
  }
View Full Code Here

TOP

Related Classes of org.eweb4j.orm.dao.DAOException

Copyright © 2018 www.massapicom. 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.