public class ScalarType extends Type
| Modifier and Type | Field and Description |
|---|---|
static ScalarType |
BINARY
Represents the DuroDBMS type
binary. |
static ScalarType |
BOOLEAN
Represents the DuroDBMS type
boolean. |
static ScalarType |
FLOAT
Represents the DuroDBMS type
float. |
static ScalarType |
INTEGER
Represents the DuroDBMS type
integer. |
static ScalarType |
STRING
Represents the DuroDBMS type
string. |
| Modifier | Constructor and Description |
|---|---|
protected |
ScalarType(java.lang.String name,
Possrep[] possreps) |
| Modifier and Type | Method and Description |
|---|---|
static ScalarType |
fromString(java.lang.String typename,
DSession session)
Returns an instance of ScalarType which represents the DuroDBMS type
typename. |
java.lang.String |
getName()
Returns the name of a type.
|
Possrep[] |
getPossreps()
Returns the possible representations of this type.
|
boolean |
isScalar()
Determines if the type is scalar.
|
public static final ScalarType BOOLEAN
boolean.public static final ScalarType INTEGER
integer.public static final ScalarType STRING
string.public static final ScalarType FLOAT
float.public static final ScalarType BINARY
binary.protected ScalarType(java.lang.String name,
Possrep[] possreps)
public java.lang.String getName()
Typepublic boolean isScalar()
Typepublic Possrep[] getPossreps()
public static ScalarType fromString(java.lang.String typename, DSession session)
typename.typename - the name of the DuroDBMS typesession - the DuroDBMS session