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.SQLite/SQLiteGridData.cs | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
(limited to 'OpenSim/Framework/Data.SQLite')
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteGridData.cs b/OpenSim/Framework/Data.SQLite/SQLiteGridData.cs
index 397ef82..94e8e50 100644
--- a/OpenSim/Framework/Data.SQLite/SQLiteGridData.cs
+++ b/OpenSim/Framework/Data.SQLite/SQLiteGridData.cs
@@ -37,7 +37,7 @@ namespace OpenSim.Framework.Data.SQLite
///
/// A Grid Interface to the SQLite database
///
- public class SQLiteGridData : IGridData
+ public class SQLiteGridData : GridDataBase
{
///
/// A database manager
@@ -47,7 +47,7 @@ namespace OpenSim.Framework.Data.SQLite
///
/// Initialises the Grid Interface
///
- public void Initialise()
+ override public void Initialise()
{
database = new SQLiteManager("localhost", "db", "user", "password", "false");
}
@@ -55,7 +55,7 @@ namespace OpenSim.Framework.Data.SQLite
///
/// Shuts down the grid interface
///
- public void Close()
+ override public void Close()
{
database.Close();
}
@@ -64,7 +64,7 @@ namespace OpenSim.Framework.Data.SQLite
/// Returns the name of this grid interface
///
/// A string containing the grid interface
- public string getName()
+ override public string getName()
{
return "SQLite OpenGridData";
}
@@ -73,7 +73,7 @@ namespace OpenSim.Framework.Data.SQLite
/// Returns the version of this grid interface
///
/// A string containing the version
- public string getVersion()
+ override public string getVersion()
{
return "0.1";
}
@@ -86,7 +86,7 @@ namespace OpenSim.Framework.Data.SQLite
/// 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;
}
@@ -96,7 +96,7 @@ namespace OpenSim.Framework.Data.SQLite
///
/// Region location handle
/// Sim profile
- public RegionProfileData GetProfileByHandle(ulong handle)
+ override public RegionProfileData GetProfileByHandle(ulong handle)
{
Dictionary param = new Dictionary();
param["handle"] = handle.ToString();
@@ -116,7 +116,7 @@ namespace OpenSim.Framework.Data.SQLite
///
/// The region name search query
/// The sim profile
- public RegionProfileData GetProfileByString(string regionName)
+ override public RegionProfileData GetProfileByString(string regionName)
{
if (regionName.Length > 2)
{
@@ -145,7 +145,7 @@ namespace OpenSim.Framework.Data.SQLite
///
/// 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();
@@ -175,7 +175,7 @@ namespace OpenSim.Framework.Data.SQLite
///
/// The profile to add
/// A dataresponse enum indicating success
- public DataResponse AddProfile(RegionProfileData profile)
+ override public DataResponse AddProfile(RegionProfileData profile)
{
if (database.insertRow(profile))
{
@@ -194,7 +194,7 @@ namespace OpenSim.Framework.Data.SQLite
/// 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
@@ -226,7 +226,7 @@ namespace OpenSim.Framework.Data.SQLite
return false;
}
- public ReservationData GetReservationAtPoint(uint x, uint y)
+ override public ReservationData GetReservationAtPoint(uint x, uint y)
{
return null;
}
--
cgit v1.1