org.opennms.netmgt.dao.db
Class Index

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

public class Index
extends Object


Constructor Summary
Index(String name, String table, String using, List<String> columns, boolean unique, String where)
           
 
Method Summary
 void addToDatabase(Connection connection)
           
static Index findIndexInString(String create)
           
 List<String> getColumns()
           
 String getIndexUniquenessQuery()
           
 String getName()
           
 String getSql()
           
 String getTable()
           
 boolean isOnDatabase(Connection connection)
           
 boolean isUnique()
           
 void removeFromDatabase(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(String name,
             String table,
             String using,
             List<String> columns,
             boolean unique,
             String where)
Method Detail

findIndexInString

public static Index findIndexInString(String create)

isOnDatabase

public boolean isOnDatabase(Connection connection)
                     throws SQLException
Throws:
SQLException

removeFromDatabase

public void removeFromDatabase(Connection connection)
                        throws SQLException
Throws:
SQLException

addToDatabase

public void addToDatabase(Connection connection)
                   throws SQLException
Throws:
SQLException

getSql

public String getSql()

getName

public String getName()

getTable

public String getTable()

isUnique

public boolean isUnique()

getColumns

public List<String> getColumns()

getIndexUniquenessQuery

public String getIndexUniquenessQuery()
                               throws Exception
Throws:
Exception


Copyright © 2009. All Rights Reserved.