aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorJohan Berntsson2008-03-26 02:49:35 +0000
committerJohan Berntsson2008-03-26 02:49:35 +0000
commit7fe243e3d4a35c1250343db048539c63c5d96680 (patch)
treee18a10e1ea8b7ef3ee630c9654eb2233d19c9b29 /OpenSim/Framework
parentRemoving redundant code (diff)
downloadopensim-SC_OLD-7fe243e3d4a35c1250343db048539c63c5d96680.zip
opensim-SC_OLD-7fe243e3d4a35c1250343db048539c63c5d96680.tar.gz
opensim-SC_OLD-7fe243e3d4a35c1250343db048539c63c5d96680.tar.bz2
opensim-SC_OLD-7fe243e3d4a35c1250343db048539c63c5d96680.tar.xz
Committed patch from Lulurun to fix Mantis 817. Thanks Lulurun
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs b/OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs
new file mode 100644
index 0000000..f7fd4c8
--- /dev/null
+++ b/OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs
@@ -0,0 +1,30 @@
1using System;
2using System.Collections.Generic;
3using OpenSim.Framework;
4using OpenSim.Framework.Data;
5using OpenSim.Framework.Data.Base;
6using OpenSim.Framework.Data.MySQLMapper;
7
8namespace OpenSim.Framework.Data.MapperFactory
9{
10 public class DataMapperFactory
11 {
12 public enum MAPPER_TYPE {
13 MYSQL,
14 };
15
16 public DataMapperFactory() {
17
18 }
19
20 static public BaseDatabaseConnector GetDataBaseMapper(MAPPER_TYPE type, string connectionString)
21 {
22 switch (type) {
23 case MAPPER_TYPE.MYSQL:
24 return new MySQLDatabaseMapper(connectionString);
25 default:
26 return null;
27 }
28 }
29 }
30}