|
||||||||||||
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
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,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
|
|
SELECT(int maximumResultSize,
FROM from,
WHERE where)
|
Method Summary | |
---|---|
protected void |
addEObject(org.eclipse.emf.ecore.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. |
java.util.Set |
getEObjects()
A getter for the EObjects supplied by this IEObjectSource |
protected void |
handleException(java.lang.Exception exception,
java.lang.String functionName)
Handles an exception by logging and recording it. |
protected boolean |
isCancelled()
|
IQueryResult |
resume(org.eclipse.core.runtime.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, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Method Detail |
protected void doExecute()
QueryStatement.execute()
protected void handleException(java.lang.Exception exception, java.lang.String functionName)
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
protected void doResume()
org.eclipse.emf.query.internal.statements.QueryStatement
QueryStatement.doResume()
protected void addEObject(org.eclipse.emf.ecore.EObject eObject)
protected boolean isCancelled()
public final IQueryResult execute()
org.eclipse.emf.query.internal.statements.QueryStatement
public final java.util.Set getEObjects()
IEObjectSource
IEObjectSource
public final IQueryResult resume(org.eclipse.core.runtime.IProgressMonitor progressMon)
org.eclipse.emf.query.internal.statements.QueryStatement
progressMon
- The progress monitor to be used by the query
statement while resuming.
|
Copyright 2002, 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |