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
파일 보기 프로젝트 열기: sillsdev/FieldWorks

공개 메소드들

메소드 설명
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