org.eclipse.emf.emfstore.server.model.query
Interface ESRangeQuery<R extends ESRangeQuery<?>>

Type Parameters:
R - a ESRangeQuery subtype
All Superinterfaces:
ESHistoryQuery<R>
All Known Subinterfaces:
ESModelElementQuery
All Known Implementing Classes:
ESModelElementQueryImpl, ESRangeQueryImpl

public interface ESRangeQuery<R extends ESRangeQuery<?>>
extends ESHistoryQuery<R>

A query that selects multiple versions based on a configurable range.

Author:
wesendon, emueller

Field Summary
 
Fields inherited from interface org.eclipse.emf.emfstore.server.model.query.ESHistoryQuery
FACTORY
 
Method Summary
 int getLowerLimit()
           Returns the lower limit of the range query.
 int getUpperLimit()
           Returns the upper limit of the range query,
 boolean isIncludeIncoming()
           Whether the query should consider incoming versions.
 boolean isIncludeOutgoing()
           Whether the query should include outgoing versions.
 void setIncludeIncoming(boolean includeIncomingVersions)
           Determines whether the query should consider incoming versions.
 void setIncludeOutgoing(boolean includeOutgoingVersions)
           Determines whether the query should consider outgoing versions.
 void setLowerLimit(int lowerLimit)
           Sets the lower limit of the range query.
 void setUpperLimit(int upperLimit)
           Sets the upper limit of the range query.
 
Methods inherited from interface org.eclipse.emf.emfstore.server.model.query.ESHistoryQuery
getSource, isIncludeAllVersions, isIncludeChangePackages, setIncludeAllVersions, setIncludeChangePackages, setSource
 

Method Detail

getUpperLimit

int getUpperLimit()

Returns the upper limit of the range query,

The upper limit of a range query specifies how many versions after the source version will be considered by the query.

Returns:
the upper limit of the range

setUpperLimit

void setUpperLimit(int upperLimit)

Sets the upper limit of the range query.

The upper limit of a range query specifies how many versions after the source version will be considered by the query.

Parameters:
upperLimit - the upper limit of the query

getLowerLimit

int getLowerLimit()

Returns the lower limit of the range query.

The lower limit of a range query specifies how many versions ahead the source version will be considered by the query.

Returns:
the lower limit of the range

setLowerLimit

void setLowerLimit(int lowerLimit)

Sets the lower limit of the range query.

The lower limit of a range query specifies how many versions ahead the source version will be considered by the query.

Parameters:
lowerLimit - the lower limit of the query

setIncludeIncoming

void setIncludeIncoming(boolean includeIncomingVersions)

Determines whether the query should consider incoming versions.

Incoming versions are branches which have been merged into the source version of this query.

Parameters:
includeIncomingVersions - should be set to true, if incoming versions should be considered, false otherwise

isIncludeIncoming

boolean isIncludeIncoming()

Whether the query should consider incoming versions.

Incoming versions are branches which have been merged into the source version of this query.

Returns:
true, if the query includes incoming versions, false otherwise

setIncludeOutgoing

void setIncludeOutgoing(boolean includeOutgoingVersions)

Determines whether the query should consider outgoing versions.

Incoming versions are branches which have been merged into the source version of this query.

Parameters:
includeOutgoingVersions - should be set to true, if outgoing versions should be considered, false otherwise

isIncludeOutgoing

boolean isIncludeOutgoing()

Whether the query should include outgoing versions.

Outgoing versions are branches which were created from the source version of this query.

Returns:
true, if the query includes outgoing versions, false otherwise


Copyright © 2015. All Rights Reserved.