Skip navigation links

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


oracle.spatial.network.lod
Interface LODUserDataIO


public interface LODUserDataIO

This interface defines methods to read and write user defined data from and to the database.

Since:
11gR1

Method Summary
 void init(java.sql.Connection conn, NetworkMetadata networkMetadata)
          Initialize the user data IO implementation.
 java.util.Map<java.lang.String,java.lang.Object>[] readUserData(java.lang.String type, long[] ids)
          Reads user defined data from the database.
 void writeUserData(java.lang.String type, long[] ids, java.util.Map<java.lang.String,java.lang.Object>[] userData)
          Writes user defined data to the database.

 

Method Detail

init

void init(java.sql.Connection conn,
          NetworkMetadata networkMetadata)
Initialize the user data IO implementation. This sets the database connection and the network metadata.
Parameters:
conn - database connection
networkMetadata - network metadata

readUserData

java.util.Map<java.lang.String,java.lang.Object>[] readUserData(java.lang.String type,
                                                                long[] ids)
Reads user defined data from the database.
Parameters:
type - 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.

writeUserData

void writeUserData(java.lang.String type,
                   long[] ids,
                   java.util.Map<java.lang.String,java.lang.Object>[] userData)
Writes user defined data to the database.
Parameters:
type - 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.

Skip navigation links

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


Copyright © 2007, Oracle. All Rights Reserved.