#region License Information
/* HeuristicLab
* Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
*
* This file is part of HeuristicLab.
*
* HeuristicLab is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* HeuristicLab is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with HeuristicLab. If not, see .
*/
#endregion
using System.Data;
using System.Net.Security;
using System.ServiceModel;
namespace HeuristicLab.Services.OKB {
///
/// Service interface for downloading selected information about s.
///
[ServiceContract(SessionMode = SessionMode.Required, ProtectionLevel = ProtectionLevel.EncryptAndSign)]
public interface IQueryService {
///
/// Gets a list of all possible attribute selectors.
///
/// An array of s
[OperationContract(IsInitiating = true, IsTerminating = true)]
AttributeSelector[] GetAllAttributeSelectors();
///
/// Prepares the a query using the specified selection criteria.
///
/// The list of s.
/// An empty containing only the column headers.
[OperationContract(IsInitiating = true, IsTerminating = false)]
DataTable PrepareQuery(AttributeSelector[] selectors);
///
/// Gets the number of matching rows for the prepared query
/// (see ).
///
/// The number of matching rows.
[OperationContract(IsInitiating = false, IsTerminating = false)]
int GetCount();
///
/// Fetches the next rows for the
/// prepared query (see ).
///
/// The maximum number of rows to return.
/// A containing only the next
/// rows.
[OperationContract(IsInitiating = false, IsTerminating = false)]
DataTable GetNextRows(int nRows);
///
/// Terminates the session and closes the connection.
///
[OperationContract(IsInitiating = false, IsTerminating = true)]
void Terminate();
}
}