Package dev.morphia.annotations
Annotation Type Collation
-
public @interface CollationDefines the collation options for an index- Since:
- 1.3
-
-
Field Summary
Fields Modifier and Type Fields Description static StringDEFAULT_LOCALE
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description com.mongodb.client.model.CollationAlternatealternateControls whether spaces and punctuation are considered base charactersbooleanbackwardsCauses secondary differences to be considered in reverse order, as it is done in the French languagecom.mongodb.client.model.CollationCaseFirstcaseFirstDetermines if Uppercase or lowercase values should come firstbooleancaseLevelTurns on case sensitivityStringlocaleIf this value is empty, no collation will be configured for an index.com.mongodb.client.model.CollationMaxVariablemaxVariablebooleannormalizationbooleannumericOrderingcom.mongodb.client.model.CollationStrengthstrength
-
-
-
Field Detail
-
DEFAULT_LOCALE
static final String DEFAULT_LOCALE
-
-
-
locale
String locale
If this value is empty, no collation will be configured for an index. Any other string passed will be parsed as the name of the localed you wish to use. However, if you want to use the default locale as defined by the JVM, pass the value "<default>" instead.- Returns:
- the locale
- See Also:
- ICU User Guide - Locale,
Locale.getDefault()
- Default:
- ""
-
-