C# Class hoTools.Utils.SQL.SqlError

Handles EA SQL errors
Mostrar archivo Open project: Helmut-Ortmann/EnterpriseArchitect_hoTools

Public Methods

Method 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

Method 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 method

Delete SQL error file
public static DeleteEaSqlError ( ) : void
return void

ExistsEaSqlErrorFile() public static method

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

GetEaSqlErrorFilePath() public static method

Get the error string which EA stores.
public static GetEaSqlErrorFilePath ( ) : string
return string

GetEaSqlErrorPath() public static method

public static GetEaSqlErrorPath ( ) : string
return string

GetHoToolsLastSqlFilePath() public static method

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

GetSqlTemplatesAndMacrosFilePath() public static method

public static GetSqlTemplatesAndMacrosFilePath ( ) : string
return string

ReadEaSqlError() public static method

Read SQL error file
public static ReadEaSqlError ( ) : string
return string

ReadHoToolsLastSql() public static method

Read last SQL from EA home
public static ReadHoToolsLastSql ( ) : string
return string

ReadSqlTemplatesAndMacros() public static method

public static ReadSqlTemplatesAndMacros ( ) : string
return string

WriteEaSqlError() public static method

public static WriteEaSqlError ( string text ) : void
text string
return void

WriteHoToolsLastSql() public static method

Write last SQL to EA home
public static WriteHoToolsLastSql ( string text ) : void
text string
return void

WriteSqlTemplatesAndMacros() public static method

public static WriteSqlTemplatesAndMacros ( string text ) : void
text string
return void