Package org.eweb4j.orm.dao

Examples of org.eweb4j.orm.dao.DAOException


            SqlFactory.getSelectSql(clazz.newInstance(), dbType)
                .preOne(column, value));
        return list != null && !list.isEmpty() ? list.get(0) : null;
      } catch (Exception e) {

        throw new DAOException("preOne exception ", e);
      }
    }
    return null;
  }
View Full Code Here


        String sql = SqlFactory.getSelectSql(clazz.newInstance(),
            dbType).divPage(currPage, numPerPage, orderField,
            orderType, condition);
        list = JdbcUtil.getListWithArgs(con, clazz, sql, args);
      } catch (Exception e) {
        throw new DAOException("divPageByWhere exception ", e);
      }
    }
    return list;
  }
View Full Code Here

        String sql = SqlFactory.getSelectSql(clazz.newInstance(),
            dbType).selectWhere(fields, values, -2, false, false,
            isOR, orderField, orderType, currPage, numPerPage);
        list = JdbcUtil.getList(con, clazz, sql);
      } catch (Exception e) {
        throw new DAOException("divPageByFieldIsValue exception ", e);
      }
    }
    return list;
  }
View Full Code Here

        String sql = SqlFactory.getSelectSql(clazz.newInstance(),
            dbType).selectWhere(fields, values, -2, false, true,
            isOR, orderField, orderType, currPage, numPerPage);
        list = JdbcUtil.getList(con, clazz, sql);
      } catch (Exception e) {
        throw new DAOException("divPageByFieldNotIsValue exception ", e);
      }
    }
    return list;
  }
View Full Code Here

        String sql = SqlFactory.getSelectSql(t, dbType).selectWhere(
            fields, null, -2, false, false, isOR, orderField,
            orderType, currPage, numPerPage);
        list = JdbcUtil.getList(con, clazz, sql);
      } catch (Exception e) {
        throw new DAOException("divPageByFieldIsValue exception ", e);
      }
    }
    return list;
  }
View Full Code Here

        String sql = SqlFactory.getSelectSql(t, dbType).selectWhere(
            fields, null, -2, false, true, isOR, orderField,
            orderType, currPage, numPerPage);
        list = JdbcUtil.getList(con, clazz, sql);
      } catch (Exception e) {
        throw new DAOException("divPageByFieldNotIsValue exception ", e);
      }
    }
    return list;
  }
View Full Code Here

        String sql = SqlFactory.getSelectSql(t, dbType).selectWhere(
            fields, null, -2, false, false, isOR, null, orderType,
            currPage, numPerPage);
        list = JdbcUtil.getList(con, clazz, sql);
      } catch (Exception e) {
        throw new DAOException("divPageByFieldIsValues exception", e);
      }
    }
    return list;
  }
View Full Code Here

        String sql = SqlFactory.getSelectSql(t, dbType).selectWhere(
            fields, null, -2, false, true, isOR, null, orderType,
            currPage, numPerPage);
        list = JdbcUtil.getList(con, clazz, sql);
      } catch (Exception e) {
        throw new DAOException("divPageByFieldNotIsValues exception ",
            e);
      }
    }
    return list;
  }
View Full Code Here

            dbType).selectWhere(fields, values, likeType, true,
            false, isOR, orderField, orderType, currPage,
            numPerPage);
        list = JdbcUtil.getList(con, clazz, sql);
      } catch (Exception e) {
        throw new DAOException("divPageByFieldLikeValue exception ", e);
      }
    }
    return list;
  }
View Full Code Here

                isOR, orderField, orderType, currPage,
                numPerPage);
        list = JdbcUtil.getList(con, clazz, sql);
      } catch (Exception e) {

        throw new DAOException("divPageByFieldNotLikeValue exception ",
            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.