C# Class Sqlite, chronojump

Mostrar archivo Open project: GNOME/chronojump Class Usage Examples

Public Properties

Property Type Description
IsOpened bool
SafeClose bool
sqlFileServer string

Protected Properties

Property Type Description
conversionSubRate int
conversionSubRateTotal int
dbcmd Mono.Data.Sqlite.SqliteCommand
dbcon Mono.Data.Sqlite.SqliteConnection

Public Methods

Method Description
ChangeDjToDJna ( ) : bool
CheckFileServer ( ) : bool
CheckTables ( bool defaultDBLocation ) : bool
Close ( ) : void
Connect ( ) : bool
ConnectBlank ( ) : void
ConnectServer ( ) : void
ConvertFromSqlite2To3 ( ) : bool
ConvertToLastChronojumpDBVersion ( ) : bool
Count ( string tableName, bool dbconOpened ) : int
CountCondition ( string tableName, bool dbconOpened, string condition, string operand, string myValue ) : int
CreateDir ( ) : void
CreateFile ( ) : void
CreateTables ( bool server ) : void
Delete ( bool dbconOpened, string tableName, int uniqueID ) : void
DeleteFromAnInt ( bool dbconOpened, string tableName, string colName, int id ) : void
DeleteFromName ( bool dbconOpened, string tableName, string name ) : void
DeleteSelectingField ( bool dbconOpened, string tableName, string fieldName, string id ) : void
DeleteTempEvents ( string tableName ) : void
DisConnect ( ) : bool
Exists ( bool dbconOpened, string tableName, string findName ) : bool
IsSqlite3 ( ) : bool
Max ( string tableName, string column, bool dbconOpened ) : int
Open ( ) : void
PrintConversionRate ( ) : double
PrintConversionSubRate ( ) : double
PrintConversionText ( ) : string
PrintConversionVersion ( ) : double
PrintCreation ( ) : double
SQLBuildQueryString ( string tableName, string test, string variable, int sex, string ageInterval, int countryID, int sportID, int speciallityID, int levelID, int evaluatorID ) : string
Sqlite ( ) : System
TempDataExists ( string tableName ) : int
Update ( bool dbconOpened, string tableName, string columnName, string searchValue, string newValue, string columnNameCondition2, string searchValueCondition2 ) : void
saveClassState ( ) : void
setSqlFilePath ( string filePath ) : void

Protected Methods

Method Description
DataReaderToStringArray ( SqliteDataReader reader, int columns ) : string[]
alterTableColumn ( Sqlite sqliteObject, string tableName, int columns ) : void
closeIfNeeded ( bool dbconOpened ) : void
convertDJInDJna ( ) : void
convertPersonAndPersonSessionTo77 ( ) : void
convertTables ( Sqlite sqliteObject, string tableName, int columnsBefore, ArrayList columnsToAdd, bool putDescriptionInMiddle ) : void
createTable ( ) : void
createTable ( string tableName ) : void
datesToYYYYMMDD ( ) : void
deleteOrphanedPersons ( ) : void
deleteOrphanedPersonsOld ( ) : void
dropTable ( string tableName ) : void
fillIDDoubleList ( string selectStr ) : IDDoubleList,
fillIDNameList ( string selectStr ) : IDNameList,
openIfNeeded ( bool dbconOpened ) : void
selectDouble ( string sqlSelect ) : double

Private Methods

Method Description
addChronopicPortNameIfNotExists ( ) : void
sqlite2SelectWorks ( ) : bool
sqlite3SelectWorks ( ) : bool
updateVersion ( string newVersion ) : string

Method Details

ChangeDjToDJna() public static method

public static ChangeDjToDJna ( ) : bool
return bool

CheckFileServer() public static method

public static CheckFileServer ( ) : bool
return bool

CheckTables() public static method

public static CheckTables ( bool defaultDBLocation ) : bool
defaultDBLocation bool
return bool

Close() public static method

public static Close ( ) : void
return void

Connect() public static method

public static Connect ( ) : bool
return bool

ConnectBlank() public static method

public static ConnectBlank ( ) : void
return void

ConnectServer() public static method

public static ConnectServer ( ) : void
return void

ConvertFromSqlite2To3() public static method

public static ConvertFromSqlite2To3 ( ) : bool
return bool

ConvertToLastChronojumpDBVersion() public static method

public static ConvertToLastChronojumpDBVersion ( ) : bool
return bool

Count() public static method

public static Count ( string tableName, bool dbconOpened ) : int
tableName string
dbconOpened bool
return int

CountCondition() public static method

public static CountCondition ( string tableName, bool dbconOpened, string condition, string operand, string myValue ) : int
tableName string
dbconOpened bool
condition string
operand string
myValue string
return int

CreateDir() public static method

public static CreateDir ( ) : void
return void

CreateFile() public static method

public static CreateFile ( ) : void
return void

CreateTables() public static method

public static CreateTables ( bool server ) : void
server bool
return void

DataReaderToStringArray() protected static method

protected static DataReaderToStringArray ( SqliteDataReader reader, int columns ) : string[]
reader Mono.Data.Sqlite.SqliteDataReader
columns int
return string[]

Delete() public static method

public static Delete ( bool dbconOpened, string tableName, int uniqueID ) : void
dbconOpened bool
tableName string
uniqueID int
return void

DeleteFromAnInt() public static method

public static DeleteFromAnInt ( bool dbconOpened, string tableName, string colName, int id ) : void
dbconOpened bool
tableName string
colName string
id int
return void

DeleteFromName() public static method

public static DeleteFromName ( bool dbconOpened, string tableName, string name ) : void
dbconOpened bool
tableName string
name string
return void

DeleteSelectingField() public static method

public static DeleteSelectingField ( bool dbconOpened, string tableName, string fieldName, string id ) : void
dbconOpened bool
tableName string
fieldName string
id string
return void

DeleteTempEvents() public static method

public static DeleteTempEvents ( string tableName ) : void
tableName string
return void

DisConnect() public static method

public static DisConnect ( ) : bool
return bool

Exists() public static method

public static Exists ( bool dbconOpened, string tableName, string findName ) : bool
dbconOpened bool
tableName string
findName string
return bool

IsSqlite3() public static method

public static IsSqlite3 ( ) : bool
return bool

Max() public static method

public static Max ( string tableName, string column, bool dbconOpened ) : int
tableName string
column string
dbconOpened bool
return int

Open() public static method

public static Open ( ) : void
return void

PrintConversionRate() public static method

public static PrintConversionRate ( ) : double
return double

PrintConversionSubRate() public static method

public static PrintConversionSubRate ( ) : double
return double

PrintConversionText() public static method

public static PrintConversionText ( ) : string
return string

PrintConversionVersion() public static method

public static PrintConversionVersion ( ) : double
return double

PrintCreation() public static method

public static PrintCreation ( ) : double
return double

SQLBuildQueryString() public static method

public static SQLBuildQueryString ( string tableName, string test, string variable, int sex, string ageInterval, int countryID, int sportID, int speciallityID, int levelID, int evaluatorID ) : string
tableName string
test string
variable string
sex int
ageInterval string
countryID int
sportID int
speciallityID int
levelID int
evaluatorID int
return string

Sqlite() public method

public Sqlite ( ) : System
return System

TempDataExists() public static method

public static TempDataExists ( string tableName ) : int
tableName string
return int

Update() public static method

public static Update ( bool dbconOpened, string tableName, string columnName, string searchValue, string newValue, string columnNameCondition2, string searchValueCondition2 ) : void
dbconOpened bool
tableName string
columnName string
searchValue string
newValue string
columnNameCondition2 string
searchValueCondition2 string
return void

alterTableColumn() protected static method

protected static alterTableColumn ( Sqlite sqliteObject, string tableName, int columns ) : void
sqliteObject Sqlite
tableName string
columns int
return void

closeIfNeeded() protected static method

protected static closeIfNeeded ( bool dbconOpened ) : void
dbconOpened bool
return void

convertDJInDJna() protected static method

protected static convertDJInDJna ( ) : void
return void

convertPersonAndPersonSessionTo77() protected static method

protected static convertPersonAndPersonSessionTo77 ( ) : void
return void

convertTables() protected static method

protected static convertTables ( Sqlite sqliteObject, string tableName, int columnsBefore, ArrayList columnsToAdd, bool putDescriptionInMiddle ) : void
sqliteObject Sqlite
tableName string
columnsBefore int
columnsToAdd ArrayList
putDescriptionInMiddle bool
return void

createTable() protected method

protected createTable ( ) : void
return void

createTable() protected method

protected createTable ( string tableName ) : void
tableName string
return void

datesToYYYYMMDD() protected static method

protected static datesToYYYYMMDD ( ) : void
return void

deleteOrphanedPersons() protected static method

protected static deleteOrphanedPersons ( ) : void
return void

deleteOrphanedPersonsOld() protected static method

protected static deleteOrphanedPersonsOld ( ) : void
return void

dropTable() protected static method

protected static dropTable ( string tableName ) : void
tableName string
return void

fillIDDoubleList() protected static method

protected static fillIDDoubleList ( string selectStr ) : IDDoubleList,
selectStr string
return IDDoubleList,

fillIDNameList() protected static method

protected static fillIDNameList ( string selectStr ) : IDNameList,
selectStr string
return IDNameList,

openIfNeeded() protected static method

protected static openIfNeeded ( bool dbconOpened ) : void
dbconOpened bool
return void

saveClassState() public static method

public static saveClassState ( ) : void
return void

selectDouble() protected static method

protected static selectDouble ( string sqlSelect ) : double
sqlSelect string
return double

setSqlFilePath() public static method

public static setSqlFilePath ( string filePath ) : void
filePath string
return void

Property Details

IsOpened public_oe static_oe property

public static bool IsOpened
return bool

SafeClose public_oe static_oe property

public static bool SafeClose
return bool

conversionSubRate protected_oe static_oe property

protected static int conversionSubRate
return int

conversionSubRateTotal protected_oe static_oe property

protected static int conversionSubRateTotal
return int

dbcmd protected_oe static_oe property

protected static SqliteCommand,Mono.Data.Sqlite dbcmd
return Mono.Data.Sqlite.SqliteCommand

dbcon protected_oe static_oe property

protected static SqliteConnection,Mono.Data.Sqlite dbcon
return Mono.Data.Sqlite.SqliteConnection

sqlFileServer public_oe static_oe property

public static string sqlFileServer
return string