Package de.caluga.morphium
Enum MongoType
- java.lang.Object
-
- java.lang.Enum<MongoType>
-
- de.caluga.morphium.MongoType
-
- All Implemented Interfaces:
Serializable,Comparable<MongoType>
public enum MongoType extends Enum<MongoType>
User: Stpehan Bösebeck Date: 26.03.12 Time: 11:48 Mongo Data types according to documentation: see also: http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-ConditionalOperators
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MongoTypefindByTxt(String txt)static MongoTypefindByValue(int value)IntegergetId()StringgetTxt()static MongoTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MongoType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOUBLE
public static final MongoType DOUBLE
-
STRING
public static final MongoType STRING
-
OBJECT
public static final MongoType OBJECT
-
ARRAY
public static final MongoType ARRAY
-
BINARY_DATA
public static final MongoType BINARY_DATA
-
UNDEFINED
@Deprecated public static final MongoType UNDEFINED
Deprecated.
-
OBJECT_ID
public static final MongoType OBJECT_ID
-
BOOLEAN
public static final MongoType BOOLEAN
-
DATE
public static final MongoType DATE
-
NULL
public static final MongoType NULL
-
REGEX
public static final MongoType REGEX
-
DB_PTR
@Deprecated public static final MongoType DB_PTR
Deprecated.
-
JAVASCRIPT
public static final MongoType JAVASCRIPT
-
SYMBOL
@Deprecated public static final MongoType SYMBOL
Deprecated.
-
JAVASCRIPT_SCOPE
@Deprecated public static final MongoType JAVASCRIPT_SCOPE
Deprecated.
-
INTEGER
public static final MongoType INTEGER
-
TIMESTAMP
public static final MongoType TIMESTAMP
-
LONG
public static final MongoType LONG
-
DECIMAL
public static final MongoType DECIMAL
-
MIN_KEY
public static final MongoType MIN_KEY
-
MAX_KEY
public static final MongoType MAX_KEY
-
-
Method Detail
-
values
public static MongoType[] 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 (MongoType c : MongoType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MongoType 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 nameNullPointerException- if the argument is null
-
findByValue
public static MongoType findByValue(int value)
-
getTxt
public String getTxt()
-
getId
public Integer getId()
-
-