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 Projection |
projection |
protected java.util.List<Property> |
properties |
protected java.lang.String |
type |
static java.lang.String |
TYPE_FOREIGN_KEY |
static java.lang.String |
TYPE_INDEX |
static java.lang.String |
TYPE_PRIMARY_KEY |
static java.lang.String |
TYPE_RESOURCE_KEY |
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.lang.String |
getJsonName(int index) |
java.util.List<java.lang.String> |
getJsonNames() |
java.lang.String |
getName() |
Projection |
getProjection() |
java.util.List<Property> |
getProperties() |
Property |
getProperty(int idx) |
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 |
withProjection(Projection projection) |
Index |
withProperties(Property... properties) |
Index |
withType(java.lang.String type) |
Index |
withUnique(boolean unique) |
public static final java.lang.String TYPE_INDEX
public static final java.lang.String TYPE_RESOURCE_KEY
public static final java.lang.String TYPE_PRIMARY_KEY
public static final java.lang.String TYPE_FOREIGN_KEY
protected final java.util.List<Property> properties
protected Collection collection
protected java.lang.String name
protected java.lang.String type
protected boolean unique
protected Projection projection
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 int size()
public java.util.List<Property> getProperties()
public Property getProperty(int idx)
public java.lang.String getColumnName(int index)
public java.util.List<java.lang.String> getColumnNames()
public java.lang.String getJsonName(int index)
public java.util.List<java.lang.String> getJsonNames()
public Projection getProjection()
public Index withProjection(Projection projection)
Copyright © 2023 Rocket Partners, LLC. All rights reserved.