Package com.ibm.wala.util.tables
Class Query
- java.lang.Object
-
- com.ibm.wala.util.tables.Query
-
public class Query extends Object
Misc SQL-like support for queries on tables
-
-
Constructor Summary
Constructors Constructor Description Query()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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=valuestatic <T> Collection<T>selectWhereEquals(Table<T> t, String attribute, String column, T value)SELECT attribute FROM t where column=valuestatic StringTableviewWhereEquals(StringTable t, String column, String value)static <T> Table<T>viewWhereEquals(Table<T> t, String column, T value)
-
-
-
Method Detail
-
selectStarWhereEquals
@NullUnmarked public static <T> Collection<Map<String,T>> selectStarWhereEquals(Table<T> t, String column, T value) throws IllegalArgumentException
SELECT * from t where column=value- Throws:
IllegalArgumentException- if t == null
-
selectWhereEquals
public static <T> Collection<T> selectWhereEquals(Table<T> t, String attribute, String column, T value)
SELECT attribute FROM t where column=value
-
selectStarWhere
public static <T> Collection<Map<String,T>> selectStarWhere(Table<T> t, String column, Predicate<T> P)
SELECT attribute FROM t where P(column)
-
viewWhereEquals
public static StringTable viewWhereEquals(StringTable t, String column, String value)
-
-