net.aditsu.depeche
public interface IQuery extends List<Record>, Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
clearData()
Clears the cached results, so the SELECT query will run again when needed
|
List<Serializable> |
getColumn(int x)
Returns a lazy list of the values returned by this SELECT query in a given column
|
<T extends Serializable> |
getColumn(int x,
Class<T> cl)
Returns a lazy list of the values returned by this SELECT query in a given column,
using a class to cast the values to the correct type
|
List<Serializable> |
getColumn(String name)
Returns a list of the values returned by this SELECT query in a given column
|
<T extends Serializable> |
getColumn(String name,
Class<T> cl)
Returns a list of the values returned by this SELECT query in a given column,
using a class to cast the values to the correct type
|
ColumnInfo |
getColumnInfo()
Returns the column information for this SELECT query's results
|
LocalQuery |
getLocalQuery()
Returns a LocalQuery that uses the records selected by this query
|
Record |
getOneRecord()
Runs this query as a SELECT (if needed) and returns a single record;
it throws an exception if the number of results is not 1
|
Record |
getRecord()
Runs this query as a SELECT (if needed) and returns a single record, or null if there are no results;
it throws an exception if there are multiple results
|
boolean |
hasRun()
Returns true if this query was already executed as a SELECT (and the results cached)
|
IQuery |
select()
Runs this query as a SELECT (and caches the results)
|
IQuery select()
boolean hasRun()
void clearData()
ColumnInfo getColumnInfo()
Record getOneRecord()
Record getRecord()
List<Serializable> getColumn(int x)
List<Serializable> getColumn(String name)
<T extends Serializable> List<T> getColumn(int x, Class<T> cl)
<T extends Serializable> List<T> getColumn(String name, Class<T> cl)
LocalQuery getLocalQuery()