net.ontopia.topicmaps.cmdlineutils.rdbms
Class RDBMSConsistencyChecker
java.lang.Object
net.ontopia.topicmaps.cmdlineutils.rdbms.RDBMSConsistencyChecker
public class RDBMSConsistencyChecker
- extends java.lang.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 java.sql.Connection |
conn
|
protected java.io.Writer |
out
|
Method Summary |
static void |
main(java.lang.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 |
conn
protected java.sql.Connection conn
out
protected java.io.Writer out
RDBMSConsistencyChecker
public RDBMSConsistencyChecker(java.lang.String dbProperties,
java.io.Writer writer)
throws java.sql.SQLException,
java.io.IOException
- Throws:
java.sql.SQLException
java.io.IOException
main
public static void main(java.lang.String[] argv)
throws java.lang.Exception
- Check a given database for topic map consistency..
In particular, checks for referential integrity and uniqueness.
- Throws:
java.lang.Exception
Copyright © 2000-2012 Ontopia.