Package dev.morphia.query
Enum Type
- java.lang.Object
- 
- java.lang.Enum<Type>
- 
- dev.morphia.query.Type
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<Type>
 
 public enum Type extends Enum<Type> Defines BSON types for use in querying against field types.- Author:
- suresh chaudhari
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description ARRAYBINARY_DATABOOLEANDATEDOUBLEINTEGER_32_BITINTEGER_64_BITJAVASCRIPTJAVASCRIPT_WITH_SCOPEMAX_KEYMIN_KEYNULLOBJECTOBJECT_IDREGULAR_EXPRESSIONSTRINGSYMBOLTIMESTAMPUNDEFINED
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intval()static TypevalueOf(String name)Returns the enum constant of this type with the specified name.static Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
DOUBLEpublic static final Type DOUBLE 
 - 
STRINGpublic static final Type STRING 
 - 
OBJECTpublic static final Type OBJECT 
 - 
ARRAYpublic static final Type ARRAY 
 - 
BINARY_DATApublic static final Type BINARY_DATA 
 - 
UNDEFINEDpublic static final Type UNDEFINED 
 - 
OBJECT_IDpublic static final Type OBJECT_ID 
 - 
BOOLEANpublic static final Type BOOLEAN 
 - 
DATEpublic static final Type DATE 
 - 
NULLpublic static final Type NULL 
 - 
REGULAR_EXPRESSIONpublic static final Type REGULAR_EXPRESSION 
 - 
JAVASCRIPTpublic static final Type JAVASCRIPT 
 - 
SYMBOLpublic static final Type SYMBOL 
 - 
JAVASCRIPT_WITH_SCOPEpublic static final Type JAVASCRIPT_WITH_SCOPE 
 - 
INTEGER_32_BITpublic static final Type INTEGER_32_BIT 
 - 
TIMESTAMPpublic static final Type TIMESTAMP 
 - 
INTEGER_64_BITpublic static final Type INTEGER_64_BIT 
 - 
MIN_KEYpublic static final Type MIN_KEY 
 - 
MAX_KEYpublic static final Type MAX_KEY 
 
- 
 - 
Method Detail- 
valuespublic static Type[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Type c : Type.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static Type valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
valpublic int val() - Returns:
- the BSON type value
 
 
- 
 
-