aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLGenericTableHandler.cs')
-rw-r--r--OpenSim/Data/MySQL/MySQLGenericTableHandler.cs14
1 files changed, 5 insertions, 9 deletions
diff --git a/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs b/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs
index 698bf52..b170dde 100644
--- a/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs
+++ b/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs
@@ -39,10 +39,6 @@ namespace OpenSim.Data.MySQL
39{ 39{
40 public class MySQLGenericTableHandler<T> : MySqlFramework where T: class, new() 40 public class MySQLGenericTableHandler<T> : MySqlFramework where T: class, new()
41 { 41 {
42 private static readonly ILog m_log =
43 LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
44
45
46 protected Dictionary<string, FieldInfo> m_Fields = 42 protected Dictionary<string, FieldInfo> m_Fields =
47 new Dictionary<string, FieldInfo>(); 43 new Dictionary<string, FieldInfo>();
48 44
@@ -99,12 +95,12 @@ namespace OpenSim.Data.MySQL
99 } 95 }
100 } 96 }
101 97
102 public T[] Get(string field, string key) 98 public virtual T[] Get(string field, string key)
103 { 99 {
104 return Get(new string[] { field }, new string[] { key }); 100 return Get(new string[] { field }, new string[] { key });
105 } 101 }
106 102
107 public T[] Get(string[] fields, string[] keys) 103 public virtual T[] Get(string[] fields, string[] keys)
108 { 104 {
109 if (fields.Length != keys.Length) 105 if (fields.Length != keys.Length)
110 return new T[0]; 106 return new T[0];
@@ -198,7 +194,7 @@ namespace OpenSim.Data.MySQL
198 return result.ToArray(); 194 return result.ToArray();
199 } 195 }
200 196
201 public T[] Get(string where) 197 public virtual T[] Get(string where)
202 { 198 {
203 using (MySqlCommand cmd = new MySqlCommand()) 199 using (MySqlCommand cmd = new MySqlCommand())
204 { 200 {
@@ -212,7 +208,7 @@ namespace OpenSim.Data.MySQL
212 } 208 }
213 } 209 }
214 210
215 public bool Store(T row) 211 public virtual bool Store(T row)
216 { 212 {
217 using (MySqlCommand cmd = new MySqlCommand()) 213 using (MySqlCommand cmd = new MySqlCommand())
218 { 214 {
@@ -252,7 +248,7 @@ namespace OpenSim.Data.MySQL
252 } 248 }
253 } 249 }
254 250
255 public bool Delete(string field, string val) 251 public virtual bool Delete(string field, string val)
256 { 252 {
257 using (MySqlCommand cmd = new MySqlCommand()) 253 using (MySqlCommand cmd = new MySqlCommand())
258 { 254 {