|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odata4j.core.OProperties
public class OProperties
A static factory to create immutable OProperty
instances.
Method Summary | ||
---|---|---|
static OProperty<byte[]> |
binary(String name,
byte[] value)
Creates a new byte-array-valued OData property with EdmType.BINARY |
|
static OProperty<Byte[]> |
binary(String name,
Byte[] value)
Creates a new byte-array-valued OData property with EdmType.BINARY |
|
static OProperty<Boolean> |
boolean_(String name,
Boolean value)
Creates a new boolean-valued OData property with EdmType.BOOLEAN |
|
static OProperty<Byte> |
byte_(String name,
byte value)
Creates a new byte-valued OData property with EdmType.BYTE |
|
static OProperty<Character> |
character(String name,
Character value)
Creates a new String-valued OData property with EdmType.STRING |
|
static OProperty<List<OProperty<?>>> |
complex(String name,
String type,
List<OProperty<?>> value)
Creates a new complex-valued OData property of the given edm-type. |
|
static OProperty<LocalDateTime> |
datetime(String name,
Calendar value)
Creates a new LocalDateTime-valued OData property with EdmType.DATETIME |
|
static OProperty<LocalDateTime> |
datetime(String name,
Date value)
Creates a new LocalDateTime-valued OData property with EdmType.DATETIME |
|
static OProperty<LocalDateTime> |
datetime(String name,
LocalDateTime value)
Creates a new LocalDateTime-valued OData property with EdmType.DATETIME |
|
static OProperty<BigDecimal> |
decimal(String name,
BigDecimal value)
Creates a new BigDecimal-valued OData property with EdmType.DECIMAL |
|
static OProperty<BigDecimal> |
decimal(String name,
BigInteger value)
Creates a new BigDecimal-valued OData property with EdmType.DECIMAL |
|
static OProperty<BigDecimal> |
decimal(String name,
double value)
Creates a new BigDecimal-valued OData property with EdmType.DECIMAL |
|
static OProperty<BigDecimal> |
decimal(String name,
long value)
Creates a new BigDecimal-valued OData property with EdmType.DECIMAL |
|
static OProperty<Double> |
double_(String name,
Double value)
Creates a new double-precision-valued OData property with EdmType.DOUBLE |
|
static OProperty<Guid> |
guid(String name,
Guid value)
Creates a new Guid-valued OData property with EdmType.GUID |
|
static OProperty<Guid> |
guid(String name,
String value)
Creates a new Guid-valued OData property with EdmType.GUID |
|
static OProperty<Short> |
int16(String name,
Short value)
Creates a new short-valued OData property with EdmType.INT16 |
|
static OProperty<Integer> |
int32(String name,
Integer value)
Creates a new integer-valued OData property with EdmType.INT32 |
|
static OProperty<Long> |
int64(String name,
Long value)
Creates a new long-valued OData property with EdmType.INT64 |
|
static OProperty<?> |
null_(String name,
String type)
Creates a new OData property of the given edm-type with a null value. |
|
static OProperty<?> |
parse(String name,
String type,
String value)
Creates a new OData property of the given edm-type with a value parsed from a string. |
|
static
|
simple(String name,
EdmType type,
T value)
Creates a new OData property of the given edm-type. |
|
static
|
simple(String name,
EdmType type,
T value,
boolean exceptionOnUnknownType)
Creates a new OData property of the given edm-type. |
|
static
|
simple(String name,
T value)
Creates a new OData property, inferring the edm-type from the value provided, which cannot be null. |
|
static OProperty<Float> |
single(String name,
Float value)
Creates a new single-precision-valued OData property with EdmType.SINGLE |
|
static OProperty<String> |
string(String name,
char value)
Creates a new String-valued OData property with EdmType.STRING |
|
static OProperty<String> |
string(String name,
String value)
Creates a new String-valued OData property with EdmType.STRING |
|
static OProperty<LocalTime> |
time(String name,
Date value)
Creates a new LocalTime-valued OData property with EdmType.TIME |
|
static OProperty<LocalTime> |
time(String name,
LocalTime value)
Creates a new LocalTime-valued OData property with EdmType.TIME |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static OProperty<byte[]> binary(String name, byte[] value)
EdmType.BINARY
name
- the property namevalue
- the property value
public static OProperty<Byte[]> binary(String name, Byte[] value)
EdmType.BINARY
name
- the property namevalue
- the property value
public static OProperty<Boolean> boolean_(String name, Boolean value)
EdmType.BOOLEAN
name
- the property namevalue
- the property value
public static OProperty<Byte> byte_(String name, byte value)
EdmType.BYTE
name
- the property namevalue
- the property value
public static OProperty<Character> character(String name, Character value)
EdmType.STRING
name
- the property namevalue
- the property value
public static OProperty<List<OProperty<?>>> complex(String name, String type, List<OProperty<?>> value)
name
- the property nametype
- the property edm-typevalue
- the property values
public static OProperty<LocalDateTime> datetime(String name, Calendar value)
EdmType.DATETIME
name
- the property namevalue
- the property value
public static OProperty<LocalDateTime> datetime(String name, Date value)
EdmType.DATETIME
name
- the property namevalue
- the property value
public static OProperty<LocalDateTime> datetime(String name, LocalDateTime value)
EdmType.DATETIME
name
- the property namevalue
- the property value
public static OProperty<BigDecimal> decimal(String name, BigDecimal value)
EdmType.DECIMAL
name
- the property namevalue
- the property value
public static OProperty<BigDecimal> decimal(String name, BigInteger value)
EdmType.DECIMAL
name
- the property namevalue
- the property value
public static OProperty<BigDecimal> decimal(String name, double value)
EdmType.DECIMAL
name
- the property namevalue
- the property value
public static OProperty<BigDecimal> decimal(String name, long value)
EdmType.DECIMAL
name
- the property namevalue
- the property value
public static OProperty<Double> double_(String name, Double value)
EdmType.DOUBLE
name
- the property namevalue
- the property value
public static OProperty<Guid> guid(String name, Guid value)
EdmType.GUID
name
- the property namevalue
- the property value
public static OProperty<Guid> guid(String name, String value)
EdmType.GUID
name
- the property namevalue
- the property value
public static OProperty<Short> int16(String name, Short value)
EdmType.INT16
name
- the property namevalue
- the property value
public static OProperty<Integer> int32(String name, Integer value)
EdmType.INT32
name
- the property namevalue
- the property value
public static OProperty<Long> int64(String name, Long value)
EdmType.INT64
name
- the property namevalue
- the property value
public static OProperty<?> null_(String name, String type)
name
- the property nametype
- the property edm-type
public static OProperty<?> parse(String name, String type, String value)
name
- the property nametype
- the property edm-typevalue
- the property value
public static <T> OProperty<T> simple(String name, EdmType type, T value)
T
- the property value's java-typename
- the property nametype
- the property edm-typevalue
- the property value
public static <T> OProperty<T> simple(String name, EdmType type, T value, boolean exceptionOnUnknownType)
T
- the property value's java-typename
- the property nametype
- the property edm-typevalue
- the property valueexceptionOnUnknownType
- if true, throw if the edm-type is unknown
public static <T> OProperty<T> simple(String name, T value)
T
- the property value's java-typename
- the property namevalue
- the property value
public static OProperty<Float> single(String name, Float value)
EdmType.SINGLE
name
- the property namevalue
- the property value
public static OProperty<String> string(String name, char value)
EdmType.STRING
name
- the property namevalue
- the property value
public static OProperty<String> string(String name, String value)
EdmType.STRING
name
- the property namevalue
- the property value
public static OProperty<LocalTime> time(String name, Date value)
EdmType.TIME
name
- the property namevalue
- the property value
public static OProperty<LocalTime> time(String name, LocalTime value)
EdmType.TIME
name
- the property namevalue
- the property value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |