org.eclipse.emf.emfstore.server.model.query
Interface ESHistoryQueryFactory

All Superinterfaces:
ESFactory
All Known Implementing Classes:
HistoryQueryFactoryImpl

public interface ESHistoryQueryFactory
extends ESFactory

Factory for creating history queries.

Author:
wesendon, emueller

Method Summary
 ESModelElementQuery modelElementQuery(ESPrimaryVersionSpec source, ESModelElementId id, int upper, int lower, boolean allVersions, boolean includeChangePackages)
          Factory method for creating a ESModelElementQuery.
 ESModelElementQuery modelElementQuery(ESPrimaryVersionSpec source, List<ESModelElementId> modelElements, int upper, int lower, boolean allVersions, boolean includeChangePackages)
          Factory method for creating a ESModelElementQuery.
 ESPathQuery pathQuery(ESPrimaryVersionSpec source, ESPrimaryVersionSpec target, boolean allVersions, boolean includeChangePackages)
          Factory method for creating a ESPathQuery, which fetches all changes from source to target.
 ESRangeQuery<?> rangeQuery(ESPrimaryVersionSpec source, int upper, int lower, boolean allVersions, boolean incoming, boolean outgoing, boolean includeChangePackages)
          Factory method for creating a ESRangeQuery.
 

Method Detail

rangeQuery

ESRangeQuery<?> rangeQuery(ESPrimaryVersionSpec source,
                           int upper,
                           int lower,
                           boolean allVersions,
                           boolean incoming,
                           boolean outgoing,
                           boolean includeChangePackages)
Factory method for creating a ESRangeQuery.

Parameters:
source - the source version of the query
upper - the upper limit of the query
lower - the lower limit of the query
allVersions - whether to include all versions, from all branches
incoming - whether to include incoming versions, only if allVersions is set to false
outgoing - whether to include include outgoing versions
includeChangePackages - whether to include change packages
Returns:
query the constructed range query

pathQuery

ESPathQuery pathQuery(ESPrimaryVersionSpec source,
                      ESPrimaryVersionSpec target,
                      boolean allVersions,
                      boolean includeChangePackages)
Factory method for creating a ESPathQuery, which fetches all changes from source to target.

Parameters:
source - the source version of the query
target - the target version of the query
allVersions - whether to include all versions, from all branches
includeChangePackages - whether to include change packages
Returns:
query the constructed path query

modelElementQuery

ESModelElementQuery modelElementQuery(ESPrimaryVersionSpec source,
                                      List<ESModelElementId> modelElements,
                                      int upper,
                                      int lower,
                                      boolean allVersions,
                                      boolean includeChangePackages)
Factory method for creating a ESModelElementQuery.

Parameters:
source - the source version of the query
modelElements - a list containing the IDs of possibly multiple model elements
upper - the upper limit of the query
lower - the lower limit of the query
allVersions - include all versions, from all branches
includeChangePackages - whether to include change packages
Returns:
query the constructed model element query

modelElementQuery

ESModelElementQuery modelElementQuery(ESPrimaryVersionSpec source,
                                      ESModelElementId id,
                                      int upper,
                                      int lower,
                                      boolean allVersions,
                                      boolean includeChangePackages)
Factory method for creating a ESModelElementQuery.

Parameters:
source - the source version of the query
id - the ID of a model element
upper - the upper limit of the query
lower - the lower limit of the query
allVersions - whether to include all versions, from all branches
includeChangePackages - whether to include change packages
Returns:
query the constructed model element query


Copyright © 2015. All Rights Reserved.