public enum BsonTypeInfo extends java.lang.Enum<BsonTypeInfo>
| Enum Constant and Description |
|---|
BSON_ARRAY |
BSON_BINDATA |
BSON_BOOL |
BSON_BSON |
BSON_DATE |
BSON_DBPOINTER |
BSON_DECIMAL |
BSON_DOUBLE |
BSON_INT |
BSON_JAVASCRIPT |
BSON_JAVASCRIPTWITHSCOPE |
BSON_LONG |
BSON_MAXKEY |
BSON_MINKEY |
BSON_NULL |
BSON_OBJECT |
BSON_OBJECTID |
BSON_REGEX |
BSON_STRING |
BSON_SYMBOL |
BSON_TIMESTAMP |
BSON_UNDEFINED |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBsonName() |
org.bson.BsonType |
getBsonType() |
static BsonTypeInfo |
getBsonTypeInfoByName(java.lang.String typeName)
Converts a bson type name to a BsonTypeInfo
|
static BsonTypeInfo |
getBsonTypeInfoFromBsonValue(org.bson.BsonValue obj)
Converts a bson value to a BsonTypeInfo
|
boolean |
getCaseSensitivity() |
java.lang.Integer |
getCharOctetLength()
CHAR_OCTET_LENGTH is the maximum length of binary and character based data in bytes.
|
java.lang.Integer |
getDecimalDigits() |
java.lang.Integer |
getFixedBytesLength() |
int |
getJdbcType() |
int |
getMaxScale() |
int |
getMinScale() |
int |
getNumPrecRadix() |
java.lang.Integer |
getPrecision() |
static BsonTypeInfo |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BsonTypeInfo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BsonTypeInfo BSON_DOUBLE
public static final BsonTypeInfo BSON_STRING
public static final BsonTypeInfo BSON_OBJECT
public static final BsonTypeInfo BSON_ARRAY
public static final BsonTypeInfo BSON_BINDATA
public static final BsonTypeInfo BSON_UNDEFINED
public static final BsonTypeInfo BSON_OBJECTID
public static final BsonTypeInfo BSON_BOOL
public static final BsonTypeInfo BSON_DATE
public static final BsonTypeInfo BSON_NULL
public static final BsonTypeInfo BSON_REGEX
public static final BsonTypeInfo BSON_DBPOINTER
public static final BsonTypeInfo BSON_JAVASCRIPT
public static final BsonTypeInfo BSON_SYMBOL
public static final BsonTypeInfo BSON_JAVASCRIPTWITHSCOPE
public static final BsonTypeInfo BSON_INT
public static final BsonTypeInfo BSON_TIMESTAMP
public static final BsonTypeInfo BSON_LONG
public static final BsonTypeInfo BSON_DECIMAL
public static final BsonTypeInfo BSON_MINKEY
public static final BsonTypeInfo BSON_MAXKEY
public static final BsonTypeInfo BSON_BSON
public static BsonTypeInfo[] values()
for (BsonTypeInfo c : BsonTypeInfo.values()) System.out.println(c);
public static BsonTypeInfo valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getBsonName()
public org.bson.BsonType getBsonType()
public int getJdbcType()
public boolean getCaseSensitivity()
public int getMinScale()
public int getMaxScale()
public int getNumPrecRadix()
public java.lang.Integer getPrecision()
public java.lang.Integer getFixedBytesLength()
public java.lang.Integer getDecimalDigits()
public java.lang.Integer getCharOctetLength()
public static BsonTypeInfo getBsonTypeInfoFromBsonValue(org.bson.BsonValue obj) throws java.sql.SQLException
obj - is the Bson value to convert.java.sql.SQLExceptionpublic static BsonTypeInfo getBsonTypeInfoByName(java.lang.String typeName) throws java.sql.SQLException
typeName - is the bson type string as returned from the mongodb aggregation $type
function, this list of viable inputs is in the BSON_TYPE_NAMES static Set above.java.sql.SQLException