com.esri.arcgis.geodatabase
Class INetworkWorkspace2Proxy
java.lang.Object
com.esri.arcgis.interop.Dispatch
com.esri.arcgis.geodatabase.INetworkWorkspaceProxy
com.esri.arcgis.geodatabase.INetworkWorkspace2Proxy
- All Implemented Interfaces:
- INetworkWorkspace, INetworkWorkspace2, Externalizable, Serializable
public class INetworkWorkspace2Proxy
- extends INetworkWorkspaceProxy
- implements INetworkWorkspace2, 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.
Supported Platforms
Windows, Solaris, Linux
- See Also:
- Serialized Form
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E |
| Methods inherited from class com.esri.arcgis.interop.Dispatch |
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, queryInterface, release, setNativeMode, setPropertyByName, toString, vtblInvoke |
INetworkWorkspace2Proxy
public INetworkWorkspace2Proxy()
INetworkWorkspace2Proxy
public INetworkWorkspace2Proxy(Object obj)
throws IOException
- Throws:
IOException
INetworkWorkspace2Proxy
protected INetworkWorkspace2Proxy(Object obj,
String iid)
throws IOException
- Throws:
IOException
addListener
public void addListener(String iidStr,
Object theListener,
Object theSource)
throws IOException
- Overrides:
addListener in class INetworkWorkspaceProxy
- Throws:
IOException
removeListener
public void removeListener(String iidStr,
Object theListener)
throws IOException
- Overrides:
removeListener in class INetworkWorkspaceProxy
- Throws:
IOException
getFormatNumberCount
public 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
- Specified by:
getFormatNumberCount in interface INetworkWorkspace2
- Returns:
- The count
- Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
getFormatNumber
public int getFormatNumber(int index)
throws IOException,
AutomationException
- The specified format number.
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
- Specified by:
getFormatNumber in interface INetworkWorkspace2
- Parameters:
index - The index (in)
- Returns:
- The formatNum
- Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
getMaxStorableClassID
public 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
- Specified by:
getMaxStorableClassID in interface INetworkWorkspace2
- Parameters:
formatNum - The formatNum (in)
- Returns:
- The maxClassID
- Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
createNetworkEx
public 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
- Specified by:
createNetworkEx in interface INetworkWorkspace2
- 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.
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable- Overrides:
writeExternal in class INetworkWorkspaceProxy
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable- Overrides:
readExternal in class INetworkWorkspaceProxy
- Throws:
IOException
ClassNotFoundException