C# 클래스 DSShared.DB.DBTableTypeCache

Singleton class to keep track of open database tables. This is done as an optimization for when we keep an entire table in memory - usually ones that dont change much (flags) so that we dont have to continually pull the same table information from the access database file.
파일 보기 프로젝트 열기: pmprog/OpenXCOM.Tools

공개 메소드들

메소드 설명
CacheHash ( string table, Hashtable hash ) : void

Caches a table using the table parameter as a key

CacheList ( string table, ArrayList list ) : void

Caches an arraylist using the table parameter as a key

CacheTable ( string table ) : DBTableType

Caches a table given its table name. The table must have been registered before calling this or an exception will be raised If the object associated with the table name has not been created yet, it will be created and stored for future use

CacheTable ( DBTableType dbType ) : void

Caches a table given its object

GetHash ( string table ) : Hashtable

A cached database table stored as a hashtable. The keys are determined by autonumber properties that are tagged as such by the objects stored in the table

GetList ( string table ) : ArrayList

A cached database table stored as an array list

GetTableType ( string table ) : Type

Returns the type that has been registered with the table name

GetType ( string table ) : DBTableType

returns a DBTableType object based on the name of the table you have previously cached

RegisterNameType ( string table, Type type ) : void

Sets up a database table with an object type for future cache'ing

비공개 메소드들

메소드 설명
DBTableTypeCache ( ) : System

메소드 상세

CacheHash() 공개 메소드

Caches a table using the table parameter as a key
public CacheHash ( string table, Hashtable hash ) : void
table string Name of the table
hash System.Collections.Hashtable Hashtable of row information
리턴 void

CacheList() 공개 메소드

Caches an arraylist using the table parameter as a key
public CacheList ( string table, ArrayList list ) : void
table string Name of the table
list System.Collections.ArrayList list of row information
리턴 void

CacheTable() 공개 메소드

Caches a table given its table name. The table must have been registered before calling this or an exception will be raised If the object associated with the table name has not been created yet, it will be created and stored for future use
public CacheTable ( string table ) : DBTableType
table string Name of the table you wish to access
리턴 DBTableType

CacheTable() 공개 메소드

Caches a table given its object
public CacheTable ( DBTableType dbType ) : void
dbType DBTableType DBTableType to cache
리턴 void

GetHash() 공개 메소드

A cached database table stored as a hashtable. The keys are determined by autonumber properties that are tagged as such by the objects stored in the table
public GetHash ( string table ) : Hashtable
table string Name of the table
리턴 System.Collections.Hashtable

GetList() 공개 메소드

A cached database table stored as an array list
public GetList ( string table ) : ArrayList
table string Name of the table
리턴 System.Collections.ArrayList

GetTableType() 공개 메소드

Returns the type that has been registered with the table name
public GetTableType ( string table ) : Type
table string Name of the table
리턴 System.Type

GetType() 공개 메소드

returns a DBTableType object based on the name of the table you have previously cached
public GetType ( string table ) : DBTableType
table string name of the table
리턴 DBTableType

RegisterNameType() 공개 메소드

Sets up a database table with an object type for future cache'ing
public RegisterNameType ( string table, Type type ) : void
table string Name of the table that this type will be accessed by
type System.Type Object type that will represent this table
리턴 void