From 14babaaeceded845f7dc88c03b145a43c799d47a Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 1 Jun 2007 23:53:02 +0000 Subject: * MS-SQL Interface is now well documented (and probably defunct) --- .../OpenGrid.Framework.Data.MSSQL/MSSQLGridData.cs | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) (limited to 'OpenGridServices/OpenGrid.Framework.Data.MSSQL/MSSQLGridData.cs') diff --git a/OpenGridServices/OpenGrid.Framework.Data.MSSQL/MSSQLGridData.cs b/OpenGridServices/OpenGrid.Framework.Data.MSSQL/MSSQLGridData.cs index 0925df1..8362a1d 100644 --- a/OpenGridServices/OpenGrid.Framework.Data.MSSQL/MSSQLGridData.cs +++ b/OpenGridServices/OpenGrid.Framework.Data.MSSQL/MSSQLGridData.cs @@ -1,3 +1,29 @@ +/* +* Copyright (c) OpenSim project, http://sim.opensecondlife.org/ +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* * Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* * Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* * Neither the name of the nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +*/ using System; using System.Collections.Generic; using System.Text; @@ -5,8 +31,14 @@ using OpenGrid.Framework.Data; namespace OpenGrid.Framework.Data.MSSQL { + /// + /// A grid data interface for Microsoft SQL Server + /// public class SqlGridData : IGridData { + /// + /// Database manager + /// private MSSqlManager database; /// @@ -25,16 +57,32 @@ namespace OpenGrid.Framework.Data.MSSQL database.Close(); } + /// + /// Returns the storage system name + /// + /// A string containing the storage system name public string getName() { return "Sql OpenGridData"; } + /// + /// Returns the storage system version + /// + /// A string containing the storage system version public string getVersion() { return "0.1"; } + /// + /// Returns a list of regions within the specified ranges + /// + /// minimum X coordinate + /// minimum Y coordinate + /// maximum X coordinate + /// maximum Y coordinate + /// An array of region profiles public SimProfileData[] GetProfilesInRange(uint a, uint b, uint c, uint d) { return null; @@ -80,6 +128,11 @@ namespace OpenGrid.Framework.Data.MSSQL return row; } + /// + /// Adds a new specified region to the database + /// + /// The profile to add + /// A dataresponse enum indicating success public DataResponse AddProfile(SimProfileData profile) { if (database.insertRow(profile)) -- cgit v1.1