org.eclipse.emf.emfstore.internal.server.model.versioning.util
Class HistoryQueryFactoryImpl

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.model.versioning.util.HistoryQueryFactoryImpl
All Implemented Interfaces:
ESFactory, ESHistoryQueryFactory

public final class HistoryQueryFactoryImpl
extends Object
implements ESHistoryQueryFactory

Factory for creating HistoryQueries.


Field Summary
static HistoryQueryFactoryImpl INSTANCE
          The instance.
 
Method Summary
 ESModelElementQuery modelElementQuery(ESPrimaryVersionSpec source, ESModelElementId id, int upper, int lower, boolean allVersions, boolean includeCp)
          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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final HistoryQueryFactoryImpl INSTANCE
The instance.

Method Detail

rangeQuery

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

Specified by:
rangeQuery in interface ESHistoryQueryFactory
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
See Also:
ESHistoryQueryFactory.rangeQuery(org.eclipse.emf.emfstore.server.model.versionspec.ESPrimaryVersionSpec, int, int, boolean, boolean, boolean, boolean)

pathQuery

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

Specified by:
pathQuery in interface ESHistoryQueryFactory
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
See Also:
ESHistoryQueryFactory.pathQuery(org.eclipse.emf.emfstore.server.model.versionspec.ESPrimaryVersionSpec, org.eclipse.emf.emfstore.server.model.versionspec.ESPrimaryVersionSpec, boolean, boolean)

modelElementQuery

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

Specified by:
modelElementQuery in interface ESHistoryQueryFactory
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
See Also:
ESHistoryQueryFactory.modelElementQuery(org.eclipse.emf.emfstore.server.model.versionspec.ESPrimaryVersionSpec, java.util.List, int, int, boolean, boolean)

modelElementQuery

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

Specified by:
modelElementQuery in interface ESHistoryQueryFactory
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
includeCp - whether to include change packages
Returns:
query the constructed model element query
See Also:
ESHistoryQueryFactory.modelElementQuery(org.eclipse.emf.emfstore.server.model.versionspec.ESPrimaryVersionSpec, org.eclipse.emf.emfstore.common.model.ESModelElementId, int, int, boolean, boolean)


Copyright © 2015. All Rights Reserved.