|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.bioquery.query.QueryLine
This class models each individual line within a Query object. Each Query object will contain a number of QueryLine objects stored in the Query's queryLines List.
| Constructor Summary | |
protected |
QueryLine(Query myQuery)
Creates a QueryLine object with the next available line number associated with the given Query. |
protected |
QueryLine(Query myQuery,
int lineNumber)
Creates a QueryLine object associated with the given Query at the given line number. |
protected |
QueryLine(Query myQuery,
int lineNumber,
java.lang.String text)
Creates a QueryLine object associated with the given Query at the given line number and containing the given query text. |
protected |
QueryLine(Query myQuery,
java.lang.String text)
Creates a QueryLine object with the next available line number associated with the given Query and containing the given query text. |
| Method Summary | |
java.util.List |
getAllValues()
Returns an ArrayList of String objects that represent the 4 paramaters that define a QueryLine: Line number Query line text number of results date last submitted The List contains these 4 Strings in the order given above. |
java.util.Date |
getLastSubmitted()
Returns the time and date that this QueryLine was last submitted. |
int |
getLineNumber()
Returns the line number associated with this QueryLine. |
int |
getNumReturned()
Returns the number of items in the result set of this QueryLine. |
Query |
getQuery()
Returns the Query that this QueryLine is part of. |
javax.swing.text.Document |
getQueryLineDocument()
Returns the underlying Document that holds the query Text. |
java.lang.String |
getQueryText()
Returns the actual text of this QueryLine. |
boolean |
getUpdateNeeded()
Returns true if this QueryLine has been modified and needs to have it's data updated. |
void |
setLastSubmitted(java.util.Date lastSubmitted)
Sets the time and date that this QueryLine was last submitted. |
void |
setLineNumber(int lineNum)
Sets the line number associated with this QueryLine. |
void |
setNumReturned(int numReturned)
Sets the number of items in the result set of this QueryLine. |
void |
setQueryText(java.lang.String text)
Sets the actual text of this QueryLine. |
void |
setUpdateNeeded(boolean update)
Sets the updateNeeded status of the QueryLine. |
java.lang.String |
toString()
Returns a single string object that consists of a tab-delimited list of the 4 paramaters that define a QueryLine: |
void |
updateSubmission(int numReturned,
java.util.Date lastSubmitted)
Sets both the time of submission and the number of items in the result set of this QueryLine. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected QueryLine(Query myQuery)
myQuery - The Query that instantiates and owns this QueryLine.
protected QueryLine(Query myQuery,
int lineNumber)
myQuery - The Query that instantiates and owns this QueryLine.lineNumber - The line number of this QueryLine.
protected QueryLine(Query myQuery,
java.lang.String text)
myQuery - The Query that instantiates and owns this QueryLine.queryLine - The text of this QueryLine.
protected QueryLine(Query myQuery,
int lineNumber,
java.lang.String text)
myQuery - The Query that instantiates and owns this QueryLine.lineNumber - The line number of this QueryLine.queryLine - The text of this QueryLine.| Method Detail |
public Query getQuery()
public void setLineNumber(int lineNum)
lineNum - The line number displayed for this QueryLine.public int getLineNumber()
public void setQueryText(java.lang.String text)
Conversion from this format to a format suitable for submission to the database is the responsibility of the QuerySubmitter.
This method automatically sets updateNeeded to true for this QueryLine.
queryText - The query text that makes up this QueryLine.public java.lang.String getQueryText()
public javax.swing.text.Document getQueryLineDocument()
public void setNumReturned(int numReturned)
numReturned - The number of items returned when this
QueryLine is submitted.public int getNumReturned()
public void setLastSubmitted(java.util.Date lastSubmitted)
lastSubmitted - A Date object instantiated at the time of
submission.public java.util.Date getLastSubmitted()
public void updateSubmission(int numReturned,
java.util.Date lastSubmitted)
numReturned - The number of items returned when this
QueryLine is submitted.public boolean getUpdateNeeded()
public void setUpdateNeeded(boolean update)
public java.util.List getAllValues()
public java.lang.String toString()
Line_number Query_line_text number_of_results date_last_submitted.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||