C# Class DotNetWorkQueue.Transport.PostgreSQL.Basic.PostgreSqlCommandStringCache

Caches SQL command strings
Mostra file Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
Add ( string key, string value ) : string

Adds a new cached command string

Contains ( string key ) : bool

Determines whether [contains] [the specified key].

Get ( string key ) : string

Gets the specified command string.

GetCommand ( PostgreSqlCommandStringTypes type ) : string

Gets the command for the indicated command type

PostgreSqlCommandStringCache ( TableNameHelper tableNameHelper ) : System

Initializes a new instance of the PostgreSqlCommandStringCache class.

Private Methods

Method Description
BuildCommands ( ) : void

Builds the commands.

Method Details

Add() public method

Adds a new cached command string
public Add ( string key, string value ) : string
key string The key.
value string The value.
return string

Contains() public method

Determines whether [contains] [the specified key].
public Contains ( string key ) : bool
key string The key.
return bool

Get() public method

Gets the specified command string.
public Get ( string key ) : string
key string The key.
return string

GetCommand() public method

Gets the command for the indicated command type
public GetCommand ( PostgreSqlCommandStringTypes type ) : string
type PostgreSqlCommandStringTypes The command type.
return string

PostgreSqlCommandStringCache() public method

Initializes a new instance of the PostgreSqlCommandStringCache class.
public PostgreSqlCommandStringCache ( TableNameHelper tableNameHelper ) : System
tableNameHelper TableNameHelper The table name helper.
return System