C# 클래스 Azavea.Open.DAO.Memory.MemoryDescriptor

Describes a connection to "memory". This is mostly intended as a test implementation, the data source is just a structure in memory, but it is possible this will have some practical applications as well. Two connections using the same uid will hit the same in-memory collection of objects.
상속: ConnectionDescriptor
파일 보기 프로젝트 열기: azavea/net-dao

공개 프로퍼티들

프로퍼티 타입 설명
Uid string

공개 메소드들

메소드 설명
CreateDataAccessLayer ( ) : IDaLayer

Returns the appropriate data access layer for this connection.

MemoryDescriptor ( Config config, string component, ConnectionInfoDecryptionDelegate decryptionDelegate ) : Azavea.Open.Common

Populates the descriptor's values from a config file.

MemoryDescriptor ( string uid ) : Azavea.Open.Common

Instantiate an in-memory datastore connection.

ToCleanString ( ) : string

This method is similar to ToString, except it will not contain any "sensitive" information, I.E. passwords. This method is intended to be used for logging or error handling, where we do not want to display passwords to (potentially) just anyone, but we do want to indicate what DB connection we were using.

ToCompleteString ( ) : string

Since we often need to represent database connection info as strings, child classes must implement ToCompleteString() such that this.Equals(that) and this.ToCompleteString().Equals(that.ToCompleteString()) will behave the same.

메소드 상세

CreateDataAccessLayer() 공개 메소드

Returns the appropriate data access layer for this connection.
public CreateDataAccessLayer ( ) : IDaLayer
리턴 IDaLayer

MemoryDescriptor() 공개 메소드

Populates the descriptor's values from a config file.
public MemoryDescriptor ( Config config, string component, ConnectionInfoDecryptionDelegate decryptionDelegate ) : Azavea.Open.Common
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.
리턴 Azavea.Open.Common

MemoryDescriptor() 공개 메소드

Instantiate an in-memory datastore connection.
public MemoryDescriptor ( string uid ) : Azavea.Open.Common
uid string The ID of the in-memory store this descriptor connects to.
리턴 Azavea.Open.Common

ToCleanString() 공개 메소드

This method is similar to ToString, except it will not contain any "sensitive" information, I.E. passwords. This method is intended to be used for logging or error handling, where we do not want to display passwords to (potentially) just anyone, but we do want to indicate what DB connection we were using.
public ToCleanString ( ) : string
리턴 string

ToCompleteString() 공개 메소드

Since we often need to represent database connection info as strings, child classes must implement ToCompleteString() such that this.Equals(that) and this.ToCompleteString().Equals(that.ToCompleteString()) will behave the same.
public ToCompleteString ( ) : string
리턴 string

프로퍼티 상세

Uid 공개적으로 프로퍼티

The ID of the in-memory store this descriptor connects to.
public string Uid
리턴 string