org.opennms.netmgt.dao.db
Class Index
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.