C# Class _3PA.MainFeatures.AutoCompletion.DataBase

Exibir arquivo Open project: jcaillon/3P Class Usage Examples

Private Properties

Property Type Description
ExtractionDoneOk void
Read void

Public Methods

Method Description
DeleteCurrentDbInfo ( ) : void

Deletes the file corresponding to the current database (if it exists)

FetchCurrentDbInfo ( System.Action onExtractionDone ) : void

Should be called to extract the database info from the current environnement

FindDatabaseByName ( string name ) : ParsedDataBase
FindFieldByName ( string name ) : ParsedField
FindFieldByName ( string name, ParsedTable table ) : ParsedField
FindTableByName ( string name ) : ParsedTable
FindTableByName ( string name, ParsedDataBase db ) : ParsedTable
GetDb ( string name ) : ParsedDataBase

Get db info by name

GetDbDictionnary ( ) : CompletionType>.Dictionary

returns a dictionary containing all the table names of each database, each table is present 2 times, as "TABLE" and "DATABASE.TABLE"

GetDbList ( ) : List

returns the list of databases

GetFieldsList ( ParsedTable table ) : List

Returns the list of fields for a given table (it can also be a temp table!)

GetSequencesList ( ) : List

returns the list of keywords

GetTablesList ( ) : List

returns the list tables of each database

GetTablesList ( ParsedDataBase dataBase ) : List

Returns the list of tables for a given database

UpdateDatabaseInfo ( ) : void

Tries to load the database information of the current ProgressEnv, returns false the info is not available

Private Methods

Method Description
ExtractionDoneOk ( ProExecution lastExec ) : void

Method called after the execution of the program extracting the db info

Read ( string filePath ) : void

This method parses the output of the .p procedure that exports the database info and fills _dataBases It then updates the parser with the new info

Method Details

DeleteCurrentDbInfo() public static method

Deletes the file corresponding to the current database (if it exists)
public static DeleteCurrentDbInfo ( ) : void
return void

FetchCurrentDbInfo() public static method

Should be called to extract the database info from the current environnement
public static FetchCurrentDbInfo ( System.Action onExtractionDone ) : void
onExtractionDone System.Action
return void

FindDatabaseByName() public static method

public static FindDatabaseByName ( string name ) : ParsedDataBase
name string
return _3PA.MainFeatures.Parser.ParsedDataBase

FindFieldByName() public static method

public static FindFieldByName ( string name ) : ParsedField
name string
return _3PA.MainFeatures.Parser.ParsedField

FindFieldByName() public static method

public static FindFieldByName ( string name, ParsedTable table ) : ParsedField
name string
table _3PA.MainFeatures.Parser.ParsedTable
return _3PA.MainFeatures.Parser.ParsedField

FindTableByName() public static method

public static FindTableByName ( string name ) : ParsedTable
name string
return _3PA.MainFeatures.Parser.ParsedTable

FindTableByName() public static method

public static FindTableByName ( string name, ParsedDataBase db ) : ParsedTable
name string
db _3PA.MainFeatures.Parser.ParsedDataBase
return _3PA.MainFeatures.Parser.ParsedTable

GetDb() public static method

Get db info by name
public static GetDb ( string name ) : ParsedDataBase
name string
return _3PA.MainFeatures.Parser.ParsedDataBase

GetDbDictionnary() public static method

returns a dictionary containing all the table names of each database, each table is present 2 times, as "TABLE" and "DATABASE.TABLE"
public static GetDbDictionnary ( ) : CompletionType>.Dictionary
return CompletionType>.Dictionary

GetDbList() public static method

returns the list of databases
public static GetDbList ( ) : List
return List

GetFieldsList() public static method

Returns the list of fields for a given table (it can also be a temp table!)
public static GetFieldsList ( ParsedTable table ) : List
table _3PA.MainFeatures.Parser.ParsedTable
return List

GetSequencesList() public static method

returns the list of keywords
public static GetSequencesList ( ) : List
return List

GetTablesList() public static method

returns the list tables of each database
public static GetTablesList ( ) : List
return List

GetTablesList() public static method

Returns the list of tables for a given database
public static GetTablesList ( ParsedDataBase dataBase ) : List
dataBase _3PA.MainFeatures.Parser.ParsedDataBase
return List

UpdateDatabaseInfo() public static method

Tries to load the database information of the current ProgressEnv, returns false the info is not available
public static UpdateDatabaseInfo ( ) : void
return void