C# Class UCSF.Business.DataImporter.GrantImporterBase

ファイルを表示 Open project: CTSIatUCSF/gadgets

Protected Properties

Property Type Description
log log4net.ILog

Public Methods

Method Description
ImportData ( string uri, string orgName = null, string DUNSNumber = null ) : void

Protected Methods

Method Description
AddGrantError ( Grant grant, Exception exception ) : void
AddGrantToRecordset ( Grant grant ) : void
AddSuccessGrant ( Grant grant ) : void
CheckIfGrantExists ( Grant grant ) : bool
CompleteTransaction ( ) : void
GetPrincipalInvestigator ( int principalInvestigatorId ) : PrincipalInvestigator
GrantImporterBase ( ) : System
GrantImporterBase ( UCSDDataContext dataContext ) : System
StartTransaction ( ) : void
UpdateGrant ( Grant grant, System.Xml.Linq.XElement node ) : bool
UpdateGrantInvestigators ( Grant grant, System.Xml.Linq.XElement node ) : void
ValidateGrant ( Grant grant ) : void

Private Methods

Method Description
FlushStream ( StreamWriter stream ) : void
ValidateField ( string data, int length ) : void

Method Details

AddGrantError() protected method

protected AddGrantError ( Grant grant, Exception exception ) : void
grant UCSF.Data.Grant
exception System.Exception
return void

AddGrantToRecordset() protected method

protected AddGrantToRecordset ( Grant grant ) : void
grant UCSF.Data.Grant
return void

AddSuccessGrant() protected method

protected AddSuccessGrant ( Grant grant ) : void
grant UCSF.Data.Grant
return void

CheckIfGrantExists() protected abstract method

protected abstract CheckIfGrantExists ( Grant grant ) : bool
grant UCSF.Data.Grant
return bool

CompleteTransaction() protected abstract method

protected abstract CompleteTransaction ( ) : void
return void

GetPrincipalInvestigator() protected abstract method

protected abstract GetPrincipalInvestigator ( int principalInvestigatorId ) : PrincipalInvestigator
principalInvestigatorId int
return UCSF.Data.PrincipalInvestigator

GrantImporterBase() protected method

protected GrantImporterBase ( ) : System
return System

GrantImporterBase() protected method

protected GrantImporterBase ( UCSDDataContext dataContext ) : System
dataContext UCSF.Data.UCSDDataContext
return System

ImportData() public method

public ImportData ( string uri, string orgName = null, string DUNSNumber = null ) : void
uri string
orgName string
DUNSNumber string
return void

StartTransaction() protected abstract method

protected abstract StartTransaction ( ) : void
return void

UpdateGrant() protected method

protected UpdateGrant ( Grant grant, System.Xml.Linq.XElement node ) : bool
grant UCSF.Data.Grant
node System.Xml.Linq.XElement
return bool

UpdateGrantInvestigators() protected method

protected UpdateGrantInvestigators ( Grant grant, System.Xml.Linq.XElement node ) : void
grant UCSF.Data.Grant
node System.Xml.Linq.XElement
return void

ValidateGrant() protected method

protected ValidateGrant ( Grant grant ) : void
grant UCSF.Data.Grant
return void

Property Details

log protected_oe static_oe property

protected static ILog,log4net log
return log4net.ILog