net.ontopia.topicmaps.cmdlineutils.rdbms
Class RDBMSIndexTool

java.lang.Object
  extended by net.ontopia.topicmaps.cmdlineutils.rdbms.RDBMSIndexTool

public class RDBMSIndexTool
extends java.lang.Object

EXPERIMENTAL: A tool that inspects a database to see if the proper indexes has been created.


Constructor Summary
RDBMSIndexTool()
           
 
Method Summary
protected static java.util.Map getIndexes(java.lang.String table_name, java.sql.DatabaseMetaData dbm)
           
protected static java.util.Map getPrimaryKeys(java.lang.String table_name, java.sql.DatabaseMetaData dbm)
           
static void main(java.lang.String[] argv)
           
protected static void print(java.lang.String prefix, java.util.Collection c)
           
protected static void print(java.lang.String prefix, java.util.Map m)
           
protected static java.lang.String unquote(java.lang.String column_name, java.lang.String quote)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBMSIndexTool

public RDBMSIndexTool()
Method Detail

main

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

print

protected static void print(java.lang.String prefix,
                            java.util.Collection c)

print

protected static void print(java.lang.String prefix,
                            java.util.Map m)

getIndexes

protected static java.util.Map getIndexes(java.lang.String table_name,
                                          java.sql.DatabaseMetaData dbm)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

getPrimaryKeys

protected static java.util.Map getPrimaryKeys(java.lang.String table_name,
                                              java.sql.DatabaseMetaData dbm)
                                       throws java.sql.SQLException
Throws:
java.sql.SQLException

unquote

protected static java.lang.String unquote(java.lang.String column_name,
                                          java.lang.String quote)


Copyright © 2000-2012 Ontopia.