net.ontopia.topicmaps.cmdlineutils.rdbms
Class RDBMSIndexTool

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

public class RDBMSIndexTool
extends Object

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


Constructor Summary
RDBMSIndexTool()
           
 
Method Summary
protected static Map getIndexes(String table_name, DatabaseMetaData dbm)
           
protected static Map getPrimaryKeys(String table_name, DatabaseMetaData dbm)
           
static void main(String[] argv)
           
protected static void print(String prefix, Collection c)
           
protected static void print(String prefix, Map m)
           
protected static String unquote(String column_name, 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(String[] argv)
                 throws Exception
Throws:
Exception

print

protected static void print(String prefix,
                            Collection c)

print

protected static void print(String prefix,
                            Map m)

getIndexes

protected static Map getIndexes(String table_name,
                                DatabaseMetaData dbm)
                         throws SQLException
Throws:
SQLException

getPrimaryKeys

protected static Map getPrimaryKeys(String table_name,
                                    DatabaseMetaData dbm)
                             throws SQLException
Throws:
SQLException

unquote

protected static String unquote(String column_name,
                                String quote)


Copyright © 2000-2012 Ontopia.