|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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<? extends EObject> |
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.QueryStatement
QueryStatement.execute()
protected void handleException(Exception exception, String functionName)
org.eclipse.emf.query.internal.statements.QueryStatement
handleException
in class org.eclipse.emf.query.internal.statements.QueryStatement
exception
- 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.QueryStatement
protected void doResume()
org.eclipse.emf.query.internal.statements.QueryStatement
doResume
in class org.eclipse.emf.query.internal.statements.QueryStatement
QueryStatement.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.QueryStatement
public final Set<? extends EObject> getEObjects()
IEObjectSource
IEObjectSource
getEObjects
in interface IEObjectSource
getEObjects
in class org.eclipse.emf.query.internal.statements.QueryStatement
IEObjectSource
furnishespublic final IQueryResult resume(IProgressMonitor progressMon)
org.eclipse.emf.query.internal.statements.QueryStatement
resume
in class org.eclipse.emf.query.internal.statements.QueryStatement
progressMon
- 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 |