C# Class tik4net.Api.ApiCommand

Inheritance: ITikCommand
ファイルを表示 Open project: danikf/tik4net Class Usage Examples

Public Methods

Method Description
AddParameter ( string name, string value ) : ITikCommandParameter
AddParameter ( string name, string value, TikCommandParameterFormat parameterFormat ) : ITikCommandParameter
AddParameterAndValues ( ) : IEnumerable
ApiCommand ( ) : System
ApiCommand ( ITikConnection connection ) : System
ApiCommand ( ITikConnection connection, TikCommandParameterFormat defaultParameterFormat ) : System
ApiCommand ( ITikConnection connection, string commandText ) : System
ApiCommand ( ITikConnection connection, string commandText, TikCommandParameterFormat defaultParameterFormat ) : System
ApiCommand ( TikCommandParameterFormat defaultParameterFormat ) : System
Cancel ( ) : void
CancelAndJoin ( int milisecondsTimeout ) : bool
CancelAndJoin ( ) : void
ExecuteAsync ( Action oneResponseCallback, Action errorCallback = null ) : void
ExecuteList ( ) : IEnumerable
ExecuteListWithDuration ( int durationSec ) : IEnumerable
ExecuteNonQuery ( ) : void
ExecuteScalar ( ) : string
ExecuteSingleRow ( ) : ITikReSentence
ToString ( ) : string

Private Methods

Method Description
CancelInternal ( bool joinLoadingThread, int milisecondsTimeout ) : bool
ConstructCommandText ( TikCommandParameterFormat defaultParameterFormat ) : string[]
CreateParameters ( string parameterNamesAndValues ) : IEnumerable
EnsureApiSentences ( IEnumerable sentences ) : IEnumerable
EnsureCommandTextSet ( ) : void
EnsureConnectionSet ( ) : void
EnsureDoneResponse ( tik4net.Api.ApiSentence responseSentence ) : ApiDoneSentence
EnsureExcatNumberOfResponses ( IEnumerable response, int nrOfResponses ) : void
EnsureNotRunning ( ) : void
EnsureReReponse ( ) : void
EnsureSingleResponse ( IEnumerable response ) : tik4net.Api.ApiSentence
ResolveParameterFormat ( TikCommandParameterFormat usecaseDefaultFormat, TikCommandParameterFormat commandDefaultFormat, TikCommandParameterFormat parameterFormat ) : TikCommandParameterFormat
ThrowPossibleResponseError ( ) : void

Method Details

AddParameter() public method

public AddParameter ( string name, string value ) : ITikCommandParameter
name string
value string
return ITikCommandParameter

AddParameter() public method

public AddParameter ( string name, string value, TikCommandParameterFormat parameterFormat ) : ITikCommandParameter
name string
value string
parameterFormat TikCommandParameterFormat
return ITikCommandParameter

AddParameterAndValues() public method

public AddParameterAndValues ( ) : IEnumerable
return IEnumerable

ApiCommand() public method

public ApiCommand ( ) : System
return System

ApiCommand() public method

public ApiCommand ( ITikConnection connection ) : System
connection ITikConnection
return System

ApiCommand() public method

public ApiCommand ( ITikConnection connection, TikCommandParameterFormat defaultParameterFormat ) : System
connection ITikConnection
defaultParameterFormat TikCommandParameterFormat
return System

ApiCommand() public method

public ApiCommand ( ITikConnection connection, string commandText ) : System
connection ITikConnection
commandText string
return System

ApiCommand() public method

public ApiCommand ( ITikConnection connection, string commandText, TikCommandParameterFormat defaultParameterFormat ) : System
connection ITikConnection
commandText string
defaultParameterFormat TikCommandParameterFormat
return System

ApiCommand() public method

public ApiCommand ( TikCommandParameterFormat defaultParameterFormat ) : System
defaultParameterFormat TikCommandParameterFormat
return System

Cancel() public method

public Cancel ( ) : void
return void

CancelAndJoin() public method

public CancelAndJoin ( int milisecondsTimeout ) : bool
milisecondsTimeout int
return bool

CancelAndJoin() public method

public CancelAndJoin ( ) : void
return void

ExecuteAsync() public method

public ExecuteAsync ( Action oneResponseCallback, Action errorCallback = null ) : void
oneResponseCallback Action
errorCallback Action
return void

ExecuteList() public method

public ExecuteList ( ) : IEnumerable
return IEnumerable

ExecuteListWithDuration() public method

public ExecuteListWithDuration ( int durationSec ) : IEnumerable
durationSec int
return IEnumerable

ExecuteNonQuery() public method

public ExecuteNonQuery ( ) : void
return void

ExecuteScalar() public method

public ExecuteScalar ( ) : string
return string

ExecuteSingleRow() public method

public ExecuteSingleRow ( ) : ITikReSentence
return ITikReSentence

ToString() public method

public ToString ( ) : string
return string