C# Class SemWeb.Stores.SQLStore

Inheritance: Store, SupportsPersistableBNodes
Afficher le fichier Open project: JoshData/semweb-dotnet

Private Properties

Свойство Type Description
AddLiteral int
AppendComma void
AppendMultiRes bool
AsInt int
AsString string
CacheMultiObjects void
CheckMax void
CleanMultiRes void
CreateLikeTest string
CreateVersion bool
Escape string
FilterOpToSQL string
FilterToSQL string
GetAllEntities System.Entity[]
GetCreateIndexCommands string[]
GetCreateTableCommands string[]
GetEntityId int
GetLiteralHash string
GetLiteralId int
GetResourceId int
GetResourceIdBuffer int
GetResourceKey object
GetSelectedEntity System.Entity
GetSelectedResource Resource
IDisposable void
Init void
MakeEntity System.Entity
NextId int
ObjectType int
ParseVersionInfo System.Collections.Specialized.NameValueCollection
PrefetchResourceIds void
RunAddBuffer void
RunAddBufferDynamic void
RunScalarInt int
RunScalarString string
Select void
SelectFilterColumns void
SelectFilterTables void
SerializeVersionInfo string
SetResourceKey void
SplitArray Resource[][]
StatementSink bool
ToMultiRes Resource
WhereClause bool
WhereClause bool
WhereItem bool
isOrContains bool

Méthodes publiques

Méthode Description
Add ( Statement statement ) : void
Clear ( ) : void
Close ( ) : void
Contains ( Resource resource ) : bool
Contains ( Statement template ) : bool
GetBNodeFromPersistentId ( string persistentId ) : BNode
GetEntities ( ) : System.Entity[]
GetMetas ( ) : System.Entity[]
GetPersistentBNodeId ( BNode node ) : string
GetPredicates ( ) : System.Entity[]
GetStoreGuid ( ) : string
Import ( StatementSource source ) : void
MetaQuery ( Statement graph, SemWeb options ) : SemWeb.Query.MetaQueryResult
Query ( Statement graph, SemWeb options, SemWeb sink ) : void
Remove ( Statement template ) : void
RemoveAll ( Statement templates ) : void
Replace ( System.Entity a, System.Entity b ) : void
Replace ( Statement find, Statement replacement ) : void
Select ( SelectFilter filter, StatementSink result ) : void
Select ( Statement template, StatementSink result ) : void
Select ( StatementSink result ) : void

Méthodes protégées

Méthode Description
BeginTransaction ( ) : void
CreateEntityPrefixTest ( string column, string prefix, System command ) : bool
CreateIndexes ( ) : void
CreateLikeTest ( string column, string prefix, int method, System command ) : void
CreateNullTest ( string column, System command ) : void
CreateTable ( ) : void
EndTransaction ( ) : void
EscapedAppend ( StringBuilder b, string str ) : void
RunCommand ( string sql ) : void
RunReader ( string sql ) : IDataReader
RunScalar ( string sql ) : object
SQLStore ( string table ) : System

Private Methods

Méthode Description
AddLiteral ( Literal literal, StringBuilder buffer, bool insertCombined, bool &firstInsert ) : int
AppendComma ( StringBuilder builder, string text, bool comma ) : void
AppendMultiRes ( MultiRes r, StringBuilder cmd ) : bool
AsInt ( object r ) : int
AsString ( object r ) : string
CacheMultiObjects ( Hashtable entMap, Resource obj ) : void
CheckMax ( string command, int &nextid ) : void
CleanMultiRes ( MultiRes res ) : void
CreateLikeTest ( string column, string match, int method ) : string
CreateVersion ( ) : bool
Escape ( string str ) : string
FilterOpToSQL ( LiteralFilter op ) : string
FilterToSQL ( LiteralFilter filter, string col ) : string
GetAllEntities ( string cols ) : System.Entity[]
GetCreateIndexCommands ( string table ) : string[]
GetCreateTableCommands ( string table ) : string[]
GetEntityId ( string uri, bool create, StringBuilder entityInsertBuffer, bool insertCombined, bool checkIfExists, bool &firstInsert ) : int
GetLiteralHash ( Literal literal ) : string
GetLiteralId ( Literal literal, bool create, StringBuilder buffer, bool insertCombined, bool &firstInsert ) : int
GetResourceId ( Resource resource, bool create ) : int
GetResourceIdBuffer ( Resource resource, bool create, StringBuilder literalInsertBuffer, StringBuilder entityInsertBuffer, bool insertCombined, bool &firstLiteralInsert, bool &firstEntityInsert ) : int
GetResourceKey ( Resource resource ) : object
GetSelectedEntity ( int id, string uri, Resource given, bool idSelected, bool uriSelected, Hashtable entMap ) : System.Entity
GetSelectedResource ( int id, int type, string uri, string lv, string ll, string ld, Resource given, bool idSelected, bool uriSelected, Hashtable entMap ) : Resource
IDisposable ( ) : void
Init ( ) : void
MakeEntity ( int resourceId, string uri, Hashtable cache ) : System.Entity
NextId ( ) : int
ObjectType ( Resource r ) : int
ParseVersionInfo ( string verdata ) : NameValueCollection
PrefetchResourceIds ( IList resources ) : void
RunAddBuffer ( ) : void
RunAddBufferDynamic ( ) : void
RunScalarInt ( string sql, int def ) : int
RunScalarString ( string sql ) : string
Select ( Resource templateSubject, Resource templatePredicate, Resource templateObject, Resource templateMeta, LiteralFilter litFilters, StatementSink result, int limit ) : void
SelectFilterColumns ( SelectColumnFilter filter, StringBuilder cmd ) : void
SelectFilterTables ( SelectColumnFilter filter, StringBuilder cmd ) : void
SerializeVersionInfo ( NameValueCollection verdata ) : string
SetResourceKey ( Resource resource, object value ) : void
SplitArray ( Resource e ) : Resource[][]
StatementSink ( Statement statement ) : bool
ToMultiRes ( Resource r ) : Resource
WhereClause ( Resource templateSubject, Resource templatePredicate, Resource templateObject, Resource templateMeta, System cmd, bool &wroteWhere ) : bool
WhereClause ( Statement template, System cmd ) : bool
WhereItem ( string col, Resource r, System cmd, bool and ) : bool
isOrContains ( Resource r, string uri ) : bool

Method Details

Add() public méthode

public Add ( Statement statement ) : void
statement Statement
Résultat void

BeginTransaction() protected méthode

protected BeginTransaction ( ) : void
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

Contains() public méthode

public Contains ( Resource resource ) : bool
resource Resource
Résultat bool

Contains() public méthode

public Contains ( Statement template ) : bool
template Statement
Résultat bool

CreateEntityPrefixTest() protected méthode

protected CreateEntityPrefixTest ( string column, string prefix, System command ) : bool
column string
prefix string
command System
Résultat bool

CreateIndexes() protected méthode

protected CreateIndexes ( ) : void
Résultat void

CreateLikeTest() protected abstract méthode

protected abstract CreateLikeTest ( string column, string prefix, int method, System command ) : void
column string
prefix string
method int
command System
Résultat void

CreateNullTest() protected abstract méthode

protected abstract CreateNullTest ( string column, System command ) : void
column string
command System
Résultat void

CreateTable() protected méthode

protected CreateTable ( ) : void
Résultat void

EndTransaction() protected méthode

protected EndTransaction ( ) : void
Résultat void

EscapedAppend() protected abstract méthode

protected abstract EscapedAppend ( StringBuilder b, string str ) : void
b StringBuilder
str string
Résultat void

GetBNodeFromPersistentId() public méthode

public GetBNodeFromPersistentId ( string persistentId ) : BNode
persistentId string
Résultat BNode

GetEntities() public méthode

public GetEntities ( ) : System.Entity[]
Résultat System.Entity[]

GetMetas() public méthode

public GetMetas ( ) : System.Entity[]
Résultat System.Entity[]

GetPersistentBNodeId() public méthode

public GetPersistentBNodeId ( BNode node ) : string
node BNode
Résultat string

GetPredicates() public méthode

public GetPredicates ( ) : System.Entity[]
Résultat System.Entity[]

GetStoreGuid() public méthode

public GetStoreGuid ( ) : string
Résultat string

Import() public méthode

public Import ( StatementSource source ) : void
source StatementSource
Résultat void

MetaQuery() public méthode

public MetaQuery ( Statement graph, SemWeb options ) : SemWeb.Query.MetaQueryResult
graph Statement
options SemWeb
Résultat SemWeb.Query.MetaQueryResult

Query() public méthode

public Query ( Statement graph, SemWeb options, SemWeb sink ) : void
graph Statement
options SemWeb
sink SemWeb
Résultat void

Remove() public méthode

public Remove ( Statement template ) : void
template Statement
Résultat void

RemoveAll() public méthode

public RemoveAll ( Statement templates ) : void
templates Statement
Résultat void

Replace() public méthode

public Replace ( System.Entity a, System.Entity b ) : void
a System.Entity
b System.Entity
Résultat void

Replace() public méthode

public Replace ( Statement find, Statement replacement ) : void
find Statement
replacement Statement
Résultat void

RunCommand() protected abstract méthode

protected abstract RunCommand ( string sql ) : void
sql string
Résultat void

RunReader() protected abstract méthode

protected abstract RunReader ( string sql ) : IDataReader
sql string
Résultat IDataReader

RunScalar() protected abstract méthode

protected abstract RunScalar ( string sql ) : object
sql string
Résultat object

SQLStore() protected méthode

protected SQLStore ( string table ) : System
table string
Résultat System

Select() public méthode

public Select ( SelectFilter filter, StatementSink result ) : void
filter SelectFilter
result StatementSink
Résultat void

Select() public méthode

public Select ( Statement template, StatementSink result ) : void
template Statement
result StatementSink
Résultat void

Select() public méthode

public Select ( StatementSink result ) : void
result StatementSink
Résultat void