C# Класс SIL.FieldWorks.FDO.Infrastructure.Impl.XMLBackendProvider

A subclass of the FDOBackendProvider which handles an XML file-based system.
Наследование: SIL.FieldWorks.FDO.Infrastructure.Impl.FDOBackendProvider
Показать файл Открыть проект

Открытые методы

Метод Описание
Commit ( HashSet newbies, HashSet dirtballs, HashSet goners ) : bool

Update the backend store.

CompleteAllCommits ( ) : void

The XML backend has finished all commits when its write thread is idle.

IsProjectLocked ( string projectPath ) : bool
RenameDatabase ( string sNewProjectName ) : bool

Rename the database, which means renaming the files.

Защищенные методы

Метод Описание
CreateInternal ( ) : void

Create a LangProject with the BEP.

MakeSurrogate ( byte xmlBytes ) : void
PerformCommit ( HashSet newbies, HashSet dirtballs, HashSet goners, IEnumerable customFields ) : void
ReadInSurrogates ( int currentModelVersion ) : int
ShutdownInternal ( ) : void

Shutdown the BEP.

StartupInternal ( int currentModelVersion ) : int

Start the BEP.

UpdateVersionNumber ( ) : void

Update the version number.

WriteCommitWork ( CommitWork workItem ) : void

Приватные методы

Метод Описание
CopyTempFileToOriginal ( bool fUseLocalTempFile, string mainPathname, string tempPathname ) : void
GetActualModelVersionNumber ( string path ) : int
GetAttribute ( byte name, byte input ) : string
IsLocalDrive ( string path ) : bool
LockProject ( ) : void
OfferToRestore ( string message ) : void
ReportDuplicateGuidsIfTheyExist ( ) : void
ReportProblem ( string message, string tempPath ) : void
UnlockProject ( ) : void
Work ( CommitWork>.IQueueAccessor queueAccessor ) : void

Performs the actual commit operation.

XMLBackendProvider ( FdoCache cache, IdentityMap identityMap, ICmObjectSurrogateFactory surrogateFactory, IFwMetaDataCacheManagedInternal mdc, IDataMigrationManager dataMigrationManager, IFdoUI ui, IFdoDirectories dirs, FdoSettings settings ) : System

Constructor.

Описание методов

Commit() публичный метод

Update the backend store.
public Commit ( HashSet newbies, HashSet dirtballs, HashSet goners ) : bool
newbies HashSet The newly created objects
dirtballs HashSet The recently modified objects
goners HashSet The recently deleted objects
Результат bool

CompleteAllCommits() публичный метод

The XML backend has finished all commits when its write thread is idle.
public CompleteAllCommits ( ) : void
Результат void

CreateInternal() защищенный метод

Create a LangProject with the BEP.
protected CreateInternal ( ) : void
Результат void

IsProjectLocked() публичный статический метод

public static IsProjectLocked ( string projectPath ) : bool
projectPath string
Результат bool

MakeSurrogate() защищенный метод

protected MakeSurrogate ( byte xmlBytes ) : void
xmlBytes byte
Результат void

PerformCommit() защищенный метод

protected PerformCommit ( HashSet newbies, HashSet dirtballs, HashSet goners, IEnumerable customFields ) : void
newbies HashSet
dirtballs HashSet
goners HashSet
customFields IEnumerable
Результат void

ReadInSurrogates() защищенный метод

protected ReadInSurrogates ( int currentModelVersion ) : int
currentModelVersion int
Результат int

RenameDatabase() публичный метод

Rename the database, which means renaming the files.
public RenameDatabase ( string sNewProjectName ) : bool
sNewProjectName string
Результат bool

ShutdownInternal() защищенный метод

Shutdown the BEP.
protected ShutdownInternal ( ) : void
Результат void

StartupInternal() защищенный метод

Start the BEP.
protected StartupInternal ( int currentModelVersion ) : int
currentModelVersion int The current model version.
Результат int

UpdateVersionNumber() защищенный метод

Update the version number.
protected UpdateVersionNumber ( ) : void
Результат void

WriteCommitWork() защищенный метод

protected WriteCommitWork ( CommitWork workItem ) : void
workItem CommitWork
Результат void