Extends Attribute class with additional Mongo specific configuration
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
INDEX_TYPE |
|
static java.lang.String |
INDEX_TYPE_2D |
|
static java.lang.String |
INDEX_TYPE_2DSPHERE |
| Type | Name and description |
|---|---|
boolean |
referenceWhether this attribute is a database reference |
| Type Params | Return Type | Name and description |
|---|---|---|
|
MongoAttribute |
field(java.lang.String name)Configures the field name to map to |
|
MongoAttribute |
geoIndex(java.lang.String indexType)Sets the geo index type |
|
java.lang.String |
getField()@return The field name to map to |
|
java.util.Map |
getIndexAttributes()@return The attributes for the index |
|
MongoAttribute |
index(java.lang.String type)Configures the index type |
|
MongoAttribute |
indexAttributes(java.util.Map indexAttributes)Configures the index attributes |
|
void |
initIndexAttributes() |
|
void |
setField(java.lang.String name)Sets the field name to map to |
|
void |
setGeoIndex(java.lang.String indexType)Sets the geo index type |
|
void |
setIndex(java.lang.String type)Sets the index type |
|
void |
setIndexAttributes(java.util.Map indexAttributes)Sets index attributes |
| Methods inherited from class | Name |
|---|---|
class Attribute |
attr, attribute, setAttr, setAttribute |
class Property |
clone, configureExisting, configureExisting, fetch, fetch, getEnumType, getEnumTypeObject, getLazy, getName, getUniquenessGroup, isLazy, isUnique, isUniqueWithinGroup, name, setEnumType, setEnumType, setFetch, setLazy, setName, setRange, setSize, setUnique, setUnique, setUnique, setUniquenessGroup, unique, unique, unique |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Configures the field name to map to
name - The name of the fieldSets the geo index type
indexType - The geo index type
Configures the index type
type - The index typeConfigures the index attributes
indexAttributes - The index attributesSets the field name to map to
name - The field nameSets the geo index type
indexType - The geo index typeSets the index type
type - The index typeSets index attributes
indexAttributes - The index attributes