C# 클래스 Azavea.Open.DAO.SQLite.SQLiteDescriptor

This class is a ConnectionDescriptor implementation for using FastDAO to communicate with a SQLite database.
상속: Azavea.Open.DAO.SQL.AbstractSqlConnectionDescriptor, ITransactionalConnectionDescriptor
파일 보기 프로젝트 열기: azavea/net-dao-sqlite 1 사용 예제들

공개 메소드들

메소드 설명
BeginTransaction ( ) : ITransaction

Begins the transaction. Returns a NEW ConnectionDescriptor that you should use for operations you wish to be part of the transaction. NOTE: You MUST call Commit or Rollback on the returned ITransaction when you are done.

ColumnAliasPrefix ( ) : string
ColumnAliasSuffix ( ) : string
CreateDataAccessLayer ( ) : IDaLayer

Returns the appropriate data access layer for this connection. The default implementation returns a normal SQL data access layer, but this may be overridden in particular DB connection descriptors.

CreateNewAdapter ( IDbCommand cmd ) : DbDataAdapter
CreateNewConnection ( ) : DbConnection
MakeModulusClause ( string columnName ) : SqlClauseWithValue
MakeSequenceValueQuery ( string sequenceName ) : string
NeedAsForColumnAliases ( ) : bool
NeedToAliasColumns ( ) : bool
SQLiteDescriptor ( Config config, string component, ConnectionInfoDecryptionDelegate decryptionDelegate ) : System

This constructor reads all the appropriate values from our standard config file in the normal format.

SQLiteDescriptor ( string databasePath ) : System

Constructor for talking to a SQLite database.

SetParametersOnCommand ( IDbCommand cmd, IEnumerable parameters ) : void
SupportsTruncate ( ) : bool
TableAliasPrefix ( ) : string
TableAliasSuffix ( ) : string
ToCleanString ( ) : string
ToCompleteString ( ) : string
UsePooling ( ) : bool

메소드 상세

BeginTransaction() 공개 메소드

Begins the transaction. Returns a NEW ConnectionDescriptor that you should use for operations you wish to be part of the transaction. NOTE: You MUST call Commit or Rollback on the returned ITransaction when you are done.
public BeginTransaction ( ) : ITransaction
리턴 ITransaction

ColumnAliasPrefix() 공개 메소드

public ColumnAliasPrefix ( ) : string
리턴 string

ColumnAliasSuffix() 공개 메소드

public ColumnAliasSuffix ( ) : string
리턴 string

CreateDataAccessLayer() 공개 메소드

Returns the appropriate data access layer for this connection. The default implementation returns a normal SQL data access layer, but this may be overridden in particular DB connection descriptors.
public CreateDataAccessLayer ( ) : IDaLayer
리턴 IDaLayer

CreateNewAdapter() 공개 메소드

public CreateNewAdapter ( IDbCommand cmd ) : DbDataAdapter
cmd IDbCommand
리턴 System.Data.Common.DbDataAdapter

CreateNewConnection() 공개 메소드

public CreateNewConnection ( ) : DbConnection
리턴 System.Data.Common.DbConnection

MakeModulusClause() 공개 메소드

public MakeModulusClause ( string columnName ) : SqlClauseWithValue
columnName string
리턴 Azavea.Open.DAO.SQL.SqlClauseWithValue

MakeSequenceValueQuery() 공개 메소드

public MakeSequenceValueQuery ( string sequenceName ) : string
sequenceName string
리턴 string

NeedAsForColumnAliases() 공개 메소드

public NeedAsForColumnAliases ( ) : bool
리턴 bool

NeedToAliasColumns() 공개 메소드

public NeedToAliasColumns ( ) : bool
리턴 bool

SQLiteDescriptor() 공개 메소드

This constructor reads all the appropriate values from our standard config file in the normal format.
public SQLiteDescriptor ( Config config, string component, ConnectionInfoDecryptionDelegate decryptionDelegate ) : System
config Azavea.Open.Common.Config Config to get params from.
component string Section of the config XML to look in for db params.
decryptionDelegate ConnectionInfoDecryptionDelegate Delegate to call to decrypt password fields. /// May be null if passwords are in plain text.
리턴 System

SQLiteDescriptor() 공개 메소드

Constructor for talking to a SQLite database.
public SQLiteDescriptor ( string databasePath ) : System
databasePath string Path to the db file.
리턴 System

SetParametersOnCommand() 공개 메소드

public SetParametersOnCommand ( IDbCommand cmd, IEnumerable parameters ) : void
cmd IDbCommand
parameters IEnumerable
리턴 void

SupportsTruncate() 공개 메소드

public SupportsTruncate ( ) : bool
리턴 bool

TableAliasPrefix() 공개 메소드

public TableAliasPrefix ( ) : string
리턴 string

TableAliasSuffix() 공개 메소드

public TableAliasSuffix ( ) : string
리턴 string

ToCleanString() 공개 메소드

public ToCleanString ( ) : string
리턴 string

ToCompleteString() 공개 메소드

public ToCompleteString ( ) : string
리턴 string

UsePooling() 공개 메소드

public UsePooling ( ) : bool
리턴 bool