public class Query extends Object
Constructor and Description |
---|
Query() |
Modifier and Type | Method and Description |
---|---|
static <T> Collection<Map<String,T>> |
selectStarWhere(Table<T> t,
String column,
Predicate<T> P)
SELECT attribute FROM t where P(column)
|
static <T> Collection<Map<String,T>> |
selectStarWhereEquals(Table<T> t,
String column,
T value)
SELECT * from t where column=value
|
static <T> Collection<T> |
selectWhereEquals(Table<T> t,
String attribute,
String column,
T value)
SELECT attribute FROM t where column=value
|
static StringTable |
viewWhereEquals(StringTable t,
String column,
String value) |
static <T> Table<T> |
viewWhereEquals(Table<T> t,
String column,
T value) |
public static <T> Collection<Map<String,T>> selectStarWhereEquals(Table<T> t, String column, T value) throws IllegalArgumentException
IllegalArgumentException
- if t == nullpublic static <T> Collection<T> selectWhereEquals(Table<T> t, String attribute, String column, T value)
public static <T> Collection<Map<String,T>> selectStarWhere(Table<T> t, String column, Predicate<T> P)
public static StringTable viewWhereEquals(StringTable t, String column, String value)