public int delete() throws SQLException {
		StringBuilder sb = new StringBuilder();
		if (commentLine != null) {
			sb.append("/* ").append(commentLine).append(" */");
		}
		sb.append("delete from " + TABLENAME + "");
		int length = whereMap.size();
		if (length > 0) {
			StringBuilder sbWhere = new StringBuilder();
			// int i = 1;
			List<Object> list = new ArrayList<Object>();
			for (String str : whereMap.keySet()) {
				sbWhere.append(str);
				Object o = whereMap.get(str);
				if (o != null)
					if (o instanceof Array) {
						getArrayObj(list, (Array) o);
					} else {
						list.add(o);
					}
				// if (i < length) {
				// sbWhere.append(",");
				// }
				// i++;
			}
			sb.append(sbWhere.toString().replaceFirst(AND, " where "));
			String sql = sb.toString();
			Object[] values = new Object[list.size()];
			list.toArray(values);
			if (this.isloggerOn) {
				StringBuilder s = new StringBuilder();
				for (Object o : values) {
					s.append(o).append(",");
				}
				logger.log("qurey sql[" + sql + "][" + s.toString().substring(0, s.length() - 1) + "]");
			}

			return jdao.executeUpdate(sb.toString(), list.toArray(values));
		} else {
			logger.log("[DELETE SQL][" + sb.toString() + "]");
			return jdao.executeUpdate(sb.toString());
		}
	}