C# Class FdoToolbox.Core.ETL.CopySpatialContext

Default copy spatial contexts command
Inheritance: ICopySpatialContext
Show file Open project: jumpinjackie/fdotoolbox

Public Methods

Method Description
Execute ( FdoConnection source, FdoConnection target, bool overwrite ) : void

Copies all spatial contexts

Execute ( FdoConnection source, FdoConnection target, bool overwrite, string spatialContextNames ) : void

Copies the spatial contexts given in the list

Execute ( ICollection spatialContexts, FdoConnection target, bool overwrite ) : void

Copies all spatial contexts

Protected Methods

Method Description
SpatialContextExists ( ReadOnlyCollection targetContexts, SpatialContextInfo sc ) : bool

Determines if a given spatial context exists in the given collection (comparison is by name).

SpatialContextInSpecifiedList ( SpatialContextInfo ctx, string names ) : bool

Determines if the given spatial context in the list of spatial context names

Method Details

Execute() public method

Copies all spatial contexts
public Execute ( FdoConnection source, FdoConnection target, bool overwrite ) : void
source FdoToolbox.Core.Feature.FdoConnection The source connection
target FdoToolbox.Core.Feature.FdoConnection The target connection
overwrite bool If true will overwrite any existing spatial contexts
return void

Execute() public method

Copies the spatial contexts given in the list
public Execute ( FdoConnection source, FdoConnection target, bool overwrite, string spatialContextNames ) : void
source FdoToolbox.Core.Feature.FdoConnection The source connection
target FdoToolbox.Core.Feature.FdoConnection The target connection
overwrite bool If true will overwrite any existing spatial contexts
spatialContextNames string The list of spatial contexts to copy
return void

Execute() public method

Copies all spatial contexts
public Execute ( ICollection spatialContexts, FdoConnection target, bool overwrite ) : void
spatialContexts ICollection The spatial contexts.
target FdoToolbox.Core.Feature.FdoConnection The target.
overwrite bool if set to true [overwrite].
return void

SpatialContextExists() protected static method

Determines if a given spatial context exists in the given collection (comparison is by name).
protected static SpatialContextExists ( ReadOnlyCollection targetContexts, SpatialContextInfo sc ) : bool
targetContexts ReadOnlyCollection The target spatial context list
sc FdoToolbox.Core.Feature.SpatialContextInfo The spatial context to look for
return bool

SpatialContextInSpecifiedList() protected method

Determines if the given spatial context in the list of spatial context names
protected SpatialContextInSpecifiedList ( SpatialContextInfo ctx, string names ) : bool
ctx FdoToolbox.Core.Feature.SpatialContextInfo The spatial context
names string The spatial context name list
return bool