Package org.opennms.core.db.install
Class Index
- java.lang.Object
-
- org.opennms.core.db.install.Index
-
public class Index extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToDatabase(Connection connection)
addToDatabasestatic Index
findIndexInString(String create)
findIndexInStringList<String>
getColumns()
getColumnsString
getIndexUniquenessQuery()
getIndexUniquenessQueryString
getName()
getNameString
getSql()
getSqlString
getTable()
getTableboolean
isOnDatabase(Connection connection)
isOnDatabaseboolean
isUnique()
isUniquevoid
removeFromDatabase(Connection connection)
removeFromDatabase
-
-
-
Method Detail
-
findIndexInString
public static Index findIndexInString(String create)
findIndexInString
- Parameters:
create
- aString
object.- Returns:
- a
org.opennms.netmgt.dao.db.Index
object.
-
isOnDatabase
public boolean isOnDatabase(Connection connection) throws SQLException
isOnDatabase
- Parameters:
connection
- aConnection
object.- Returns:
- a boolean.
- Throws:
SQLException
- if any.
-
removeFromDatabase
public void removeFromDatabase(Connection connection) throws SQLException
removeFromDatabase
- Parameters:
connection
- aConnection
object.- Throws:
SQLException
- if any.
-
addToDatabase
public void addToDatabase(Connection connection) throws SQLException
addToDatabase
- Parameters:
connection
- aConnection
object.- Throws:
SQLException
- if any.
-
isUnique
public boolean isUnique()
isUnique
- Returns:
- a boolean.
-
-