C# Class SemWeb.Stores.SQLStore2

Inheritance: SelectableSource, StatementSink, IDisposable
ファイルを表示 Open project: JoshData/semweb-dotnet Class Usage Examples

Public Methods

Method Description
Add ( Statement statement ) : void
Clear ( ) : void
Close ( ) : void
Contains ( Resource resource ) : bool
Contains ( Statement template ) : bool
Import ( StatementSource source ) : void
Replace ( System.Entity a, System.Entity b ) : void
Replace ( Statement find, Statement replacement ) : void
SQLStore2 ( string prefix, ConnectionManager connection ) : System
Select ( SelectFilter filter, StatementSink result ) : void
Select ( Statement template, StatementSink result ) : void
Select ( StatementSink result ) : void

Protected Methods

Method Description
EscapedAppend ( StringBuilder b, string str ) : void
EscapedAppend ( StringBuilder b, string str, bool quotes, bool forLike ) : void

Private Methods

Method Description
AddValue ( Resource resource ) : void
AddValue ( Resource resource, StringBuilder buffer, bool insertCombined, bool &firstInsert ) : void
AppendComma ( StringBuilder builder, string text, bool comma ) : void
AsInt ( object r ) : int
AsString ( object r ) : string
CreatePrefixTest ( string column, string match ) : string
CreateVersion ( ) : bool
Escape ( string str, bool quotes ) : string
FilterOpToSQL ( LiteralFilter op ) : string
FilterToSQL ( LiteralFilter filter, string col ) : string
GetHash ( Resource resource ) : string
IDisposable ( ) : void
Init ( ) : void
ParseVersionInfo ( string verdata ) : NameValueCollection
RunScalarInt ( string sql, int def ) : int
RunScalarString ( string sql ) : string
Select2 ( SelectFilter filter, StatementSink result ) : void
SelectEntity ( int type, string value ) : System.Entity
SelectResource ( int type, string value, string language, string datatype ) : Resource
SerializeVersionInfo ( NameValueCollection verdata ) : string
SplitArray ( Resource e ) : Resource[][]
StatementSink ( Statement statement ) : bool
WhereClause ( SelectFilter filter, System cmd ) : bool
WhereItem ( string col, Resource r, System cmd, bool and ) : void

Method Details

Add() public method

public Add ( Statement statement ) : void
statement Statement
return void

Clear() public method

public Clear ( ) : void
return void

Close() public method

public Close ( ) : void
return void

Contains() public method

public Contains ( Resource resource ) : bool
resource Resource
return bool

Contains() public method

public Contains ( Statement template ) : bool
template Statement
return bool

EscapedAppend() protected method

protected EscapedAppend ( StringBuilder b, string str ) : void
b StringBuilder
str string
return void

EscapedAppend() protected method

protected EscapedAppend ( StringBuilder b, string str, bool quotes, bool forLike ) : void
b StringBuilder
str string
quotes bool
forLike bool
return void

Import() public method

public Import ( StatementSource source ) : void
source StatementSource
return void

Replace() public method

public Replace ( System.Entity a, System.Entity b ) : void
a System.Entity
b System.Entity
return void

Replace() public method

public Replace ( Statement find, Statement replacement ) : void
find Statement
replacement Statement
return void

SQLStore2() public method

public SQLStore2 ( string prefix, ConnectionManager connection ) : System
prefix string
connection ConnectionManager
return System

Select() public method

public Select ( SelectFilter filter, StatementSink result ) : void
filter SelectFilter
result StatementSink
return void

Select() public method

public Select ( Statement template, StatementSink result ) : void
template Statement
result StatementSink
return void

Select() public method

public Select ( StatementSink result ) : void
result StatementSink
return void