C# 클래스 Candor.Data.SequenceIdGenerator

Generates sequences for tables in which the database does not have a built in sequence capability.
파일 보기 프로젝트 열기: michael-lang/candor-common

Private Properties

프로퍼티 타입 설명
GetSequenceIdStore SequenceIdStore
RenewCachedIds void

공개 메소드들

메소드 설명
NextId ( String tableName ) : String

Takes the first reserved Id for this node from the sequence. If necassary, it will reserve a new block of Ids.

SequenceIdGenerator ( ISequenceIdOptimisticSyncStore store ) : System

Creates a new generator that loads all sequence schemas from the supplied store.

SequenceIdGenerator ( ISequenceIdOptimisticSyncStore store, SequenceIdStore sequence ) : System

Creates a new generator with only a single sequence schema.

비공개 메소드들

메소드 설명
GetSequenceIdStore ( String tableName ) : SequenceIdStore
RenewCachedIds ( SequenceIdStore sequence ) : void

메소드 상세

NextId() 공개 메소드

Takes the first reserved Id for this node from the sequence. If necassary, it will reserve a new block of Ids.
public NextId ( String tableName ) : String
tableName String
리턴 String

SequenceIdGenerator() 공개 메소드

Creates a new generator that loads all sequence schemas from the supplied store.
public SequenceIdGenerator ( ISequenceIdOptimisticSyncStore store ) : System
store ISequenceIdOptimisticSyncStore
리턴 System

SequenceIdGenerator() 공개 메소드

Creates a new generator with only a single sequence schema.
public SequenceIdGenerator ( ISequenceIdOptimisticSyncStore store, SequenceIdStore sequence ) : System
store ISequenceIdOptimisticSyncStore
sequence SequenceIdStore
리턴 System