|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.query.internal.statements.QueryStatement
org.eclipse.emf.query.statements.SELECT
public class SELECT
The select statement "selects" certain EObjects from the "from" clause that match the "where" clause.
The statement is further customizable to restrict the result set to be bounded by a certain maximum size and to allow the query to be cancellable.
| Field Summary | |
|---|---|
static int |
UNBOUNDED
|
| Fields inherited from class org.eclipse.emf.query.internal.statements.QueryStatement |
|---|
WORK_UNIT |
| Constructor Summary | |
|---|---|
SELECT(boolean cancellable,
FROM from,
WHERE where)
|
|
SELECT(FROM from,
WHERE where)
|
|
SELECT(int maximumResultSize,
boolean cancellable,
FROM from,
WHERE where)
|
|
SELECT(int maximumResultSize,
boolean cancellable,
FROM from,
WHERE where,
IProgressMonitor progressMonitor)
|
|
SELECT(int maximumResultSize,
FROM from,
WHERE where)
|
|
| Method Summary | |
|---|---|
protected void |
addEObject(EObject eObject)
|
boolean |
canBeResumed()
Determines whether or not this particular query statement can be resumed. |
protected void |
doExecute()
Performs the statement execution. |
protected void |
doResume()
Resumes a paused statement. |
IQueryResult |
execute()
Execute the query in order to produce a result. |
Set |
getEObjects()
A getter for the EObjects supplied by this IEObjectSource |
protected void |
handleException(Exception exception,
String functionName)
Handles an exception by logging and recording it. |
protected boolean |
isCancelled()
|
IQueryResult |
resume(IProgressMonitor progressMon)
Resume query execution if such an option is available. |
| Methods inherited from class org.eclipse.emf.query.internal.statements.QueryStatement |
|---|
getProgressMonitor, getResultSet, isCancellable, setProgressMonitor, setResultSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNBOUNDED
| Constructor Detail |
|---|
public SELECT(FROM from,
WHERE where)
public SELECT(boolean cancellable,
FROM from,
WHERE where)
public SELECT(int maximumResultSize,
FROM from,
WHERE where)
public SELECT(int maximumResultSize,
boolean cancellable,
FROM from,
WHERE where)
public SELECT(int maximumResultSize,
boolean cancellable,
FROM from,
WHERE where,
IProgressMonitor progressMonitor)
| Method Detail |
|---|
protected void doExecute()
doExecute in class org.eclipse.emf.query.internal.statements.QueryStatementQueryStatement.execute()
protected void handleException(Exception exception,
String functionName)
org.eclipse.emf.query.internal.statements.QueryStatement
handleException in class org.eclipse.emf.query.internal.statements.QueryStatementexception - the exceptionfunctionName - the method in which it was caughtpublic boolean canBeResumed()
org.eclipse.emf.query.internal.statements.QueryStatement
canBeResumed in class org.eclipse.emf.query.internal.statements.QueryStatementprotected void doResume()
org.eclipse.emf.query.internal.statements.QueryStatement
doResume in class org.eclipse.emf.query.internal.statements.QueryStatementQueryStatement.doResume()protected void addEObject(EObject eObject)
protected boolean isCancelled()
public final IQueryResult execute()
org.eclipse.emf.query.internal.statements.QueryStatement
execute in class org.eclipse.emf.query.internal.statements.QueryStatementpublic final Set getEObjects()
IEObjectSourceIEObjectSource
getEObjects in interface IEObjectSourcegetEObjects in class org.eclipse.emf.query.internal.statements.QueryStatementIEObjectSource
furnishespublic final IQueryResult resume(IProgressMonitor progressMon)
org.eclipse.emf.query.internal.statements.QueryStatement
resume in class org.eclipse.emf.query.internal.statements.QueryStatementprogressMon - The progress monitor to be used by the query
statement while resuming.
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||