Skip navigation links

Oracle® Spatial Java API Reference
11g Release 2 (11.2)
E11829-02


oracle.spatial.network.lod
Class LODUserDataIOSDO

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

All Implemented Interfaces:
LODUserDataIO

public class LODUserDataIOSDO
extends java.lang.Object
implements LODUserDataIO

This implementation of LODUserDataIO reads all the user defined data from the node, link and path tables.

Since:
11gR1

Constructor Summary
LODUserDataIOSDO()
           
LODUserDataIOSDO(java.sql.Connection conn, NetworkMetadata metadata, int categoryId)
           

 

Method Summary
 int getCategoryId()
           
 java.sql.Connection getConnection()
           
 NetworkMetadata getNetworkMetadata()
           
 int getNumberOfCategories()
           
 void init(java.sql.Connection conn, NetworkMetadata metadata, int categoryId)
           
static void main(java.lang.String[] args)
           
 UserData[] readUserData(int tableType, long[] ids)
           
 void readUserData(LogicalPartition partition)
           
 UserData[] readUserData(java.lang.String tableType, long[] ids)
          Reads user defined data from the database.
 void setCategoryId(int categoryId)
           
 void setConnection(java.sql.Connection conn)
           
 void setNetworkMetadata(NetworkMetadata metadata)
           
 void writeUserData(LogicalPartition partition)
           
 void writeUserData(java.lang.String tableType, long[] ids, UserData[] userData)
          Writes user defined data to the database.

 

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

 

Constructor Detail

LODUserDataIOSDO

public LODUserDataIOSDO()

LODUserDataIOSDO

public LODUserDataIOSDO(java.sql.Connection conn,
                        NetworkMetadata metadata,
                        int categoryId)

Method Detail

init

public void init(java.sql.Connection conn,
                 NetworkMetadata metadata,
                 int categoryId)

readUserData

public UserData[] readUserData(java.lang.String tableType,
                               long[] ids)
Description copied from interface: LODUserDataIO
Reads user defined data from the database.
Specified by:
readUserData in interface LODUserDataIO
Parameters:
tableType - user data type, which can take the following values:
- UserDataMetadata.NODE_TABLE_TYPE
- UserDataMetadata.LINK_TABLE_TYPE
- UserDataMetadata.PATH_TABLE_TYPE
ids - the IDs of the objects for which the user data are read
Returns:
array of user data maps, each corresponding to an ID of the same index in the ID array.

readUserData

public UserData[] readUserData(int tableType,
                               long[] ids)

writeUserData

public void writeUserData(java.lang.String tableType,
                          long[] ids,
                          UserData[] userData)
Description copied from interface: LODUserDataIO
Writes user defined data to the database.
Specified by:
writeUserData in interface LODUserDataIO
Parameters:
tableType - user data type, which can take the following values:
- UserDataMetadata.NODE_TABLE_TYPE
- UserDataMetadata.LINK_TABLE_TYPE
- UserDataMetadata.PATH_TABLE_TYPE
ids - the IDs of the objects for which the user data are written out
userData - array of user data maps, each corresponding to an ID of the same index in the ID array.

readUserData

public void readUserData(LogicalPartition partition)
Specified by:
readUserData in interface LODUserDataIO

writeUserData

public void writeUserData(LogicalPartition partition)
Specified by:
writeUserData in interface LODUserDataIO

getNumberOfCategories

public int getNumberOfCategories()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getConnection

public java.sql.Connection getConnection()
Specified by:
getConnection in interface LODUserDataIO

setConnection

public void setConnection(java.sql.Connection conn)
Specified by:
setConnection in interface LODUserDataIO

getNetworkMetadata

public NetworkMetadata getNetworkMetadata()
Specified by:
getNetworkMetadata in interface LODUserDataIO

setNetworkMetadata

public void setNetworkMetadata(NetworkMetadata metadata)
Specified by:
setNetworkMetadata in interface LODUserDataIO

getCategoryId

public int getCategoryId()
Specified by:
getCategoryId in interface LODUserDataIO

setCategoryId

public void setCategoryId(int categoryId)
Specified by:
setCategoryId in interface LODUserDataIO

Skip navigation links

Oracle® Spatial Java API Reference
11g Release 2 (11.2)
E11829-02


Copyright © 2007, 2011, Oracle and/or its affiliates. All Rights Reserved.