OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Properties | List of all members
OpenSim.Data.SQLite.SQLiteAssetData Class Reference

An asset storage interface for the SQLite database system More...

Inheritance diagram for OpenSim.Data.SQLite.SQLiteAssetData:
Inheritance graph
[legend]
Collaboration diagram for OpenSim.Data.SQLite.SQLiteAssetData:
Collaboration graph
[legend]

Public Member Functions

override void Dispose ()
 
override void Initialise (string dbconnect)
 
  • Initialises AssetData interface
  • Loads and initialises a new SQLite connection and maintains it.
  • use default URI if connect string is empty.
More...
 
override AssetBase GetAsset (UUID uuid)
 Fetch Asset More...
 
override bool StoreAsset (AssetBase asset)
 Create an asset More...
 
override bool[] AssetsExist (UUID[] uuids)
 Check if the assets exist in the database. More...
 
override List< AssetMetadataFetchAssetMetadataSet (int start, int count)
 Returns a list of AssetMetadata objects. The list is a subset of the entire data set offset by start containing count elements. More...
 
override void Initialise ()
 Initialise the AssetData interface using default URI More...
 
bool DeleteAsset (UUID uuid)
 Delete an asset from database More...
 
override bool Delete (string id)
 

Properties

virtual Assembly Assembly [get]
 
override string Version [get]
 
override string Name [get]
 Name of this DB provider More...
 
- Properties inherited from OpenSim.Data.AssetDataBase
abstract string Version [get]
 
abstract string Name [get]
 
- Properties inherited from OpenSim.Framework.IPlugin
string Version [get]
 Returns the plugin version More...
 
string Name [get]
 Returns the plugin name More...
 

Detailed Description

An asset storage interface for the SQLite database system

Definition at line 47 of file SQLiteAssetData.cs.

Member Function Documentation

override bool [] OpenSim.Data.SQLite.SQLiteAssetData.AssetsExist ( UUID[]  uuids)
inlinevirtual

Check if the assets exist in the database.

Parameters
uuidsThe assets' IDs
Returns
For each asset: true if it exists, false otherwise

Implements OpenSim.Data.AssetDataBase.

Definition at line 223 of file SQLiteAssetData.cs.

override bool OpenSim.Data.SQLite.SQLiteAssetData.Delete ( string  id)
inlinevirtual

Implements OpenSim.Data.AssetDataBase.

Definition at line 394 of file SQLiteAssetData.cs.

bool OpenSim.Data.SQLite.SQLiteAssetData.DeleteAsset ( UUID  uuid)
inline

Delete an asset from database

Parameters
uuid

Definition at line 380 of file SQLiteAssetData.cs.

override void OpenSim.Data.SQLite.SQLiteAssetData.Dispose ( )
inlinevirtual

Implements OpenSim.Data.AssetDataBase.

Definition at line 65 of file SQLiteAssetData.cs.

override List<AssetMetadata> OpenSim.Data.SQLite.SQLiteAssetData.FetchAssetMetadataSet ( int  start,
int  count 
)
inlinevirtual

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

Parameters
startThe number of results to discard from the total data set.
countThe number of rows the returned list should contain.
Returns
A list of AssetMetadata objects.

Implements OpenSim.Data.AssetDataBase.

Definition at line 305 of file SQLiteAssetData.cs.

override AssetBase OpenSim.Data.SQLite.SQLiteAssetData.GetAsset ( UUID  uuid)
inlinevirtual

Fetch Asset

Parameters
uuidUUID of ... ?
Returns
Asset base

Implements OpenSim.Data.AssetDataBase.

Definition at line 105 of file SQLiteAssetData.cs.

override void OpenSim.Data.SQLite.SQLiteAssetData.Initialise ( string  dbconnect)
inlinevirtual

  • Initialises AssetData interface
  • Loads and initialises a new SQLite connection and maintains it.
  • use default URI if connect string is empty.

Parameters
dbconnectconnect string

Implements OpenSim.Data.AssetDataBase.

Definition at line 82 of file SQLiteAssetData.cs.

override void OpenSim.Data.SQLite.SQLiteAssetData.Initialise ( )
inlinevirtual

Initialise the AssetData interface using default URI

Implements OpenSim.Data.AssetDataBase.

Definition at line 361 of file SQLiteAssetData.cs.

override bool OpenSim.Data.SQLite.SQLiteAssetData.StoreAsset ( AssetBase  asset)
inlinevirtual

Create an asset

Parameters
assetAsset Base

Implements OpenSim.Data.AssetDataBase.

Definition at line 134 of file SQLiteAssetData.cs.

Property Documentation

virtual Assembly OpenSim.Data.SQLite.SQLiteAssetData.Assembly
getprotected

Definition at line 61 of file SQLiteAssetData.cs.

override string OpenSim.Data.SQLite.SQLiteAssetData.Name
get

Name of this DB provider

Definition at line 370 of file SQLiteAssetData.cs.

override string OpenSim.Data.SQLite.SQLiteAssetData.Version
get

Definition at line 345 of file SQLiteAssetData.cs.


The documentation for this class was generated from the following file: