/** * Convenient method to run the function without arguments, * returning the value as an object. * @return the value of the function */ @Nullable public Object runGeneric() { return findObject((Object[]) null, null); }
/** * Convenient method to run the function with a single int argument. * @param parameter single int parameter * @return the value of the function as an Object */ @Nullable public Object runGeneric(int parameter) { return findObject(parameter); }
/** * Analogous to the {@code SqlQuery.findObject(Object[])} method. * This is a generic method to execute a query, taken a number of arguments. * @param parameters array of parameters. These will be objects or * object wrapper types for primitives. * @return the value of the function, as an Object * @see #execute(Object[]) */ @Nullable public Object runGeneric(Object[] parameters) { return findObject(parameters); }
/** * Convenient method to run the function with a single int argument. * @param parameter single int parameter * @return the value of the function as an Object */ public Object runGeneric(int parameter) { return findObject(parameter); }
/** * Convenient method to run the function without arguments, * returning the value as an object. * @return the value of the function */ public Object runGeneric() { return findObject((Object[]) null); }
/** * Analogous to the {@code SqlQuery.findObject(Object[])} method. * This is a generic method to execute a query, taken a number of arguments. * @param parameters array of parameters. These will be objects or * object wrapper types for primitives. * @return the value of the function, as an Object * @see #execute(Object[]) */ public Object runGeneric(Object[] parameters) { return findObject(parameters); }
/** * Analogous to the {@code SqlQuery.findObject(Object[])} method. * This is a generic method to execute a query, taken a number of arguments. * @param parameters array of parameters. These will be objects or * object wrapper types for primitives. * @return the value of the function, as an Object * @see #execute(Object[]) */ @Nullable public Object runGeneric(Object[] parameters) { return findObject(parameters); }
/** * Convenient method to run the function without arguments, * returning the value as an object. * @return the value of the function */ @Nullable public Object runGeneric() { return findObject((Object[]) null, null); }
/** * Convenient method to run the function with a single int argument. * @param parameter single int parameter * @return the value of the function as an Object */ @Nullable public Object runGeneric(int parameter) { return findObject(parameter); }
public int getComputationDurationForDate(Date date) { Preconditions.checkNotNull(date); Integer result = getComputationDurationForDate.findObject(date); return Objects.firstNonNull(result, 0); }