C# Class mergedServices.ObjectsRelationManager

Show file Open project: sherifkandeel/weet-it_WCF

Public Methods

Method Description
closeConnection ( ) : void

closes the connection of the server

generateQueries ( string object1, string object2, int maxDistance = 3, int limit = 50, List ignoredObjects = null, List ignoredProperties = null, int avoidCycles = 1 ) : bool

Builds and returns a set of queries to find relations between two object1 and object2.

getNextResult ( ) : string

Query the next result

startConnection ( ) : void

starts the connection to the server

Method Details

closeConnection() public method

closes the connection of the server
public closeConnection ( ) : void
return void

generateQueries() public method

Builds and returns a set of queries to find relations between two object1 and object2.
public generateQueries ( string object1, string object2, int maxDistance = 3, int limit = 50, List ignoredObjects = null, List ignoredProperties = null, int avoidCycles = 1 ) : bool
object1 string object1
object2 string object2
maxDistance int MaxiumDistance between the two objects
limit int Limit of results
ignoredObjects List List of strings of names of objects be ignored in the Queries
ignoredProperties List List of strings of names of properties to be ignored in the Queries
avoidCycles int Integer value which indicates whether we want to suppress cycles , 0 = no cycle avoidance , 1 = no intermediate object can be object1 or object2 , 2 = like 1 + an object can not occur more than once in a connection
return bool

getNextResult() public method

Query the next result
public getNextResult ( ) : string
return string

startConnection() public method

starts the connection to the server
public startConnection ( ) : void
return void