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.MySQL/MySQLGridData.cs | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
(limited to 'OpenSim/Framework/Data.MySQL/MySQLGridData.cs')
diff --git a/OpenSim/Framework/Data.MySQL/MySQLGridData.cs b/OpenSim/Framework/Data.MySQL/MySQLGridData.cs
index 0cba9f0..61ab067 100644
--- a/OpenSim/Framework/Data.MySQL/MySQLGridData.cs
+++ b/OpenSim/Framework/Data.MySQL/MySQLGridData.cs
@@ -39,7 +39,7 @@ namespace OpenSim.Framework.Data.MySQL
///
/// A MySQL Interface for the Grid Server
///
- public class MySQLGridData : IGridData
+ public class MySQLGridData : GridDataBase
{
private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
@@ -51,7 +51,7 @@ namespace OpenSim.Framework.Data.MySQL
///
/// Initialises the Grid Interface
///
- public void Initialise()
+ override public void Initialise()
{
IniFile GridDataMySqlFile = new IniFile("mysql_connection.ini");
string settingHostname = GridDataMySqlFile.ParseFileReadValue("hostname");
@@ -113,7 +113,7 @@ namespace OpenSim.Framework.Data.MySQL
///
/// Shuts down the grid interface
///
- public void Close()
+ override public void Close()
{
database.Close();
}
@@ -122,7 +122,7 @@ namespace OpenSim.Framework.Data.MySQL
/// Returns the plugin name
///
/// Plugin name
- public string getName()
+ override public string getName()
{
return "MySql OpenGridData";
}
@@ -131,7 +131,7 @@ namespace OpenSim.Framework.Data.MySQL
/// Returns the plugin version
///
/// Plugin version
- public string getVersion()
+ override public string getVersion()
{
return "0.1";
}
@@ -144,7 +144,7 @@ namespace OpenSim.Framework.Data.MySQL
/// Maximum X coordinate
/// Maximum Y coordinate
///
- public RegionProfileData[] GetProfilesInRange(uint xmin, uint ymin, uint xmax, uint ymax)
+ override public RegionProfileData[] GetProfilesInRange(uint xmin, uint ymin, uint xmax, uint ymax)
{
try
{
@@ -189,7 +189,7 @@ namespace OpenSim.Framework.Data.MySQL
///
/// Region location handle
/// Sim profile
- public RegionProfileData GetProfileByHandle(ulong handle)
+ override public RegionProfileData GetProfileByHandle(ulong handle)
{
try
{
@@ -221,7 +221,7 @@ namespace OpenSim.Framework.Data.MySQL
///
/// The region UUID
/// The sim profile
- public RegionProfileData GetProfileByLLUUID(LLUUID uuid)
+ override public RegionProfileData GetProfileByLLUUID(LLUUID uuid)
{
try
{
@@ -253,7 +253,7 @@ namespace OpenSim.Framework.Data.MySQL
///
/// The region name search query
/// The sim profile
- public RegionProfileData GetProfileByString(string regionName)
+ override public RegionProfileData GetProfileByString(string regionName)
{
if (regionName.Length > 2)
{
@@ -294,7 +294,7 @@ namespace OpenSim.Framework.Data.MySQL
///
/// The profile to add
/// Successful?
- public DataResponse AddProfile(RegionProfileData profile)
+ override public DataResponse AddProfile(RegionProfileData profile)
{
lock (database)
{
@@ -337,7 +337,7 @@ namespace OpenSim.Framework.Data.MySQL
/// 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
@@ -369,7 +369,7 @@ namespace OpenSim.Framework.Data.MySQL
return false;
}
- public ReservationData GetReservationAtPoint(uint x, uint y)
+ override public ReservationData GetReservationAtPoint(uint x, uint y)
{
try
{
--
cgit v1.1