C# 클래스 SemWeb.Stores.SQLStore

상속: Store, SupportsPersistableBNodes
파일 보기 프로젝트 열기: JoshData/semweb-dotnet

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Add() 공개 메소드

public Add ( Statement statement ) : void
statement Statement
리턴 void

BeginTransaction() 보호된 메소드

protected BeginTransaction ( ) : void
리턴 void

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

Close() 공개 메소드

public Close ( ) : void
리턴 void

Contains() 공개 메소드

public Contains ( Resource resource ) : bool
resource Resource
리턴 bool

Contains() 공개 메소드

public Contains ( Statement template ) : bool
template Statement
리턴 bool

CreateEntityPrefixTest() 보호된 메소드

protected CreateEntityPrefixTest ( string column, string prefix, System command ) : bool
column string
prefix string
command System
리턴 bool

CreateIndexes() 보호된 메소드

protected CreateIndexes ( ) : void
리턴 void

CreateLikeTest() 보호된 추상적인 메소드

protected abstract CreateLikeTest ( string column, string prefix, int method, System command ) : void
column string
prefix string
method int
command System
리턴 void

CreateNullTest() 보호된 추상적인 메소드

protected abstract CreateNullTest ( string column, System command ) : void
column string
command System
리턴 void

CreateTable() 보호된 메소드

protected CreateTable ( ) : void
리턴 void

EndTransaction() 보호된 메소드

protected EndTransaction ( ) : void
리턴 void

EscapedAppend() 보호된 추상적인 메소드

protected abstract EscapedAppend ( StringBuilder b, string str ) : void
b StringBuilder
str string
리턴 void

GetBNodeFromPersistentId() 공개 메소드

public GetBNodeFromPersistentId ( string persistentId ) : BNode
persistentId string
리턴 BNode

GetEntities() 공개 메소드

public GetEntities ( ) : System.Entity[]
리턴 System.Entity[]

GetMetas() 공개 메소드

public GetMetas ( ) : System.Entity[]
리턴 System.Entity[]

GetPersistentBNodeId() 공개 메소드

public GetPersistentBNodeId ( BNode node ) : string
node BNode
리턴 string

GetPredicates() 공개 메소드

public GetPredicates ( ) : System.Entity[]
리턴 System.Entity[]

GetStoreGuid() 공개 메소드

public GetStoreGuid ( ) : string
리턴 string

Import() 공개 메소드

public Import ( StatementSource source ) : void
source StatementSource
리턴 void

MetaQuery() 공개 메소드

public MetaQuery ( Statement graph, SemWeb options ) : SemWeb.Query.MetaQueryResult
graph Statement
options SemWeb
리턴 SemWeb.Query.MetaQueryResult

Query() 공개 메소드

public Query ( Statement graph, SemWeb options, SemWeb sink ) : void
graph Statement
options SemWeb
sink SemWeb
리턴 void

Remove() 공개 메소드

public Remove ( Statement template ) : void
template Statement
리턴 void

RemoveAll() 공개 메소드

public RemoveAll ( Statement templates ) : void
templates Statement
리턴 void

Replace() 공개 메소드

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

Replace() 공개 메소드

public Replace ( Statement find, Statement replacement ) : void
find Statement
replacement Statement
리턴 void

RunCommand() 보호된 추상적인 메소드

protected abstract RunCommand ( string sql ) : void
sql string
리턴 void

RunReader() 보호된 추상적인 메소드

protected abstract RunReader ( string sql ) : IDataReader
sql string
리턴 IDataReader

RunScalar() 보호된 추상적인 메소드

protected abstract RunScalar ( string sql ) : object
sql string
리턴 object

SQLStore() 보호된 메소드

protected SQLStore ( string table ) : System
table string
리턴 System

Select() 공개 메소드

public Select ( SelectFilter filter, StatementSink result ) : void
filter SelectFilter
result StatementSink
리턴 void

Select() 공개 메소드

public Select ( Statement template, StatementSink result ) : void
template Statement
result StatementSink
리턴 void

Select() 공개 메소드

public Select ( StatementSink result ) : void
result StatementSink
리턴 void