org.opennms.netmgt.dao.db
Class Index

java.lang.Object
  extended by org.opennms.netmgt.dao.db.Index

public class Index
extends java.lang.Object


Constructor Summary
Index(java.lang.String name, java.lang.String table, java.lang.String using, java.util.List<java.lang.String> columns, boolean unique, java.lang.String where)
           
 
Method Summary
 void addToDatabase(java.sql.Connection connection)
           
static Index findIndexInString(java.lang.String create)
           
 java.util.List<java.lang.String> getColumns()
           
 java.lang.String getIndexUniquenessQuery()
           
 java.lang.String getName()
           
 java.lang.String getSql()
           
 java.lang.String getTable()
           
 boolean isOnDatabase(java.sql.Connection connection)
           
 boolean isUnique()
           
 void removeFromDatabase(java.sql.Connection connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Index

public Index(java.lang.String name,
             java.lang.String table,
             java.lang.String using,
             java.util.List<java.lang.String> columns,
             boolean unique,
             java.lang.String where)
Method Detail

findIndexInString

public static Index findIndexInString(java.lang.String create)

isOnDatabase

public boolean isOnDatabase(java.sql.Connection connection)
                     throws java.sql.SQLException
Throws:
java.sql.SQLException

removeFromDatabase

public void removeFromDatabase(java.sql.Connection connection)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

addToDatabase

public void addToDatabase(java.sql.Connection connection)
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

getSql

public java.lang.String getSql()

getName

public java.lang.String getName()

getTable

public java.lang.String getTable()

isUnique

public boolean isUnique()

getColumns

public java.util.List<java.lang.String> getColumns()

getIndexUniquenessQuery

public java.lang.String getIndexUniquenessQuery()
                                         throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2007. All Rights Reserved.