net.ontopia.topicmaps.cmdlineutils.rdbms
Class RDBMSConsistencyChecker

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

public class RDBMSConsistencyChecker
extends Object

PUBLIC: Checks an RDBMS database holding topic map data for referential integrity and for uniqueness of source-locators, subject-indicators and subject-locators. Outputs tables/fields, where the field of one table references a field of another table with no corresponding value. Outputs field-combinations that fail the uniqueness test.


Field Summary
protected  Connection conn
           
protected  Writer out
           
 
Constructor Summary
RDBMSConsistencyChecker(String dbProperties, Writer writer)
           
 
Method Summary
static void main(String[] argv)
          Check a given database for topic map consistency..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conn

protected Connection conn

out

protected Writer out
Constructor Detail

RDBMSConsistencyChecker

public RDBMSConsistencyChecker(String dbProperties,
                               Writer writer)
                        throws SQLException,
                               IOException
Throws:
SQLException
IOException
Method Detail

main

public static void main(String[] argv)
                 throws Exception
Check a given database for topic map consistency.. In particular, checks for referential integrity and uniqueness.

Throws:
Exception


Copyright © 2000-2012 Ontopia.