diff options
Diffstat (limited to 'OpenSim/Data/MSSQL/MSSQLInventoryData.cs')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLInventoryData.cs | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs index 4a8d6e9..9e60b16 100644 --- a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs +++ b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs | |||
@@ -39,7 +39,7 @@ namespace OpenSim.Data.MSSQL | |||
39 | /// <summary> | 39 | /// <summary> |
40 | /// A MSSQL interface for the inventory server | 40 | /// A MSSQL interface for the inventory server |
41 | /// </summary> | 41 | /// </summary> |
42 | public class MSSQLInventoryData : IInventoryData | 42 | public class MSSQLInventoryData : IInventoryDataPlugin |
43 | { | 43 | { |
44 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 44 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
45 | 45 | ||
@@ -59,6 +59,12 @@ namespace OpenSim.Data.MSSQL | |||
59 | /// </summary> | 59 | /// </summary> |
60 | private MSSQLManager database; | 60 | private MSSQLManager database; |
61 | 61 | ||
62 | public void Initialise() | ||
63 | { | ||
64 | m_log.Info("[MSSQLInventoryData]: " + Name + " cannot be default-initialized!"); | ||
65 | throw new PluginNotInitialisedException (Name); | ||
66 | } | ||
67 | |||
62 | /// <summary> | 68 | /// <summary> |
63 | /// Loads and initialises the MSSQL inventory storage interface | 69 | /// Loads and initialises the MSSQL inventory storage interface |
64 | /// </summary> | 70 | /// </summary> |
@@ -134,15 +140,15 @@ namespace OpenSim.Data.MSSQL | |||
134 | /// The name of this DB provider | 140 | /// The name of this DB provider |
135 | /// </summary> | 141 | /// </summary> |
136 | /// <returns>A string containing the name of the DB provider</returns> | 142 | /// <returns>A string containing the name of the DB provider</returns> |
137 | public string getName() | 143 | public string Name |
138 | { | 144 | { |
139 | return "MSSQL Inventory Data Interface"; | 145 | get { return "MSSQL Inventory Data Interface"; } |
140 | } | 146 | } |
141 | 147 | ||
142 | /// <summary> | 148 | /// <summary> |
143 | /// Closes this DB provider | 149 | /// Closes this DB provider |
144 | /// </summary> | 150 | /// </summary> |
145 | public void Close() | 151 | public void Dispose() |
146 | { | 152 | { |
147 | // Do nothing. | 153 | // Do nothing. |
148 | } | 154 | } |
@@ -151,9 +157,9 @@ namespace OpenSim.Data.MSSQL | |||
151 | /// Returns the version of this DB provider | 157 | /// Returns the version of this DB provider |
152 | /// </summary> | 158 | /// </summary> |
153 | /// <returns>A string containing the DB provider</returns> | 159 | /// <returns>A string containing the DB provider</returns> |
154 | public string getVersion() | 160 | public string Version |
155 | { | 161 | { |
156 | return database.getVersion(); | 162 | get { return database.getVersion(); } |
157 | } | 163 | } |
158 | 164 | ||
159 | /// <summary> | 165 | /// <summary> |
@@ -681,7 +687,7 @@ namespace OpenSim.Data.MSSQL | |||
681 | folders.Add(f); | 687 | folders.Add(f); |
682 | } | 688 | } |
683 | 689 | ||
684 | // See IInventoryData | 690 | // See IInventoryDataPlugin |
685 | public List<InventoryFolderBase> getFolderHierarchy(LLUUID parentID) | 691 | public List<InventoryFolderBase> getFolderHierarchy(LLUUID parentID) |
686 | { | 692 | { |
687 | List<InventoryFolderBase> folders = new List<InventoryFolderBase>(); | 693 | List<InventoryFolderBase> folders = new List<InventoryFolderBase>(); |