MCPcopy Create free account
hub / github.com/annmuor/jnode / getLimitAnd

Method getLimitAnd

jnode-core/src/jnode/dao/GenericDAO.java:209–222  ·  view source on GitHub ↗

Аргументы: limit, a == b, c == d @param args @return

(long limit, Object... args)

Source from the content-addressed store, hash-verified

207 * @return
208 */
209 public List<T> getLimitAnd(long limit, Object... args) {
210 try {
211 QueryBuilder<T, ?> qb = getDao().queryBuilder();
212 qb.limit(limit);
213 buildWhere(qb, true, args);
214 return qb.query();
215 } catch (SQLException e) {
216 logger.l1("SQL Exception in getAnd", e);
217 logger.l1(MessageFormat.format("we worked with {0}",
218 Arrays.toString(args)));
219
220 }
221 return new ArrayList<>();
222 }
223
224 public List<T> getOrderAnd(String order, boolean asc, Object... args) {
225 try {

Callers 3

getNetmailMethod · 0.80
getEchoMailMethod · 0.80
getFileMailMethod · 0.80

Calls 6

getDaoMethod · 0.95
buildWhereMethod · 0.95
l1Method · 0.80
formatMethod · 0.80
queryMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected