Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)

B28401-02


oracle.spatial.network.lod
Class LODNetworkWrapper

java.lang.Object
  extended by oracle.spatial.network.lod.LODNetworkWrapper


public class LODNetworkWrapper
extends java.lang.Object

This is the wrapper class containing LOD related java stored procedures used by SDO_NET package.

Since:
11gR1

Field Summary
static int LEVEL_DEBUG
           
static int LEVEL_ERROR
           
static int LEVEL_FATAL
           
static int LEVEL_FINEST
           
static int LEVEL_INFO
           
static int LEVEL_WARN
           

 

Method Summary
static void findConnectedComponents(java.lang.String networkName, int linkLevel, java.lang.String componentTable)
          Find the connected components and writes the node component relationship into component table.
static void generatePartitionBlob(java.lang.String networkName, int linkLevel, int partitionId, boolean includeUserData)
          Writes partition BLOBs into partition blob table.
static void generatePartitionBlobs(java.lang.String networkName, int linkLevel, java.lang.String partitionBlobTable, boolean includeUserData, boolean commitForEachBlob)
          Writes partition BLOBs into partition blob table.
static long getPartitionSize(java.lang.String networkName, int partitionId, int linkLevel, boolean includeUserData, boolean includeSpatialData)
          Returns the approximated size of a network partition in bytes
static void loadConfig(CLOB configXml)
          Reloads the configuration xml.
static void setConnection(OracleConnection conn)
          Sets the JDBC connection to the database.
static void setLoggingLevel(int level)
          Sets java global logging level.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

LEVEL_FATAL

public static final int LEVEL_FATAL
See Also:
Constant Field Values

LEVEL_ERROR

public static final int LEVEL_ERROR
See Also:
Constant Field Values

LEVEL_WARN

public static final int LEVEL_WARN
See Also:
Constant Field Values

LEVEL_INFO

public static final int LEVEL_INFO
See Also:
Constant Field Values

LEVEL_DEBUG

public static final int LEVEL_DEBUG
See Also:
Constant Field Values

LEVEL_FINEST

public static final int LEVEL_FINEST
See Also:
Constant Field Values

Method Detail

setConnection

public static void setConnection(OracleConnection conn)
Sets the JDBC connection to the database.
Parameters:
conn - connection to the database

setLoggingLevel

public static void setLoggingLevel(int level)
Sets java global logging level.
Parameters:
level - LOD logging level, which can take the following values:
  • LODNetworkWrapper.LEVEL_FATAL = 1;
  • LODNetworkWrapper.LEVEL_ERROR = 2;
  • LODNetworkWrapper.LEVEL_WARN = 3;
  • LODNetworkWrapper.LEVEL_INFO = 4;
  • LODNetworkWrapper.LEVEL_DEBUG = 5;
  • LODNetworkWrapper.LEVEL_FINEST = 6;

loadConfig

public static void loadConfig(CLOB configXml)
                       throws LODNetworkException
Reloads the configuration xml.
Parameters:
configXml - configuration xml
Throws:
LODNetworkException

generatePartitionBlob

public static void generatePartitionBlob(java.lang.String networkName,
                                         int linkLevel,
                                         int partitionId,
                                         boolean includeUserData)
                                  throws LODNetworkException
Writes partition BLOBs into partition blob table. The caller needs to make sure that the partition blob table already exists before calling this method.
Parameters:
networkName - network name
linkLevel - link level
partitionId - partition ID
includeUserData - is user defined data included in the BLOB
Throws:
LODNetworkException

generatePartitionBlobs

public static void generatePartitionBlobs(java.lang.String networkName,
                                          int linkLevel,
                                          java.lang.String partitionBlobTable,
                                          boolean includeUserData,
                                          boolean commitForEachBlob)
                                   throws LODNetworkException
Writes partition BLOBs into partition blob table. The caller needs to make sure that the partition blob table already exists before calling this method.
Parameters:
networkName - network name
linkLevel - link level
partitionBlobTable - partition BLOB table name
includeUserData - is user defined data included in the BLOBs
Throws:
LODNetworkException

findConnectedComponents

public static void findConnectedComponents(java.lang.String networkName,
                                           int linkLevel,
                                           java.lang.String componentTable)
                                    throws LODNetworkException
Find the connected components and writes the node component relationship into component table. The caller needs to make sure that the component table already exists before calling this method.
Parameters:
networkName - network name
linkLevel - link level
componentTable - connected component table name
Throws:
LODNetworkException

getPartitionSize

public static long getPartitionSize(java.lang.String networkName,
                                    int partitionId,
                                    int linkLevel,
                                    boolean includeUserData,
                                    boolean includeSpatialData)
                             throws LODNetworkException,
                                    java.lang.Exception
Returns the approximated size of a network partition in bytes
Parameters:
networkName - network name
partitionId - partition ID
linkLevel - link level
includeUserData - is user defined data included in the partition
includeSpatialData - is spatial information included in the partition
Returns:
partition size in bytes
Throws:
LODNetworkException
java.lang.Exception

Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)

B28401-02


Copyright © 2007, 2008, Oracle. All Rights Reserved.