C# Класс Candor.Data.SequenceIdGenerator

Generates sequences for tables in which the database does not have a built in sequence capability.
Показать файл Открыть проект

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