C# 클래스 _3PA.MainFeatures.AutoCompletion.DataBase

파일 보기 프로젝트 열기: jcaillon/3P 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ExtractionDoneOk void
Read void

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

DeleteCurrentDbInfo() 공개 정적인 메소드

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

FetchCurrentDbInfo() 공개 정적인 메소드

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

FindDatabaseByName() 공개 정적인 메소드

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

FindFieldByName() 공개 정적인 메소드

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

FindFieldByName() 공개 정적인 메소드

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

FindTableByName() 공개 정적인 메소드

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

FindTableByName() 공개 정적인 메소드

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

GetDb() 공개 정적인 메소드

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

GetDbDictionnary() 공개 정적인 메소드

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
리턴 CompletionType>.Dictionary

GetDbList() 공개 정적인 메소드

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

GetFieldsList() 공개 정적인 메소드

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

GetSequencesList() 공개 정적인 메소드

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

GetTablesList() 공개 정적인 메소드

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

GetTablesList() 공개 정적인 메소드

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

UpdateDatabaseInfo() 공개 정적인 메소드

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