Package org.eclipse.emf.cdo.spi.server
Class DelegatingQueryResourcesContext
- java.lang.Object
-
- org.eclipse.emf.cdo.spi.server.DelegatingQueryResourcesContext
-
- All Implemented Interfaces:
CDOBranchPoint
,CDOBranchProvider
,CDOTimeProvider
,IStoreAccessor.QueryResourcesContext
public abstract class DelegatingQueryResourcesContext extends java.lang.Object implements IStoreAccessor.QueryResourcesContext
If the meaning of this type isn't clear, there really should be more of a description here...- Since:
- 4.2
- Author:
- Eike Stepper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.server.IStoreAccessor.QueryResourcesContext
IStoreAccessor.QueryResourcesContext.ExactMatch
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchPoint
INVALID_DATE, UNSPECIFIED_DATE
-
-
Constructor Summary
Constructors Constructor Description DelegatingQueryResourcesContext()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
addResource(CDOID resourceID)
Adds the CDOID of one resource to the results of the underlying query.boolean
exactMatch()
CDOBranch
getBranch()
Returns the branch of this branch point, ornull
if this branch point is thebase
of themain branch
.protected abstract IStoreAccessor.QueryResourcesContext
getDelegate()
CDOID
getFolderID()
int
getMaxResults()
Returns the maximum number of results expected by the client orCDOQueryInfo.UNLIMITED_RESULTS
for no limitation.java.lang.String
getName()
long
getTimeStamp()
Returns the time stamp of this branch point, or the fixed special time stampunspecified
if this branch point marks thehead
of a branch.
-
-
-
Method Detail
-
getBranch
public CDOBranch getBranch()
Description copied from interface:CDOBranchPoint
Returns the branch of this branch point, ornull
if this branch point is thebase
of themain branch
.- Specified by:
getBranch
in interfaceCDOBranchPoint
- Specified by:
getBranch
in interfaceCDOBranchProvider
-
getTimeStamp
public long getTimeStamp()
Description copied from interface:CDOBranchPoint
Returns the time stamp of this branch point, or the fixed special time stampunspecified
if this branch point marks thehead
of a branch.- Specified by:
getTimeStamp
in interfaceCDOBranchPoint
- Specified by:
getTimeStamp
in interfaceCDOTimeProvider
-
getFolderID
public CDOID getFolderID()
- Specified by:
getFolderID
in interfaceIStoreAccessor.QueryResourcesContext
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceIStoreAccessor.QueryResourcesContext
-
exactMatch
public boolean exactMatch()
- Specified by:
exactMatch
in interfaceIStoreAccessor.QueryResourcesContext
-
getMaxResults
public int getMaxResults()
Description copied from interface:IStoreAccessor.QueryResourcesContext
Returns the maximum number of results expected by the client orCDOQueryInfo.UNLIMITED_RESULTS
for no limitation.- Specified by:
getMaxResults
in interfaceIStoreAccessor.QueryResourcesContext
-
addResource
public boolean addResource(CDOID resourceID)
Description copied from interface:IStoreAccessor.QueryResourcesContext
Adds the CDOID of one resource to the results of the underlying query.- Specified by:
addResource
in interfaceIStoreAccessor.QueryResourcesContext
- Returns:
true
to indicate that more results can be passed subsequently,false
otherwise (i.e. maxResults has been reached or an asynchronous query has been canceled).
-
getDelegate
protected abstract IStoreAccessor.QueryResourcesContext getDelegate()
-
-