public static class DbIndex.Builder extends Object implements Builder<DbIndex>, Serializable
DbIndex
objects.Constructor and Description |
---|
DbIndex.Builder() |
Modifier and Type | Method and Description |
---|---|
DbIndex |
build()
Builds the final immutable instance.
|
DbIndex.Builder |
columns(Collection<String> collection)
Add the columns that are part of the index.
|
DbIndex.Builder |
columns(String... columns)
Add the columns that are part of the index.
|
DbIndex.Builder |
unique(boolean unique)
Indicates if this index is unique or not.
|
public DbIndex.Builder columns(String... columns)
columns
- The columns.public DbIndex.Builder columns(Collection<String> collection)
collection
- The columns.public DbIndex.Builder unique(boolean unique)
unique
- True if it is unique, false otherwise.Copyright © 2014 Feedzai. All Rights Reserved.