com.mizar.metadata.utils
Class SdoUtils

java.lang.Object
  extended by com.mizar.metadata.utils.SdoUtils

public class SdoUtils
extends java.lang.Object


Constructor Summary
protected SdoUtils()
           
 
Method Summary
static void createSpatialIndex(java.sql.Connection conn, java.lang.String indexName, java.lang.String tableName, java.lang.String columnName)
           
static java.util.HashMap<java.lang.String,java.lang.String> getCustomTags(char[] xml)
          The USER_SDO_MAPS and USER_SDO_THEMES views include a <custom_tags> node as an immediate child of the root element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SdoUtils

protected SdoUtils()
Method Detail

getCustomTags

public static java.util.HashMap<java.lang.String,java.lang.String> getCustomTags(char[] xml)
The USER_SDO_MAPS and USER_SDO_THEMES views include a <custom_tags> node as an immediate child of the root element. This method finds <tag> nodes within the <custom_tags> node and returns them as key/value pairs in a HashMap.

Parameters:
xml - from UserSdoMapsBean, the definition property; from UserSdoThemesBean the stylingRulesClob property.
Returns:
a HashMap of custom tags where key=name and value=value
See Also:
SdoMapsSuperClass.getCustomTags(), SdoThemesSuperClass.getCustomTags()

createSpatialIndex

public static void createSpatialIndex(java.sql.Connection conn,
                                      java.lang.String indexName,
                                      java.lang.String tableName,
                                      java.lang.String columnName)
                               throws java.sql.SQLException
Parameters:
conn -
indexName -
tableName -
columnName -
Throws:
java.sql.SQLException
See Also:
JDBCUtils.createIndex(Connection conn, boolean unique, String indexName, String tableName, String columnName, boolean spatial)