diff options
author | Sean Dague | 2008-05-02 12:35:24 +0000 |
---|---|---|
committer | Sean Dague | 2008-05-02 12:35:24 +0000 |
commit | 4a8f43244160ca9324cc43a54ba64a51e10268bf (patch) | |
tree | 5035f70e843c1a6594193e0cd7db1c1d57b83528 /OpenSim/Data | |
parent | Minor formatting and documentation cleanup. (diff) | |
download | opensim-SC_OLD-4a8f43244160ca9324cc43a54ba64a51e10268bf.zip opensim-SC_OLD-4a8f43244160ca9324cc43a54ba64a51e10268bf.tar.gz opensim-SC_OLD-4a8f43244160ca9324cc43a54ba64a51e10268bf.tar.bz2 opensim-SC_OLD-4a8f43244160ca9324cc43a54ba64a51e10268bf.tar.xz |
minor refactoring. Change getName and GetVersion methods (yes the had different casings)
to Name and Version properties for the User stores.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLUserData.cs | 8 | ||||
-rw-r--r-- | OpenSim/Data/MySQL/MySQLUserData.cs | 8 | ||||
-rw-r--r-- | OpenSim/Data/NHibernate/NHibernateUserData.cs | 15 | ||||
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteUserData.cs | 8 | ||||
-rw-r--r-- | OpenSim/Data/UserDataBase.cs | 4 |
5 files changed, 16 insertions, 27 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLUserData.cs b/OpenSim/Data/MSSQL/MSSQLUserData.cs index 91c1b34..a4c5068 100644 --- a/OpenSim/Data/MSSQL/MSSQLUserData.cs +++ b/OpenSim/Data/MSSQL/MSSQLUserData.cs | |||
@@ -775,18 +775,18 @@ namespace OpenSim.Data.MSSQL | |||
775 | /// Database provider name | 775 | /// Database provider name |
776 | /// </summary> | 776 | /// </summary> |
777 | /// <returns>Provider name</returns> | 777 | /// <returns>Provider name</returns> |
778 | override public string getName() | 778 | override public string Name |
779 | { | 779 | { |
780 | return "MSSQL Userdata Interface"; | 780 | get {return "MSSQL Userdata Interface";} |
781 | } | 781 | } |
782 | 782 | ||
783 | /// <summary> | 783 | /// <summary> |
784 | /// Database provider version | 784 | /// Database provider version |
785 | /// </summary> | 785 | /// </summary> |
786 | /// <returns>provider version</returns> | 786 | /// <returns>provider version</returns> |
787 | override public string GetVersion() | 787 | override public string Version |
788 | { | 788 | { |
789 | return database.getVersion(); | 789 | get {return database.getVersion();} |
790 | } | 790 | } |
791 | 791 | ||
792 | /// <summary> | 792 | /// <summary> |
diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs index a01bf60..c374bf2 100644 --- a/OpenSim/Data/MySQL/MySQLUserData.cs +++ b/OpenSim/Data/MySQL/MySQLUserData.cs | |||
@@ -659,18 +659,18 @@ namespace OpenSim.Data.MySQL | |||
659 | /// Database provider name | 659 | /// Database provider name |
660 | /// </summary> | 660 | /// </summary> |
661 | /// <returns>Provider name</returns> | 661 | /// <returns>Provider name</returns> |
662 | override public string getName() | 662 | override public string Name |
663 | { | 663 | { |
664 | return "MySQL Userdata Interface"; | 664 | get {return "MySQL Userdata Interface";} |
665 | } | 665 | } |
666 | 666 | ||
667 | /// <summary> | 667 | /// <summary> |
668 | /// Database provider version | 668 | /// Database provider version |
669 | /// </summary> | 669 | /// </summary> |
670 | /// <returns>provider version</returns> | 670 | /// <returns>provider version</returns> |
671 | override public string GetVersion() | 671 | override public string Version |
672 | { | 672 | { |
673 | return "0.1"; | 673 | get {return "0.1";} |
674 | } | 674 | } |
675 | } | 675 | } |
676 | } | 676 | } |
diff --git a/OpenSim/Data/NHibernate/NHibernateUserData.cs b/OpenSim/Data/NHibernate/NHibernateUserData.cs index f142ce9..2e55e03 100644 --- a/OpenSim/Data/NHibernate/NHibernateUserData.cs +++ b/OpenSim/Data/NHibernate/NHibernateUserData.cs | |||
@@ -265,22 +265,11 @@ namespace OpenSim.Data.NHibernate | |||
265 | return new List<LLUUID>(); | 265 | return new List<LLUUID>(); |
266 | } | 266 | } |
267 | 267 | ||
268 | 268 | public override string Name { | |
269 | public override string getName() | ||
270 | { | ||
271 | return Name; | ||
272 | } | ||
273 | |||
274 | public string Name { | ||
275 | get { return "NHibernate"; } | 269 | get { return "NHibernate"; } |
276 | } | 270 | } |
277 | 271 | ||
278 | public override string GetVersion() | 272 | public override string Version { |
279 | { | ||
280 | return Version; | ||
281 | } | ||
282 | |||
283 | public string Version { | ||
284 | get { return "0.1"; } | 273 | get { return "0.1"; } |
285 | } | 274 | } |
286 | 275 | ||
diff --git a/OpenSim/Data/SQLite/SQLiteUserData.cs b/OpenSim/Data/SQLite/SQLiteUserData.cs index 90dec3e..bca5401 100644 --- a/OpenSim/Data/SQLite/SQLiteUserData.cs +++ b/OpenSim/Data/SQLite/SQLiteUserData.cs | |||
@@ -505,18 +505,18 @@ namespace OpenSim.Data.SQLite | |||
505 | /// Returns the name of the storage provider | 505 | /// Returns the name of the storage provider |
506 | /// </summary> | 506 | /// </summary> |
507 | /// <returns>Storage provider name</returns> | 507 | /// <returns>Storage provider name</returns> |
508 | override public string getName() | 508 | override public string Name |
509 | { | 509 | { |
510 | return "Sqlite Userdata"; | 510 | get {return "Sqlite Userdata";} |
511 | } | 511 | } |
512 | 512 | ||
513 | /// <summary> | 513 | /// <summary> |
514 | /// Returns the version of the storage provider | 514 | /// Returns the version of the storage provider |
515 | /// </summary> | 515 | /// </summary> |
516 | /// <returns>Storage provider version</returns> | 516 | /// <returns>Storage provider version</returns> |
517 | override public string GetVersion() | 517 | override public string Version |
518 | { | 518 | { |
519 | return "0.1"; | 519 | get {return "0.1";} |
520 | } | 520 | } |
521 | 521 | ||
522 | /*********************************************************************** | 522 | /*********************************************************************** |
diff --git a/OpenSim/Data/UserDataBase.cs b/OpenSim/Data/UserDataBase.cs index 84ff9b3..fc33376 100644 --- a/OpenSim/Data/UserDataBase.cs +++ b/OpenSim/Data/UserDataBase.cs | |||
@@ -49,8 +49,8 @@ namespace OpenSim.Data | |||
49 | public abstract List<FriendListItem> GetUserFriendList(LLUUID friendlistowner); | 49 | public abstract List<FriendListItem> GetUserFriendList(LLUUID friendlistowner); |
50 | public abstract bool MoneyTransferRequest(LLUUID from, LLUUID to, uint amount); | 50 | public abstract bool MoneyTransferRequest(LLUUID from, LLUUID to, uint amount); |
51 | public abstract bool InventoryTransferRequest(LLUUID from, LLUUID to, LLUUID inventory); | 51 | public abstract bool InventoryTransferRequest(LLUUID from, LLUUID to, LLUUID inventory); |
52 | public abstract string GetVersion(); | 52 | public abstract string Version {get;} |
53 | public abstract string getName(); | 53 | public abstract string Name {get;} |
54 | public abstract void Initialise(); | 54 | public abstract void Initialise(); |
55 | public abstract List<AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query); | 55 | public abstract List<AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query); |
56 | public abstract UserAppearance GetUserAppearance(LLUUID user); | 56 | public abstract UserAppearance GetUserAppearance(LLUUID user); |