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

Method getOrderOr

jnode-core/src/jnode/dao/GenericDAO.java:273–285  ·  view source on GitHub ↗
(String order, boolean asc, Object... args)

Source from the content-addressed store, hash-verified

271 }
272
273 public List<T> getOrderOr(String order, boolean asc, Object... args) {
274 try {
275 QueryBuilder<T, ?> qb = getDao().queryBuilder();
276 qb.orderBy(order, asc);
277 buildWhere(qb, false, args);
278 return qb.query();
279 } catch (SQLException e) {
280 logger.l1("SQL Exception in getOrderOr", e);
281 logger.l1(MessageFormat.format("we worked with {0} {1} {2}", order,
282 asc, Arrays.toString(args)));
283 }
284 return new ArrayList<>();
285 }
286
287 public T getFirstAnd(Object... args) {
288 try {

Callers

nothing calls this directly

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