/** * Creates a new Guid-valued OData property with {@link EdmSimpleType#GUID} * * @param name the property name * @param value the property value * @return a new OData property instance */ public static OProperty<Guid> guid(String name, String value) { return guid(name, Guid.fromString(value)); }
/** * Return a Guid for a given UUID. * * @param uuid an existing UUID * @return a new Guid */ public static Guid fromUUID(UUID uuid) { return new Guid(uuid.toString()); }
+ Guid.randomGuid().toString(); String batchBoundary = "batchresponse_" + Guid.randomGuid().toString(); StringBuilder batchResponse = new StringBuilder("\n--"); batchResponse.append(batchBoundary);
return (T) Guid.fromUUID((UUID) obj);
jw.writeString(pvalue.toString()); } else if (type.equals(EdmSimpleType.GUID)) { jw.writeString(((Guid) pvalue).toString()); } else if (type.equals(EdmSimpleType.INT16)) { jw.writeNumber((Short) pvalue);
+ Guid.randomGuid().toString(); String batchBoundary = "batchresponse_" + Guid.randomGuid().toString(); StringBuilder batchResponse = new StringBuilder("\n--"); batchResponse.append(batchBoundary);
return (T) Guid.fromUUID((UUID) obj);
jw.writeString(pvalue.toString()); } else if (type.equals(EdmSimpleType.GUID)) { jw.writeString(((Guid) pvalue).toString()); } else if (type.equals(EdmSimpleType.INT16)) { jw.writeNumber((Short) pvalue);
/** * Creates a new Guid-valued OData property with {@link EdmSimpleType#GUID} * * @param name the property name * @param value the property value * @return a new OData property instance */ public static OProperty<Guid> guid(String name, String value) { return guid(name, Guid.fromString(value)); }
/** * Return a Guid for a given UUID. * * @param uuid an existing UUID * @return a new Guid */ public static Guid fromUUID(UUID uuid) { return new Guid(uuid.toString()); }
return (T) Guid.fromUUID((UUID) obj);
/** * Creates a new Guid-valued OData property with {@link EdmSimpleType#GUID} * * @param name the property name * @param value the property value * @return a new OData property instance */ public static OProperty<Guid> guid(String name, String value) { return guid(name, Guid.fromString(value)); }
/** * Return a Guid for a given UUID. * * @param uuid an existing UUID * @return a new Guid */ public static Guid fromUUID(UUID uuid) { return new Guid(uuid.toString()); }
return Expression.guid(Guid.fromString(value)); } else if (word.equals("decimal")) { return Expression.decimal(new BigDecimal(value));
/** * Return a Guid for a given string. * * @param value the guid's string representation * @return a new Guid */ public static Guid fromString(String value) { if (GUID_FORMAT.matcher(value).matches()) return new Guid(value); else throw new IllegalArgumentException("Illegal GUID format " + value); }
return Expression.guid(Guid.fromString(value)); } else if (word.equals("decimal")) { return Expression.decimal(new BigDecimal(value));
/** * Generate a new Guid. * * @return a new Guid */ public static Guid randomGuid() { return new Guid(UUID.randomUUID().toString()); }
return Expression.guid(Guid.fromString(value)); } else if (word.equals("decimal")) { return Expression.decimal(new BigDecimal(value));
/** * Generate a new Guid. * * @return a new Guid */ public static Guid randomGuid() { return new Guid(UUID.randomUUID().toString()); }
return (OSimpleObject<V>) Impl.create(EdmSimpleType.GUID, Guid.fromString(value)); if (EdmSimpleType.BOOLEAN.equals(type)) return (OSimpleObject<V>) Impl.create(EdmSimpleType.BOOLEAN, Boole.fromString(value).toBoolean());