* Switching IAssetData to follow the new naming schema, removing the separate insert and update methods.

This commit is contained in:
Kunnis
2009-08-16 18:54:20 -05:00
committed by Melanie
parent c295354ea0
commit f1287cc7af
13 changed files with 73 additions and 95 deletions

View File

@@ -135,7 +135,7 @@ namespace OpenSim.Data.MySQL
/// <param name="assetID">Asset UUID to fetch</param>
/// <returns>Return the asset</returns>
/// <remarks>On failure : throw an exception and attempt to reconnect to database</remarks>
override protected AssetBase FetchStoredAsset(UUID assetID)
override public AssetBase GetAsset(UUID assetID)
{
AssetBase asset = null;
lock (_dbConnection)
@@ -192,7 +192,7 @@ namespace OpenSim.Data.MySQL
/// </summary>
/// <param name="asset">Asset UUID to create</param>
/// <remarks>On failure : Throw an exception and attempt to reconnect to database</remarks>
override public void CreateAsset(AssetBase asset)
override public void StoreAsset(AssetBase asset)
{
lock (_dbConnection)
{
@@ -284,15 +284,6 @@ namespace OpenSim.Data.MySQL
}
/// <summary>
/// Update a asset in database, see <see cref="CreateAsset"/>
/// </summary>
/// <param name="asset">Asset UUID to update</param>
override public void UpdateAsset(AssetBase asset)
{
CreateAsset(asset);
}
/// <summary>
/// check if the asset UUID exist in database
/// </summary>