public Integer getLimit(Object[] args) {
		if (limitIndex == -1) {
			return limit;
		}

		Object arg = args[limitIndex];
		if (arg == null) {
			return null;
		} else if (arg instanceof Integer) {
			return (Integer) arg;
		} else {
			return null;
		}
	}