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.
FACTORY| Constructor and Description |
|---|
ESPathQueryImpl(PathQuery pathQuery)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
equals, hashCode, toInternalAPIpublic ESPathQueryImpl(PathQuery pathQuery)
pathQuery - the delegatepublic ESPrimaryVersionSpec getSource()
ESPrimaryVersionSpec this history query is pointing to.getSource in interface ESHistoryQuery<ESPathQuery>ESHistoryQuery.getSource()public void setSource(ESPrimaryVersionSpec versionSpec)
setSource in interface ESHistoryQuery<ESPathQuery>versionSpec - the version specifier the history query should be pointing toESHistoryQuery.setSource(org.eclipse.emf.emfstore.server.model.versionspec.ESPrimaryVersionSpec)public void setIncludeChangePackages(boolean includeChangePackages)
ESChangePackages
are included in the query.setIncludeChangePackages in interface ESHistoryQuery<ESPathQuery>includeChangePackages - true, if change packages should be included in the query, false otherwiseESHistoryQuery.setIncludeChangePackages(boolean)public boolean isIncludeChangePackages()
ESChangePackages are included in the query.isIncludeChangePackages in interface ESHistoryQuery<ESPathQuery>true, if change packages are included in the query, false otherwiseESHistoryQuery.isIncludeChangePackages()public void setIncludeAllVersions(boolean includeAllVersion)
setIncludeAllVersions in interface ESHistoryQuery<ESPathQuery>includeAllVersion - true, if branches should be considered, false otherwiseESHistoryQuery.setIncludeAllVersions(boolean)public boolean isIncludeAllVersions()
isIncludeAllVersions in interface ESHistoryQuery<ESPathQuery>true, if branches are considered by the query, false otherwiseESHistoryQuery.isIncludeAllVersions()public ESPrimaryVersionSpec getTarget()
ESPrimaryVersionSpec.getTarget in interface ESPathQueryESPathQuery.getTarget()public void setTarget(ESPrimaryVersionSpec target)
ESPrimaryVersionSpec.setTarget in interface ESPathQuerytarget - the target version to be used by the queryESPathQuery.setTarget(org.eclipse.emf.emfstore.server.model.versionspec.ESPrimaryVersionSpec)Copyright © 2017. All rights reserved.