C# Class DSShared.DB_MySql.MySQL_DBTable

Inheritance: IComparable
Show file Open project: pmprog/OpenXCOM.Tools

Protected Properties

Property Type Description
myType DSShared.DB.DBTableType

Public Methods

Method Description
CompareTo ( object other ) : int
Delete ( MySqlConnection conn, MySql.Data.MySqlClient.MySqlTransaction trans ) : void
Equals ( object other ) : bool
GetAll ( MySqlConnection conn, MySql.Data.MySqlClient.MySqlTransaction trans, string table, bool cache ) : ArrayList
GetAll ( string table, bool cache ) : ArrayList
GetAllHash ( MySqlConnection conn, MySql.Data.MySqlClient.MySqlTransaction trans, string table, bool cache ) : Hashtable
GetAllHash ( string table, bool cache ) : Hashtable

Retrieves all rows from a single table according to the columns specified

GetHashCode ( ) : int
Insert ( MySqlConnection conn, MySql.Data.MySqlClient.MySqlTransaction trans ) : void
MySQL_DBTable ( string tableName ) : System
PrintTableInfo ( ) : void
Save ( ) : void
Save ( MySqlConnection conn, MySql.Data.MySqlClient.MySqlTransaction trans ) : void
Update ( MySqlConnection conn, MySql.Data.MySqlClient.MySqlTransaction trans ) : void

Protected Methods

Method Description
FinishGet ( MySqlConnection conn, MySql.Data.MySqlClient.MySqlTransaction trans ) : void

Method Details

CompareTo() public abstract method

public abstract CompareTo ( object other ) : int
other object
return int

Delete() public method

public Delete ( MySqlConnection conn, MySql.Data.MySqlClient.MySqlTransaction trans ) : void
conn MySql.Data.MySqlClient.MySqlConnection
trans MySql.Data.MySqlClient.MySqlTransaction
return void

Equals() public abstract method

public abstract Equals ( object other ) : bool
other object
return bool

FinishGet() protected method

protected FinishGet ( MySqlConnection conn, MySql.Data.MySqlClient.MySqlTransaction trans ) : void
conn MySql.Data.MySqlClient.MySqlConnection
trans MySql.Data.MySqlClient.MySqlTransaction
return void

GetAll() public static method

public static GetAll ( MySqlConnection conn, MySql.Data.MySqlClient.MySqlTransaction trans, string table, bool cache ) : ArrayList
conn MySql.Data.MySqlClient.MySqlConnection
trans MySql.Data.MySqlClient.MySqlTransaction
table string
cache bool
return System.Collections.ArrayList

GetAll() public static method

public static GetAll ( string table, bool cache ) : ArrayList
table string
cache bool
return System.Collections.ArrayList

GetAllHash() public static method

public static GetAllHash ( MySqlConnection conn, MySql.Data.MySqlClient.MySqlTransaction trans, string table, bool cache ) : Hashtable
conn MySql.Data.MySqlClient.MySqlConnection
trans MySql.Data.MySqlClient.MySqlTransaction
table string
cache bool
return System.Collections.Hashtable

GetAllHash() public static method

Retrieves all rows from a single table according to the columns specified
public static GetAllHash ( string table, bool cache ) : Hashtable
table string table name
cache bool if the table does not change frequently, you should set this to true
return System.Collections.Hashtable

GetHashCode() public abstract method

public abstract GetHashCode ( ) : int
return int

Insert() public method

public Insert ( MySqlConnection conn, MySql.Data.MySqlClient.MySqlTransaction trans ) : void
conn MySql.Data.MySqlClient.MySqlConnection
trans MySql.Data.MySqlClient.MySqlTransaction
return void

MySQL_DBTable() public method

public MySQL_DBTable ( string tableName ) : System
tableName string
return System

PrintTableInfo() public method

public PrintTableInfo ( ) : void
return void

Save() public method

public Save ( ) : void
return void

Save() public method

public Save ( MySqlConnection conn, MySql.Data.MySqlClient.MySqlTransaction trans ) : void
conn MySql.Data.MySqlClient.MySqlConnection
trans MySql.Data.MySqlClient.MySqlTransaction
return void

Update() public method

public Update ( MySqlConnection conn, MySql.Data.MySqlClient.MySqlTransaction trans ) : void
conn MySql.Data.MySqlClient.MySqlConnection
trans MySql.Data.MySqlClient.MySqlTransaction
return void

Property Details

myType protected property

protected DSShared.DB.DBTableType myType
return DSShared.DB.DBTableType