/** * Construct an IntegerProperty from a literal value and with the given alias, e.g. "10 AS ten" * * @param literal the literal value * @param selectAs the alias to use. May be null. */ public static IntegerProperty literal(int literal, String selectAs) { return new IntegerProperty(null, String.valueOf(literal), selectAs, null); }
/** * Construct an IntegerProperty from a literal value and with the given alias, e.g. "10 AS ten" * * @param literal the literal value * @param selectAs the alias to use. May be null. */ public static IntegerProperty literal(int literal, String selectAs) { return new IntegerProperty(null, String.valueOf(literal), selectAs, null); }
/** * Construct an IntegerProperty from a {@link Function} and with the given alias, e.g. "LENGTH(column) AS len" * * @param function the function * @param selectAs the alias to use. May be null. */ public static IntegerProperty fromFunction(Function<Integer> function, String selectAs) { return new IntegerProperty(function, selectAs); }
/** * Construct an IntegerProperty from a {@link Function} and with the given alias, e.g. "LENGTH(column) AS len" * * @param function the function * @param selectAs the alias to use. May be null. */ public static IntegerProperty fromFunction(Function<Integer> function, String selectAs) { return new IntegerProperty(function, selectAs); }