C# 클래스 Sage.Integration.Northwind.Application.Base.EntityBase

파일 보기 프로젝트 열기: Sage/SData-Contracts

공개 메소드들

메소드 설명
Add ( Document doc, NorthwindConfig config, List &result ) : void

Delete ( Document doc, NorthwindConfig config, List &result ) : void

EntityBase ( string entityName ) : System

Initiate an Entity with its name

EntityBase ( string entityName, string delimiterClause ) : System
ExecuteTransactions ( Transaction TransactionData, NorthwindConfig config ) : Sage.Integration.Northwind.Application.API.TransactionResult[]

ExecuteTransaction is for the CRM system to send all create, update, and delete information from CRM to the ERP system.

FillChangeLog ( DataTable &table, NorthwindConfig config, Token lastToken ) : int

get the next changes from an entity

GetAll ( NorthwindConfig config, string whereExpression, System.Data.OleDb.OleDbParameter oleDbParameters ) : List
GetAll ( NorthwindConfig config, string whereExpression, int startIndex, int count ) : List
GetChangelog ( Token lastToken, NorthwindConfig config ) : ChangeLog

GetChangeLog is a request to the ERP system for changes to a specific named entity instance for specified time durations. A change can be either create, update, or delete.

GetDocument ( Identity identity, Token lastToken, NorthwindConfig config ) : Document

returns a filled document by the identity

GetDocumentTemplate ( ) : Document

Returns an empty document

GetLastChanges ( Token lastToken, NorthwindConfig config, Token &nextToken ) : Identity[]
Update ( Document doc, NorthwindConfig config, List &result ) : void

does an update for one entity entry

보호된 메소드들

메소드 설명
GetDeletedDocument ( Identity identity ) : Document

returns a deleted document

HandleDelimiterClause ( string &whereExpression ) : void

비공개 메소드들

메소드 설명
ExecuteTransaction ( Document doc, NorthwindConfig config, List &result ) : void

dispatch the transaction between Add, Update,Delete

메소드 상세

Add() 공개 메소드

public Add ( Document doc, NorthwindConfig config, List &result ) : void
doc Document
config NorthwindConfig
result List
리턴 void

Delete() 공개 메소드

public Delete ( Document doc, NorthwindConfig config, List &result ) : void
doc Document
config NorthwindConfig
result List
리턴 void

EntityBase() 공개 메소드

Initiate an Entity with its name
public EntityBase ( string entityName ) : System
entityName string
리턴 System

EntityBase() 공개 메소드

public EntityBase ( string entityName, string delimiterClause ) : System
entityName string
delimiterClause string
리턴 System

ExecuteTransactions() 공개 메소드

ExecuteTransaction is for the CRM system to send all create, update, and delete information from CRM to the ERP system.
public ExecuteTransactions ( Transaction TransactionData, NorthwindConfig config ) : Sage.Integration.Northwind.Application.API.TransactionResult[]
TransactionData Sage.Integration.Northwind.Application.API.Transaction
config NorthwindConfig the configuration object
리턴 Sage.Integration.Northwind.Application.API.TransactionResult[]

FillChangeLog() 공개 추상적인 메소드

get the next changes from an entity
public abstract FillChangeLog ( DataTable &table, NorthwindConfig config, Token lastToken ) : int
table System.Data.DataTable the datatable to fill
config NorthwindConfig the configuration object
lastToken Sage.Integration.Northwind.Application.API.Token the last token to get the next 10 changelog entries
리턴 int

GetAll() 공개 추상적인 메소드

public abstract GetAll ( NorthwindConfig config, string whereExpression, System.Data.OleDb.OleDbParameter oleDbParameters ) : List
config NorthwindConfig
whereExpression string
oleDbParameters System.Data.OleDb.OleDbParameter
리턴 List

GetAll() 공개 추상적인 메소드

public abstract GetAll ( NorthwindConfig config, string whereExpression, int startIndex, int count ) : List
config NorthwindConfig
whereExpression string
startIndex int
count int
리턴 List

GetChangelog() 공개 메소드

GetChangeLog is a request to the ERP system for changes to a specific named entity instance for specified time durations. A change can be either create, update, or delete.
public GetChangelog ( Token lastToken, NorthwindConfig config ) : ChangeLog
lastToken Sage.Integration.Northwind.Application.API.Token the last passed token
config NorthwindConfig the configuration object
리턴 Sage.Integration.Northwind.Application.API.ChangeLog

GetDeletedDocument() 보호된 메소드

returns a deleted document
protected GetDeletedDocument ( Identity identity ) : Document
identity Identity the identity
리턴 Document

GetDocument() 공개 추상적인 메소드

returns a filled document by the identity
public abstract GetDocument ( Identity identity, Token lastToken, NorthwindConfig config ) : Document
identity Identity the identity
lastToken Sage.Integration.Northwind.Application.API.Token the last token to set the logstate
config NorthwindConfig the configuration object
리턴 Document

GetDocumentTemplate() 공개 메소드

Returns an empty document
public GetDocumentTemplate ( ) : Document
리턴 Document

GetLastChanges() 공개 메소드

public GetLastChanges ( Token lastToken, NorthwindConfig config, Token &nextToken ) : Identity[]
lastToken Sage.Integration.Northwind.Application.API.Token
config NorthwindConfig
nextToken Sage.Integration.Northwind.Application.API.Token
리턴 Identity[]

HandleDelimiterClause() 보호된 메소드

protected HandleDelimiterClause ( string &whereExpression ) : void
whereExpression string
리턴 void

Update() 공개 메소드

does an update for one entity entry
public Update ( Document doc, NorthwindConfig config, List &result ) : void
doc Document
config NorthwindConfig
result List
리턴 void