OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Properties | List of all members
OpenSim.Data.PGSQL.PGSQLXAssetData Class Reference
Inheritance diagram for OpenSim.Data.PGSQL.PGSQLXAssetData:
Inheritance graph
[legend]
Collaboration diagram for OpenSim.Data.PGSQL.PGSQLXAssetData:
Collaboration graph
[legend]

Public Member Functions

void Initialise (string connect)
 
void Initialise ()
 Default-initialises the plugin More...
 
void Dispose ()
 
AssetBase GetAsset (UUID assetID)
 Fetch Asset assetID from database More...
 
void StoreAsset (AssetBase asset)
 Create an asset in database, or update it if existing. More...
 
bool[] AssetsExist (UUID[] uuids)
 Check if the assets exist in the database. More...
 
bool ExistsAsset (UUID uuid)
 Check if the asset exists in the database More...
 
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...
 
bool Delete (string id)
 

Properties

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

Detailed Description

Definition at line 44 of file PGSQLXAssetData.cs.

Member Function Documentation

bool [] OpenSim.Data.PGSQL.PGSQLXAssetData.AssetsExist ( UUID[]  uuids)
inline

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.IXAssetDataPlugin.

Definition at line 429 of file PGSQLXAssetData.cs.

bool OpenSim.Data.PGSQL.PGSQLXAssetData.Delete ( string  id)
inline

Implements OpenSim.Data.IXAssetDataPlugin.

Definition at line 561 of file PGSQLXAssetData.cs.

void OpenSim.Data.PGSQL.PGSQLXAssetData.Dispose ( )
inline

Definition at line 111 of file PGSQLXAssetData.cs.

bool OpenSim.Data.PGSQL.PGSQLXAssetData.ExistsAsset ( UUID  uuid)
inline

Check if the asset exists in the database

Parameters
uuidThe asset UUID
Returns
true if it exists, false otherwise.

Definition at line 466 of file PGSQLXAssetData.cs.

List<AssetMetadata> OpenSim.Data.PGSQL.PGSQLXAssetData.FetchAssetMetadataSet ( int  start,
int  count 
)
inline

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.IXAssetDataPlugin.

Definition at line 512 of file PGSQLXAssetData.cs.

AssetBase OpenSim.Data.PGSQL.PGSQLXAssetData.GetAsset ( UUID  assetID)
inline

Fetch Asset assetID from database

Parameters
assetIDAsset UUID to fetch
Returns
Return the asset

On failure : throw an exception and attempt to reconnect to database

Implements OpenSim.Data.IXAssetDataPlugin.

Definition at line 131 of file PGSQLXAssetData.cs.

void OpenSim.Data.PGSQL.PGSQLXAssetData.Initialise ( string  connect)
inline

Initialises Asset interface

  • Loads and initialises the PGSQL storage plugin.
  • Warns and uses the obsolete pgsql_connection.ini if connect string is empty.
  • Check for migration
Parameters
connectconnect string

Implements OpenSim.Data.IXAssetDataPlugin.

Definition at line 83 of file PGSQLXAssetData.cs.

void OpenSim.Data.PGSQL.PGSQLXAssetData.Initialise ( )
inline

Default-initialises the plugin

Implements OpenSim.Framework.IPlugin.

Definition at line 106 of file PGSQLXAssetData.cs.

void OpenSim.Data.PGSQL.PGSQLXAssetData.StoreAsset ( AssetBase  asset)
inline

Create an asset in database, or update it if existing.

Parameters
assetAsset UUID to create

On failure : Throw an exception and attempt to reconnect to database

Implements OpenSim.Data.IXAssetDataPlugin.

Definition at line 209 of file PGSQLXAssetData.cs.

Property Documentation

virtual Assembly OpenSim.Data.PGSQL.PGSQLXAssetData.Assembly
getprotected

Definition at line 49 of file PGSQLXAssetData.cs.

string OpenSim.Data.PGSQL.PGSQLXAssetData.Name
get

The name of this DB provider

Definition at line 117 of file PGSQLXAssetData.cs.

string OpenSim.Data.PGSQL.PGSQLXAssetData.Version
get

Definition at line 70 of file PGSQLXAssetData.cs.


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