|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.bioquery.query.Query.QueryDescriptor
Inner class holds data about the file this Query is saved in, and the details
about automatic submission. This class is automatically created with the Query.
To access it's data, get a reference to the QuerySubmitter using the
getQueryDescriptor method in the Query, and then call the public methods
of this class.
| Method Summary | |
boolean |
autoSubmitOn()
Returns whether the Query should automatically be submitted at some interval. |
java.util.Date |
getCreated()
The Date the Query was created. |
java.lang.String |
getEmailAddress()
Returns the EMail address that the results of this Query should be sent to (if getSendEmail() == true). |
java.lang.String |
getFilePath()
The path on the server this file is saved to. |
int |
getIncrementNumber()
Returns the number of time units in between each automatic submission of this Query. |
java.util.Date |
getLastModified()
The date the Query was last modified. |
java.util.Date |
getLastSubmitted()
The Date of the last time the Query was submitted. |
java.util.Date |
getNextSubmitDate()
Returns the Date at which the next automatic submission should occur. |
java.util.Date |
getReferencePoint()
Returns the Reference Point: a Date that simply marks a point in time. |
java.lang.String |
getSaveDirectory()
Returns the path to the Directory that the results of this Query should be saved to (if getSaveToFile() == true). |
boolean |
getSaveToFile()
Returns whether the user wishes to have the results of this Query saved to a file. |
boolean |
getSendEmail()
Returns whether the user wishes to have the results of this Query sent to them by Email. |
int |
getSubmitIncrement()
Returns an int that is the unit of how often the Query is automatically submitted. |
java.lang.String |
getSubmitIncrementText()
Returns the auto-submit increment unit in textual format. |
int |
getSubmitLineNumber()
Returns the QueryLine line number that will be submitted to the database. |
java.lang.String[] |
getTimeIncrements()
Gets an array of Strings representing the human-readable options for time increments (for example: 'Day', 'Week', or 'Month'). |
java.lang.String |
getTimeUnit(int unit)
Converts the int constant time increment (from the Calendar class) to the human-readable time increment. |
int |
getTimeUnit(java.lang.String unit)
Converts a human-readable time increment into the int constant time increment (from the Calendar class). |
void |
incrementNextSubmitDate()
Resets the Next Submit Date. |
void |
setAutoSubmit(boolean submit)
Switch that determines whether the Query should automatically be submitted at some interval. |
protected void |
setCreated(java.util.Date dateCreated)
The Date the Query was created. |
void |
setEmailAddress(java.lang.String emailAddress)
Sets the EMail address that the results of this Query should be sent to (if getSendEmail() == true). |
void |
setFilePath(java.lang.String path)
The path on the server this file is saved to. |
void |
setIncrementNumber(int number)
Sets the number of time units in between each automatic submission of this Query. |
void |
setLastModified(java.util.Date dateLastModified)
The date the Query was last modified. |
void |
setLastSubmitted(java.util.Date dateLastSubmitted)
The Date of the last time the Query was submitted. |
void |
setNextSubmitDate()
This calculates and sets the NextSubmitDate based on the interval between automatic submissions and the ReferencePoint Date. |
void |
setNextSubmitDate(java.util.Date date)
Explicitly sets the Next Submit Date to the given value. |
void |
setReferencePoint(java.util.Date date)
Sets the Reference Point: a Date that simply marks a point in time. |
void |
setSaveDirectory(java.lang.String saveDirectory)
Sets the path to the Directory that the results of this Query should be saved to (if getSaveToFile() == true). |
void |
setSaveToFile(boolean saveToFile)
Sets whether the user wishes to have the results of this Query saved to a file. |
void |
setSendEmail(boolean sendEmail)
Sets whether the user wishes to have the results of this Query sent to them by Email. |
void |
setSubmitIncrement(int increment)
Sets the units used to determine how often the Query is automatically submitted. |
void |
setSubmitIncrement(java.lang.String unit)
Sets the units used to determine how often the Query is automatically submitted. |
void |
setSubmitLineNumber(int lineNum)
Sets which QueryLine will be submitted to the database. |
void |
updateLastModified()
Sets the date the Query was last modified to Now. |
void |
updateLastSubmitted()
Sets the lastSubmitted date to Now. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.lang.String getFilePath()
public void setFilePath(java.lang.String path)
public java.util.Date getCreated()
protected void setCreated(java.util.Date dateCreated)
public java.util.Date getLastSubmitted()
setLastSubmitter.public void setLastSubmitted(java.util.Date dateLastSubmitted)
public void updateLastSubmitted()
public java.util.Date getLastModified()
public void setLastModified(java.util.Date dateLastModified)
public void updateLastModified()
public boolean autoSubmitOn()
public void setAutoSubmit(boolean submit)
public int getSubmitLineNumber()
public void setSubmitLineNumber(int lineNum)
public java.util.Date getReferencePoint()
public void setReferencePoint(java.util.Date date)
public java.lang.String getSubmitIncrementText()
getIncrementNumber.public int getSubmitIncrement()
Calendar class such as
Calendar.MONTH etc.public void setSubmitIncrement(int increment)
Calendar class such as
Calendar.MONTH etc.public void setSubmitIncrement(java.lang.String unit)
getSubmitIncrementTextpublic int getIncrementNumber()
getTimeIncrementText and you will have the actual interval between
automatic submissions.public void setIncrementNumber(int number)
getTimeIncrementText and you will have the actual interval between
automatic submissions.public java.util.Date getNextSubmitDate()
public void setNextSubmitDate()
public void setNextSubmitDate(java.util.Date date)
setNextSubmitDate().public void incrementNextSubmitDate()
setNextSubmitDate. This is the same as calling
setNextSubmitDate, except that by moving the Reference Point up it
speeds up the calculations for all future calls to setNextSubmitDate.public boolean getSendEmail()
public void setSendEmail(boolean sendEmail)
public boolean getSaveToFile()
public void setSaveToFile(boolean saveToFile)
public java.lang.String getEmailAddress()
getSendEmail() == true).public void setEmailAddress(java.lang.String emailAddress)
getSendEmail() == true).public java.lang.String getSaveDirectory()
getSaveToFile() == true).public void setSaveDirectory(java.lang.String saveDirectory)
getSaveToFile() == true).public java.lang.String[] getTimeIncrements()
public java.lang.String getTimeUnit(int unit)
unit - A Calendar class time constant (for example:
Calendar.DATE).public int getTimeUnit(java.lang.String unit)
unit - A String representing that time constant (for example:
"Day").
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||