|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.dao.db.Index
public class Index
Index class.
| Constructor Summary | |
|---|---|
Index(String name,
String table,
String using,
List<String> columns,
boolean unique,
String where)
Constructor for Index. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Index(String name,
String table,
String using,
List<String> columns,
boolean unique,
String where)
Constructor for Index.
name - a String object.table - a String object.using - a String object.columns - a List object.unique - a boolean.where - a String object.| Method Detail |
|---|
public static Index findIndexInString(String create)
findIndexInString
create - a String object.
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 String getSql()
getSql
String object.public String getName()
getName
String object.public String getTable()
getTable
String object.public boolean isUnique()
isUnique
public List<String> getColumns()
getColumns
List object.
public String getIndexUniquenessQuery()
throws Exception
getIndexUniquenessQuery
String object.
Exception - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||