From 0e16488ca8898de80b8e169d03a78c64a9e26816 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Fri, 28 Mar 2008 15:05:06 +0000 Subject: * Introduced base abstract provider class for GridData --- OpenSim/Framework/Data.MSSQL/MSSQLGridData.cs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'OpenSim/Framework/Data.MSSQL') diff --git a/OpenSim/Framework/Data.MSSQL/MSSQLGridData.cs b/OpenSim/Framework/Data.MSSQL/MSSQLGridData.cs index 5a0f3f5..9bd8acc 100644 --- a/OpenSim/Framework/Data.MSSQL/MSSQLGridData.cs +++ b/OpenSim/Framework/Data.MSSQL/MSSQLGridData.cs @@ -38,7 +38,7 @@ namespace OpenSim.Framework.Data.MSSQL /// /// A grid data interface for Microsoft SQL Server /// - public class MSSQLGridData : IGridData + public class MSSQLGridData : GridDataBase { private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); @@ -52,7 +52,7 @@ namespace OpenSim.Framework.Data.MSSQL /// /// Initialises the Grid Interface /// - public void Initialise() + override public void Initialise() { IniFile iniFile = new IniFile("mssql_connection.ini"); @@ -94,7 +94,7 @@ namespace OpenSim.Framework.Data.MSSQL /// /// Shuts down the grid interface /// - public void Close() + override public void Close() { database.Close(); } @@ -103,7 +103,7 @@ namespace OpenSim.Framework.Data.MSSQL /// Returns the storage system name /// /// A string containing the storage system name - public string getName() + override public string getName() { return "Sql OpenGridData"; } @@ -112,7 +112,7 @@ namespace OpenSim.Framework.Data.MSSQL /// Returns the storage system version /// /// A string containing the storage system version - public string getVersion() + override public string getVersion() { return "0.1"; } @@ -125,7 +125,7 @@ namespace OpenSim.Framework.Data.MSSQL /// maximum X coordinate /// maximum Y coordinate /// An array of region profiles - public RegionProfileData[] GetProfilesInRange(uint a, uint b, uint c, uint d) + override public RegionProfileData[] GetProfilesInRange(uint a, uint b, uint c, uint d) { return null; } @@ -135,7 +135,7 @@ namespace OpenSim.Framework.Data.MSSQL /// /// Region location handle /// Sim profile - public RegionProfileData GetProfileByHandle(ulong handle) + override public RegionProfileData GetProfileByHandle(ulong handle) { IDataReader reader = null; try @@ -166,7 +166,7 @@ namespace OpenSim.Framework.Data.MSSQL /// /// The region UUID /// The sim profile - public RegionProfileData GetProfileByLLUUID(LLUUID uuid) + override public RegionProfileData GetProfileByLLUUID(LLUUID uuid) { Dictionary param = new Dictionary(); param["uuid"] = uuid.ToString(); @@ -185,7 +185,7 @@ namespace OpenSim.Framework.Data.MSSQL /// /// The region name search query /// The sim profile - public RegionProfileData GetProfileByString(string regionName) + override public RegionProfileData GetProfileByString(string regionName) { if (regionName.Length > 2) { @@ -226,7 +226,7 @@ namespace OpenSim.Framework.Data.MSSQL /// /// The profile to add /// A dataresponse enum indicating success - public DataResponse AddProfile(RegionProfileData profile) + override public DataResponse AddProfile(RegionProfileData profile) { try { @@ -327,7 +327,7 @@ namespace OpenSim.Framework.Data.MSSQL /// The attempted regionHandle of the challenger /// The secret /// Whether the secret and regionhandle match the database entry for UUID - public bool AuthenticateSim(LLUUID uuid, ulong handle, string authkey) + override public bool AuthenticateSim(LLUUID uuid, ulong handle, string authkey) { bool throwHissyFit = false; // Should be true by 1.0 @@ -358,7 +358,7 @@ namespace OpenSim.Framework.Data.MSSQL return false; } - public ReservationData GetReservationAtPoint(uint x, uint y) + override public ReservationData GetReservationAtPoint(uint x, uint y) { return null; } -- cgit v1.1