blob: d9992f0cf52b9858e9167f3502e93fa0730e2eae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/***************************************************************************
* Copyright (c) 2004 - 2008 Eike Stepper, Germany.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Eike Stepper - initial API and implementation
**************************************************************************/
package org.eclipse.emf.cdo.server;
import org.eclipse.emf.cdo.common.CDOProtocolView;
/**
* @author Eike Stepper
* @since 2.0
*/
public interface IQueryContext
{
public IView getView();
/**
* The timeStamp of the view or ({@link CDOProtocolView#UNSPECIFIED_DATE} if the view is <b>not</b> an
* {@link CDOProtocolView.Type#AUDIT audit} view.
*/
public long getTimeStamp();
/**
* Adds the given object to the results of the associated query.
*
* @param object
* Support many primitives, CDOID and CDORevision. CDORevision are converted in CDOID and only CDOID are
* transfered to the client.
* @return <code>true</code> to indicate that more results can be passed subsequently, <code>false</code> otherwise
* (i.e. maxResults has been reached or an asynchronous query has been canceled).
*/
public boolean addResult(Object object);
}
|