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 booleanaddResource(CDOID resourceID)Adds the CDOID of one resource to the results of the underlying query.booleanexactMatch()CDOBranchgetBranch()Returns the branch of this branch point, ornullif this branch point is thebaseof themain branch.protected abstract IStoreAccessor.QueryResourcesContextgetDelegate()CDOIDgetFolderID()intgetMaxResults()Returns the maximum number of results expected by the client orCDOQueryInfo.UNLIMITED_RESULTSfor no limitation.java.lang.StringgetName()longgetTimeStamp()Returns the time stamp of this branch point, or the fixed special time stampunspecifiedif this branch point marks theheadof a branch.
-
-
-
Method Detail
-
getBranch
public CDOBranch getBranch()
Description copied from interface:CDOBranchPointReturns the branch of this branch point, ornullif this branch point is thebaseof themain branch.- Specified by:
getBranchin interfaceCDOBranchPoint- Specified by:
getBranchin interfaceCDOBranchProvider
-
getTimeStamp
public long getTimeStamp()
Description copied from interface:CDOBranchPointReturns the time stamp of this branch point, or the fixed special time stampunspecifiedif this branch point marks theheadof a branch.- Specified by:
getTimeStampin interfaceCDOBranchPoint- Specified by:
getTimeStampin interfaceCDOTimeProvider
-
getFolderID
public CDOID getFolderID()
- Specified by:
getFolderIDin interfaceIStoreAccessor.QueryResourcesContext
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceIStoreAccessor.QueryResourcesContext
-
exactMatch
public boolean exactMatch()
- Specified by:
exactMatchin interfaceIStoreAccessor.QueryResourcesContext
-
getMaxResults
public int getMaxResults()
Description copied from interface:IStoreAccessor.QueryResourcesContextReturns the maximum number of results expected by the client orCDOQueryInfo.UNLIMITED_RESULTSfor no limitation.- Specified by:
getMaxResultsin interfaceIStoreAccessor.QueryResourcesContext
-
addResource
public boolean addResource(CDOID resourceID)
Description copied from interface:IStoreAccessor.QueryResourcesContextAdds the CDOID of one resource to the results of the underlying query.- Specified by:
addResourcein interfaceIStoreAccessor.QueryResourcesContext- Returns:
trueto indicate that more results can be passed subsequently,falseotherwise (i.e. maxResults has been reached or an asynchronous query has been canceled).
-
getDelegate
protected abstract IStoreAccessor.QueryResourcesContext getDelegate()
-
-