public class DbIndex extends Object implements Serializable
| Constructor and Description |
|---|
DbIndex()
Creates a new instance of
DbIndex. |
| Modifier and Type | Method and Description |
|---|---|
DbIndex |
columns(Collection<String> collection)
Add the columns that are part of the index.
|
DbIndex |
columns(String... columns)
Add the columns that are part of the index.
|
List<String> |
getColumns() |
boolean |
isUnique() |
DbIndex |
setUnique(boolean unique)
Indicates if this index is unique or not.
|
public DbIndex()
DbIndex.public DbIndex columns(String... columns)
columns - The columns.public DbIndex columns(Collection<String> collection)
collection - The columns.public DbIndex setUnique(boolean unique)
unique - True if it is unique, false otherwise.public boolean isUnique()
Copyright © 2013. All Rights Reserved.