C# Class Sage.Integration.Northwind.Application.Base.EntityBase

Afficher le fichier Open project: Sage/SData-Contracts

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
GetDeletedDocument ( Identity identity ) : Document

returns a deleted document

HandleDelimiterClause ( string &whereExpression ) : void

Private Methods

Méthode Description
ExecuteTransaction ( Document doc, NorthwindConfig config, List &result ) : void

dispatch the transaction between Add, Update,Delete

Method Details

Add() public méthode

public Add ( Document doc, NorthwindConfig config, List &result ) : void
doc Document
config NorthwindConfig
result List
Résultat void

Delete() public méthode

public Delete ( Document doc, NorthwindConfig config, List &result ) : void
doc Document
config NorthwindConfig
result List
Résultat void

EntityBase() public méthode

Initiate an Entity with its name
public EntityBase ( string entityName ) : System
entityName string
Résultat System

EntityBase() public méthode

public EntityBase ( string entityName, string delimiterClause ) : System
entityName string
delimiterClause string
Résultat System

ExecuteTransactions() public méthode

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
Résultat Sage.Integration.Northwind.Application.API.TransactionResult[]

FillChangeLog() public abstract méthode

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
Résultat int

GetAll() public abstract méthode

public abstract GetAll ( NorthwindConfig config, string whereExpression, System.Data.OleDb.OleDbParameter oleDbParameters ) : List
config NorthwindConfig
whereExpression string
oleDbParameters System.Data.OleDb.OleDbParameter
Résultat List

GetAll() public abstract méthode

public abstract GetAll ( NorthwindConfig config, string whereExpression, int startIndex, int count ) : List
config NorthwindConfig
whereExpression string
startIndex int
count int
Résultat List

GetChangelog() public méthode

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
Résultat Sage.Integration.Northwind.Application.API.ChangeLog

GetDeletedDocument() protected méthode

returns a deleted document
protected GetDeletedDocument ( Identity identity ) : Document
identity Identity the identity
Résultat Document

GetDocument() public abstract méthode

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
Résultat Document

GetDocumentTemplate() public méthode

Returns an empty document
public GetDocumentTemplate ( ) : Document
Résultat Document

GetLastChanges() public méthode

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
Résultat Identity[]

HandleDelimiterClause() protected méthode

protected HandleDelimiterClause ( string &whereExpression ) : void
whereExpression string
Résultat void

Update() public méthode

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