C# 클래스 OpenSim.Data.MySQL.MySQLAssetData

A MySQL Interface for the Asset Server
상속: AssetDataBase
파일 보기 프로젝트 열기: N3X15/VoxelSim

공개 메소드들

메소드 설명
Delete ( string id ) : bool
Dispose ( ) : void
ExistsAsset ( UUID uuid ) : bool

check if the asset UUID exist in 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 assetID from database

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

Initialise ( ) : void
Initialise ( string connect ) : void

Initialises Asset interface

Loads and initialises the MySQL storage plugin. Warns and uses the obsolete mysql_connection.ini if connect string is empty. Check for migration

StoreAsset ( OpenSim.Framework.AssetBase asset ) : void

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

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

비공개 메소드들

메소드 설명
UpdateAccessTime ( OpenSim.Framework.AssetBase asset ) : void

메소드 상세

Delete() 공개 메소드

public Delete ( string id ) : bool
id string
리턴 bool

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

ExistsAsset() 공개 메소드

check if the asset UUID exist in database
public ExistsAsset ( UUID uuid ) : bool
uuid UUID The asset UUID
리턴 bool

FetchAssetMetadataSet() 공개 메소드

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.
리턴 List

GetAsset() 공개 메소드

Fetch Asset assetID from database
On failure : throw an exception and attempt to reconnect to database
public GetAsset ( UUID assetID ) : OpenSim.Framework.AssetBase
assetID UUID Asset UUID to fetch
리턴 OpenSim.Framework.AssetBase

Initialise() 공개 메소드

public Initialise ( ) : void
리턴 void

Initialise() 공개 메소드

Initialises Asset interface

Loads and initialises the MySQL storage plugin. Warns and uses the obsolete mysql_connection.ini if connect string is empty. Check for migration

public Initialise ( string connect ) : void
connect string connect string
리턴 void

StoreAsset() 공개 메소드

Create an asset in database, or update it if existing.
On failure : Throw an exception and attempt to reconnect to database
public StoreAsset ( OpenSim.Framework.AssetBase asset ) : void
asset OpenSim.Framework.AssetBase Asset UUID to create
리턴 void