using DbAPI.Connections;
using DTS.Common.Interface.Database;
using DTS.Common.Interface.TestSetups;
namespace DbAPI.TestSetups
{
///
/// defines functions to create, retrieve, update, delete graphs
///
public interface IRegionsOfInterest
{
///
/// Removes records from the TestSetupROIs and ROIPeriodChannels tables
///
///
///
/// The value that matches the Primary key of the TestSetups table
///
ulong RegionsOfInterestDelete(IUserDbRecord user,
IConnectionDetails connection,
int testSetupId);
///
/// Inserts records into the TestSetupROIs and ROIPeriodChannels tables
///
///
///
/// The value that matches the Primary key of the TestSetups table
/// The class that is split between the TestSetupROIs and ROIPeriodChannels tables
///
ulong RegionsOfInterestInsert(IUserDbRecord user,
IConnectionDetails connection,
int clientDbVersion,
int testSetupId,
DTS.Common.Interface.RegionOfInterest.IRegionOfInterest regionOfInterest);
///
/// Gets records from the TestSetupROIs and ROIPeriodChannels tables
///
///
///
/// The value that matches the Primary key of the TestSetups table
/// The array of records combined from the TetSetupROIs and ROIPeriodChannels tables
///
ulong RegionsOfInterestGet(IUserDbRecord user,
IConnectionDetails connection,
int clientDbVersion,
int testSetupId,
out DTS.Common.Interface.RegionOfInterest.IRegionOfInterest[] records);
ulong TestSetupROIsDelete(IUserDbRecord user,
IConnectionDetails connection,
int testSetupId);
ulong TestSetupROIsInsert(IUserDbRecord user,
IConnectionDetails connection,
int testSetupId,
DTS.Common.Interface.RegionOfInterest.IRegionOfInterest regionOfInterest,
out int testSetupROIId);
ulong TestSetupROIsGet(IUserDbRecord user,
IConnectionDetails connection,
int testSetupId,
out ITestSetupROIRecord[] records);
ulong ROIPeriodChannelsInsert(IUserDbRecord user,
IConnectionDetails connection,
int clientDbVersion,
int testSetupROIId,
string channelName,
long channelId);
ulong ROIPeriodChannelsGet(IUserDbRecord user,
IConnectionDetails connection,
int clientDbVersion,
int testSetupROIId,
out IROIPeriodChannelRecord[] roiPeriodChannelRecords);
}
}