C# Class hoTools.Utils.SQL.SqlError

Handles EA SQL errors
Afficher le fichier Open project: Helmut-Ortmann/EnterpriseArchitect_hoTools

Méthodes publiques

Méthode Description
DeleteEaSqlError ( ) : void

Delete SQL error file

ExistsEaSqlErrorFile ( ) : bool

Returns true if an EA SQL error file exists

GetEaSqlErrorFilePath ( ) : string

Get the error string which EA stores.

GetEaSqlErrorPath ( ) : string
GetHoToolsLastSqlFilePath ( ) : string

Get the sql string which is sent to EA.

GetSqlTemplatesAndMacrosFilePath ( ) : string
ReadEaSqlError ( ) : string

Read SQL error file

ReadHoToolsLastSql ( ) : string

Read last SQL from EA home

ReadSqlTemplatesAndMacros ( ) : string
WriteEaSqlError ( string text ) : void
WriteHoToolsLastSql ( string text ) : void

Write last SQL to EA home

WriteSqlTemplatesAndMacros ( string text ) : void

Private Methods

Méthode Description
Delete ( string fileName ) : void

delete file

GetEaHomeFileName ( string file ) : string

Get EA file complete file name in EA home directory (%appdata%Sparx System\EA\ + file). That's the path where dberror.txt is located.

Read ( string fileName ) : string

read content from file

Write ( string fileName, string content ) : void

Write file

Method Details

DeleteEaSqlError() public static méthode

Delete SQL error file
public static DeleteEaSqlError ( ) : void
Résultat void

ExistsEaSqlErrorFile() public static méthode

Returns true if an EA SQL error file exists
public static ExistsEaSqlErrorFile ( ) : bool
Résultat bool

GetEaSqlErrorFilePath() public static méthode

Get the error string which EA stores.
public static GetEaSqlErrorFilePath ( ) : string
Résultat string

GetEaSqlErrorPath() public static méthode

public static GetEaSqlErrorPath ( ) : string
Résultat string

GetHoToolsLastSqlFilePath() public static méthode

Get the sql string which is sent to EA.
public static GetHoToolsLastSqlFilePath ( ) : string
Résultat string

GetSqlTemplatesAndMacrosFilePath() public static méthode

public static GetSqlTemplatesAndMacrosFilePath ( ) : string
Résultat string

ReadEaSqlError() public static méthode

Read SQL error file
public static ReadEaSqlError ( ) : string
Résultat string

ReadHoToolsLastSql() public static méthode

Read last SQL from EA home
public static ReadHoToolsLastSql ( ) : string
Résultat string

ReadSqlTemplatesAndMacros() public static méthode

public static ReadSqlTemplatesAndMacros ( ) : string
Résultat string

WriteEaSqlError() public static méthode

public static WriteEaSqlError ( string text ) : void
text string
Résultat void

WriteHoToolsLastSql() public static méthode

Write last SQL to EA home
public static WriteHoToolsLastSql ( string text ) : void
text string
Résultat void

WriteSqlTemplatesAndMacros() public static méthode

public static WriteSqlTemplatesAndMacros ( string text ) : void
text string
Résultat void