org.odata4j.edm
Class EdmSimpleType<V>
java.lang.Object
org.odata4j.edm.EdmItem
org.odata4j.edm.EdmType
org.odata4j.edm.EdmSimpleType<V>
public class EdmSimpleType<V>
- extends EdmType
Primitive types in the EDM type system.
Simple types are exposed as constants and associated with one or more java-types.
- See Also:
- [msdn] Simple Types (EDM)
ALL
public static final Set<EdmSimpleType<?>> ALL
- Immutable set of all edm simple types.
BINARY
public static final EdmSimpleType<byte[]> BINARY
BOOLEAN
public static final EdmSimpleType<Boolean> BOOLEAN
BYTE
public static final EdmSimpleType<UnsignedByte> BYTE
DATETIME
public static final EdmSimpleType<LocalDateTime> DATETIME
DATETIMEOFFSET
public static final EdmSimpleType<DateTime> DATETIMEOFFSET
DECIMAL
public static final EdmSimpleType<BigDecimal> DECIMAL
DOUBLE
public static final EdmSimpleType<Double> DOUBLE
GUID
public static final EdmSimpleType<Guid> GUID
INT16
public static final EdmSimpleType<Short> INT16
INT32
public static final EdmSimpleType<Integer> INT32
INT64
public static final EdmSimpleType<Long> INT64
SBYTE
public static final EdmSimpleType<Byte> SBYTE
SINGLE
public static final EdmSimpleType<Float> SINGLE
STRING
public static final EdmSimpleType<String> STRING
TIME
public static final EdmSimpleType<LocalTime> TIME
forJavaType
public static <V> EdmSimpleType<V> forJavaType(Class<?> javaType)
- Finds the edm simple type for a given java-type.
- Parameters:
javaType
- the java-type
- Returns:
- the associated edm simple type, else null
getCanonicalJavaType
public Class<V> getCanonicalJavaType()
getJavaTypes
public Set<Class<?>> getJavaTypes()
- Gets all java-types associated with this edm-type.
- Returns:
- the associated java-types.
isSimple
public boolean isSimple()
- Specified by:
isSimple
in class EdmType
newBuilder
public static EdmType.Builder<?,?> newBuilder(EdmType type)
http://odata4j.org