org.josql.contrib
Class JoSQLFreeChartCategoryDataset
java.lang.Object
org.josql.Query
org.josql.contrib.JoSQLFreeChartCategoryDataset
public class JoSQLFreeChartCategoryDataset
- extends Query
Fields inherited from class org.josql.Query |
ALL, ALL_OBJS_VAR_NAME, CURR_OBJ_VAR_NAME, GROUP_BY_RESULTS, GRPBY_OBJ_VAR_NAME, GRPBY_OBJ_VAR_NAME_SYNONYM, HAVING_RESULTS, INT_BIND_VAR_PREFIX, nullQueryList, ORDER_BY_ASC, ORDER_BY_DESC, PARENT_BIND_VAR_NAME, QUERY_BIND_VAR_NAME, RESULTS, WHERE_RESULTS |
Methods inherited from class org.josql.Query |
addBindVariableChangedListener, addFunctionHandler, addSaveValueChangedListener, addTiming, doExecuteOn, execute, execute, execute, fireBindVariableChangedEvent, fireSaveValueChangedEvent, getAliases, getAllObjects, getAnonymousBindVariableName, getClassLoader, getColumns, getCurrentObject, getDefaultFunctionHandlers, getExecuteOnFunctions, getFrom, getFromObjectClass, getFunctionHandler, getFunctionHandlers, getGroupByColumns, getGroupBySaveValue, getGroupBySaveValues, getGroupByVariable, getHavingClause, getLimit, getOrderByColumns, getOrderByComparator, getParent, getQuery, getQueryResults, getSaveValue, getTopLevelQuery, getVariable, getVariable, getVariableClass, getVariables, getWhereClause, getWildcardCharacter, init, initOrderByComparator, isWantObjects, isWhereTrue, loadClass, parse, parseAndExec, parsed, removeBindVariableChangedListener, removeSaveValueChangedListener, reorder, reorder, setAllObjects, setClassLoader, setClassName, setColumns, setCurrentGroupByObjects, setCurrentObject, setExecuteOnFunctions, setFrom, setFromObjectClass, setGroupByColumns, setGroupByLimit, setGroupByOrderColumns, setHaving, setLimit, setOrderByColumns, setParent, setSaveValue, setSaveValues, setVariable, setVariable, setVariables, setWantDistinctResults, setWantObjects, setWantTimings, setWhere, setWildcardCharacter, toString |
JoSQLFreeChartCategoryDataset
public JoSQLFreeChartCategoryDataset()
addChangeListener
public void addChangeListener(DatasetChangeListener l)
removeChangeListener
public void removeChangeListener(DatasetChangeListener l)
getGroup
public DatasetGroup getGroup()
getResults
public QueryResults getResults()
- Get any results, will be null unless
Query.execute(List)
has been called.
- Returns:
- The results.
clearResults
public void clearResults()
- Clear any results.
setGroup
public void setGroup(DatasetGroup g)
define
public void define(int xCol,
Object[] yCols)
throws IllegalArgumentException,
IllegalStateException,
QueryParseException
- Throws:
IllegalArgumentException
IllegalStateException
QueryParseException
define
public void define(int xCol,
int[] yCols)
throws IllegalArgumentException,
IllegalStateException,
QueryParseException
- Throws:
IllegalArgumentException
IllegalStateException
QueryParseException
define
public void define(int xCol,
List yCols)
throws IllegalArgumentException,
IllegalStateException,
QueryParseException
- Throws:
IllegalArgumentException
IllegalStateException
QueryParseException
executeQuery
public QueryResults executeQuery(List l)
throws QueryExecutionException
- Exectute the query and return the results. A reference to the results is also held to
allow them to be iterated over. If you plan on re-using this data source then
you should call:
clearResults()
to free up the references to the results.
- Parameters:
l
- The List of objects to execute the query on.
- Returns:
- The results.
- Throws:
QueryExecutionException
- If the query cannot be executed, or if the query
is set to return objects rather than "columns".
getDomainOrder
public DomainOrder getDomainOrder()
getRowCount
public int getRowCount()
getColumnCount
public int getColumnCount()
getValue
public Number getValue(int row,
int col)
getRowKeys
public List getRowKeys()
getValue
public Number getValue(Comparable row,
Comparable col)
getColumnKey
public Comparable getColumnKey(int c)
getColumnKeys
public List getColumnKeys()
getColumnIndex
public int getColumnIndex(Comparable c)
getRowIndex
public int getRowIndex(Comparable c)
getRowKey
public Comparable getRowKey(int k)
Copyright © 2008 Gary Bentley. All Rights Reserved.