public class Index extends Object
Constructor and Description |
---|
Index(String name,
String table,
String using,
List<String> columns,
boolean unique,
String where)
Constructor for Index.
|
Modifier and Type | Method and Description |
---|---|
void |
addToDatabase(Connection connection)
addToDatabase
|
static Index |
findIndexInString(String create)
findIndexInString
|
List<String> |
getColumns()
getColumns
|
String |
getIndexUniquenessQuery()
getIndexUniquenessQuery
|
String |
getName()
getName
|
String |
getSql()
getSql
|
String |
getTable()
getTable
|
boolean |
isOnDatabase(Connection connection)
isOnDatabase
|
boolean |
isUnique()
isUnique
|
void |
removeFromDatabase(Connection connection)
removeFromDatabase
|
public static Index findIndexInString(String create)
findIndexInString
create
- a String
object.org.opennms.netmgt.dao.db.Index
object.public boolean isOnDatabase(Connection connection) throws SQLException
isOnDatabase
connection
- a Connection
object.SQLException
- if any.public void removeFromDatabase(Connection connection) throws SQLException
removeFromDatabase
connection
- a Connection
object.SQLException
- if any.public void addToDatabase(Connection connection) throws SQLException
addToDatabase
connection
- a Connection
object.SQLException
- if any.public boolean isUnique()
isUnique
Copyright © 2020. All rights reserved.