public class Index
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Collection |
collection |
protected java.lang.String |
name |
protected java.util.List<Property> |
properties |
protected java.lang.String |
type |
protected boolean |
unique |
| Constructor and Description |
|---|
Index() |
Index(java.lang.String name,
java.lang.String type,
boolean unique,
Property... properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
Collection |
getCollection() |
java.lang.String |
getColumnName(int index) |
java.util.List<java.lang.String> |
getColumnNames() |
java.util.List<java.lang.String> |
getJsonNames() |
java.lang.String |
getName() |
java.util.List<Property> |
getProperties() |
Property |
getProperty(int idx) |
java.lang.String |
getPropertyName(int index) |
java.lang.String |
getType() |
boolean |
isExclude() |
boolean |
isType(java.lang.String... types) |
boolean |
isUnique() |
int |
size() |
java.lang.String |
toString() |
Index |
withCollection(Collection coll) |
Index |
withName(java.lang.String name) |
Index |
withProperties(Property... properties) |
Index |
withType(java.lang.String type) |
Index |
withUnique(boolean unique) |
protected final java.util.List<Property> properties
protected Collection collection
protected java.lang.String name
protected java.lang.String type
protected boolean unique
public Index()
public Index(java.lang.String name,
java.lang.String type,
boolean unique,
Property... properties)
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isExclude()
public Collection getCollection()
public Index withCollection(Collection coll)
public java.lang.String getName()
public Index withName(java.lang.String name)
public java.lang.String getType()
public Index withType(java.lang.String type)
public boolean isType(java.lang.String... types)
public boolean isUnique()
public Index withUnique(boolean unique)
public java.util.List<Property> getProperties()
public Property getProperty(int idx)
public int size()
public java.lang.String getPropertyName(int index)
public java.lang.String getColumnName(int index)
public java.util.List<java.lang.String> getJsonNames()
public java.util.List<java.lang.String> getColumnNames()
Copyright © 2021 Rocket Partners, LLC. All rights reserved.