com.esri.arcgis.geodatabase
Interface INetworkWorkspace2

All Superinterfaces:
INetworkWorkspace, Serializable
All Known Implementing Classes:
INetworkWorkspace2Proxy, NetworkWorkspace, Sde4Workspace

public interface INetworkWorkspace2
extends INetworkWorkspace, Serializable

Provides access to members that create and maintain information about logical networks.

When To Use

Use the INetworkWorkspace2 interface when you want to create a logical network that is not associated with a geometric network. This interface differs from INetworkWorkspace in that the CreateNetwork method allows for the entry of a configuration keyword. The keyword is used by ArcSDE to determine what set of parameters from the dbtune file to employ.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 INetwork createNetworkEx(String networkName, int networkType, boolean buildNormalizedTables, String configKeyword, int formatNum)
          Creates a logical network based on the specified configuration keyword.
 int getFormatNumber(int index)
          The specified format number.
 int getFormatNumberCount()
          The count of valid format numbers.
 int getMaxStorableClassID(int formatNum)
          Returns the maximum storable feature class ID for the given format number.
 
Methods inherited from interface com.esri.arcgis.geodatabase.INetworkWorkspace
createNetwork, getNetworkNames, openNetwork
 

Method Detail

getFormatNumberCount

int getFormatNumberCount()
                         throws IOException,
                                AutomationException
The count of valid format numbers.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFormatNumber

int getFormatNumber(int index)
                    throws IOException,
                           AutomationException
The specified format number.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
index - The index (in)
Returns:
The formatNum
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMaxStorableClassID

int getMaxStorableClassID(int formatNum)
                          throws IOException,
                                 AutomationException
Returns the maximum storable feature class ID for the given format number.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
formatNum - The formatNum (in)
Returns:
The maxClassID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createNetworkEx

INetwork createNetworkEx(String networkName,
                         int networkType,
                         boolean buildNormalizedTables,
                         String configKeyword,
                         int formatNum)
                         throws IOException,
                                AutomationException
Creates a logical network based on the specified configuration keyword.

Remarks

CreateNetworkEx is used to create a logical network that is not associated with a geometric network. If you want to create a geometric network along with the logical network, then use the INetworkCollection2::CreateGeometricNetworkEx method.
CreateNetworkEx differs from INetworkWorkspace::CreateNetwork in that this method contains additional parameters to specify the Configuration keyword for creating networks in ArcSDE and for specifying the storage format for the network. The configuartion keyword specifies how the logical network tables and indexes are stored in ArcSDE.
The format parameter outlines the storage of feature class IDs which participate in the geometric network. The storage format can be specified as either narrow or wide. Networks with a narrow format can only contain feature classes with class IDs less than 10,000 while networks with a wide format have no limitation on the feature class ID value. Unless you specifically require narrow networks, the format should always be set to a value of 1 for the wide storage format.
The connectivity for the logical network is stored in a series of tables in the database. The actual connectivity is managed in a series of BLOBs.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
networkName - The networkName (in)
networkType - A com.esri.arcgis.geodatabase.esriNetworkType constant (in)
buildNormalizedTables - The buildNormalizedTables (in)
configKeyword - The configKeyword (in)
formatNum - The formatNum (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.INetwork
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.