org.eclipse.emf.emfstore.internal.server.model.impl.api.query
Class ESPathQueryImpl

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl<U,T>
      extended by org.eclipse.emf.emfstore.internal.server.model.impl.api.query.ESHistoryQueryImpl<ESPathQuery,PathQuery>
          extended by org.eclipse.emf.emfstore.internal.server.model.impl.api.query.ESPathQueryImpl
All Implemented Interfaces:
InternalAPIDelegator<ESPathQuery,PathQuery>, ESHistoryQuery<ESPathQuery>, ESPathQuery

public class ESPathQueryImpl
extends ESHistoryQueryImpl<ESPathQuery,PathQuery>
implements ESPathQuery

Mapping between ESPathQuery and PathQuery.

A path query additionally considers a target version beside the source version, i.e. it is possible to specify a version range.

Author:
wesendon, emueller

Field Summary
 
Fields inherited from interface org.eclipse.emf.emfstore.server.model.query.ESHistoryQuery
FACTORY
 
Constructor Summary
ESPathQueryImpl(PathQuery pathQuery)
          Constructor.
 
Method Summary
 ESPrimaryVersionSpec getSource()
          Returns the ESPrimaryVersionSpec this history query is pointing to.
 ESPrimaryVersionSpec getTarget()
          Returns the target ESPrimaryVersionSpec.
 boolean isIncludeAllVersions()
          Whether the include all versions, i.e.
 boolean isIncludeChangePackages()
          Whether ESChangePackages are included in the query.
 void setIncludeAllVersions(boolean includeAllVersion)
          Determines whether to include all versions, i.e.
 void setIncludeChangePackages(boolean includeChangePackages)
          Determines whether ESChangePackages are included in the query.
 void setSource(ESPrimaryVersionSpec versionSpec)
          Sets the version specifier this history query should be pointing to.
 void setTarget(ESPrimaryVersionSpec target)
          Sets the target ESPrimaryVersionSpec.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl
equals, hashCode, toInternalAPI
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESPathQueryImpl

public ESPathQueryImpl(PathQuery pathQuery)
Constructor.

Parameters:
pathQuery - the delegate
Method Detail

getSource

public ESPrimaryVersionSpec getSource()
Returns the ESPrimaryVersionSpec this history query is pointing to.

Specified by:
getSource in interface ESHistoryQuery<ESPathQuery>
Returns:
the version specifier this history query points to
See Also:
ESHistoryQuery.getSource()

setSource

public void setSource(ESPrimaryVersionSpec versionSpec)
Sets the version specifier this history query should be pointing to.

Specified by:
setSource in interface ESHistoryQuery<ESPathQuery>
Parameters:
versionSpec - the version specifier the history query should be pointing to
See Also:
ESHistoryQuery.setSource(org.eclipse.emf.emfstore.server.model.versionspec.ESPrimaryVersionSpec)

setIncludeChangePackages

public void setIncludeChangePackages(boolean includeChangePackages)
Determines whether ESChangePackages are included in the query.

Specified by:
setIncludeChangePackages in interface ESHistoryQuery<ESPathQuery>
Parameters:
includeChangePackages - true, if change packages should be included in the query, false otherwise
See Also:
ESHistoryQuery.setIncludeChangePackages(boolean)

isIncludeChangePackages

public boolean isIncludeChangePackages()
Whether ESChangePackages are included in the query.

Specified by:
isIncludeChangePackages in interface ESHistoryQuery<ESPathQuery>
Returns:
true, if change packages are included in the query, false otherwise
See Also:
ESHistoryQuery.isIncludeChangePackages()

setIncludeAllVersions

public void setIncludeAllVersions(boolean includeAllVersion)
Determines whether to include all versions, i.e. whether branches should be considered by the history query.

Specified by:
setIncludeAllVersions in interface ESHistoryQuery<ESPathQuery>
Parameters:
includeAllVersion - true, if branches should be considered, false otherwise
See Also:
ESHistoryQuery.setIncludeAllVersions(boolean)

isIncludeAllVersions

public boolean isIncludeAllVersions()
Whether the include all versions, i.e. whether branches should be considered by the history query.

Specified by:
isIncludeAllVersions in interface ESHistoryQuery<ESPathQuery>
Returns:
true, if branches are considered by the query, false otherwise
See Also:
ESHistoryQuery.isIncludeAllVersions()

getTarget

public ESPrimaryVersionSpec getTarget()
Returns the target ESPrimaryVersionSpec.

Specified by:
getTarget in interface ESPathQuery
Returns:
the target version
See Also:
ESPathQuery.getTarget()

setTarget

public void setTarget(ESPrimaryVersionSpec target)
Sets the target ESPrimaryVersionSpec.

Specified by:
setTarget in interface ESPathQuery
Parameters:
target - the target version to be used by the query
See Also:
ESPathQuery.setTarget(org.eclipse.emf.emfstore.server.model.versionspec.ESPrimaryVersionSpec)


Copyright © 2015. All Rights Reserved.