C# Class OpenSim.Data.MSSQL.MSSQLAssetData

A MSSQL Interface for the Asset server
Inheritance: AssetDataBase
Exibir arquivo Open project: mcortez/opensim

Public Methods

Method Description
Delete ( string id ) : bool
Dispose ( ) : void
ExistsAsset ( UUID uuid ) : bool

Check if asset exist in m_database

FetchAssetMetadataSet ( int start, int count ) : List

Returns a list of AssetMetadata objects. The list is a subset of the entire data set offset by start containing count elements.

GetAsset ( UUID assetID ) : OpenSim.Framework.AssetBase

Fetch Asset from m_database

Initialise ( ) : void

Initialises asset interface

Initialise ( string connectionString ) : void

Initialises asset interface

StoreAsset ( OpenSim.Framework.AssetBase asset ) : void

Create asset in m_database

Private Methods

Method Description
InsertAsset ( OpenSim.Framework.AssetBase asset ) : void
UpdateAsset ( OpenSim.Framework.AssetBase asset ) : void

Update asset in m_database

Method Details

Delete() public method

public Delete ( string id ) : bool
id string
return bool

Dispose() public method

public Dispose ( ) : void
return void

ExistsAsset() public method

Check if asset exist in m_database
public ExistsAsset ( UUID uuid ) : bool
uuid UUID
return bool

FetchAssetMetadataSet() public method

Returns a list of AssetMetadata objects. The list is a subset of the entire data set offset by start containing count elements.
public FetchAssetMetadataSet ( int start, int count ) : List
start int The number of results to discard from the total data set.
count int The number of rows the returned list should contain.
return List

GetAsset() public method

Fetch Asset from m_database
public GetAsset ( UUID assetID ) : OpenSim.Framework.AssetBase
assetID UUID the asset UUID
return OpenSim.Framework.AssetBase

Initialise() public method

Initialises asset interface

public Initialise ( ) : void
return void

Initialise() public method

Initialises asset interface
public Initialise ( string connectionString ) : void
connectionString string connect string
return void

StoreAsset() public method

Create asset in m_database
public StoreAsset ( OpenSim.Framework.AssetBase asset ) : void
asset OpenSim.Framework.AssetBase the asset
return void