@Override public FileValueBuilder encoding(String encoding) { fileValue.setEncoding(encoding); return this; }
/** * Creates a new {@link LongValue} that encapsulates the given <code>longValue</code> */ public static LongValue longValue(Long longValue, boolean isTransient) { return new LongValueImpl(longValue, isTransient); }
/** * Creates a new {@link DoubleValue} that encapsulates the given <code>doubleValue</code> */ public static DoubleValue doubleValue(Double doubleValue, boolean isTransient) { return new DoubleValueImpl(doubleValue, isTransient); }
@Override public TypedValueBuilder<T> setTransient(boolean isTransient) { ((AbstractTypedValue<?>) variableValue).setTransient(isTransient); return this; }
public SerializedObjectValueBuilder serializedValue(String value) { variableValue.setSerializedValue(value); return this; }
@Override public SerializableValueType getType() { return (SerializableValueType) super.getType(); }
public ObjectValueBuilder serializationDataFormat(String dataFormatName) { variableValue.setSerializationDataFormat(dataFormatName); return this; }
@Override public TypedValueBuilder<ObjectValue> setTransient(boolean isTransient) { variableValue.setTransient(isTransient); return this; }
/** * Creates a new {@link DateValue} that encapsulates the given <code>date</code> */ public static DateValue dateValue(Date date, boolean isTransient) { return new DateValueImpl(date, isTransient); }
/** * Creates a new {@link ShortValue} that encapsulates the given <code>shortValue</code> */ public static ShortValue shortValue(Short shortValue, boolean isTransient) { return new ShortValueImpl(shortValue, isTransient); }
/** * Creates an abstract Number value. Note that this value cannot be used to set variables. * Use the specific methods {@link Variables#integerValue(Integer)}, {@link #shortValue(Short)}, * {@link #longValue(Long)} and {@link #doubleValue(Double)} instead. */ public static NumberValue numberValue(Number numberValue, boolean isTransient) { return new NumberValueImpl(numberValue, isTransient); }
@Override public FileValueBuilder file(byte[] bytes) { fileValue.setValue(bytes); return this; }
/** * Creates a new {@link IntegerValue} that encapsulates the given <code>integer</code> */ public static IntegerValue integerValue(Integer integer, boolean isTransient) { return new IntegerValueImpl(integer, isTransient); }
/** * Creates a new {@link StringValue} that encapsulates the given <code>stringValue</code> */ public static StringValue stringValue(String stringValue, boolean isTransient) { return new StringValueImpl(stringValue, isTransient); }
/** * Creates a new {@link BooleanValue} that encapsulates the given <code>booleanValue</code> */ public static BooleanValue booleanValue(Boolean booleanValue, boolean isTransient) { return new BooleanValueImpl(booleanValue, isTransient); }
/** * Creates a new {@link BytesValue} that encapsulates the given <code>bytes</code> */ public static BytesValue byteArrayValue(byte[] bytes, boolean isTransient) { return new BytesValueImpl(bytes, isTransient); }
@Override public FileValueBuilder setTransient(boolean isTransient) { fileValue.setTransient(isTransient); return this; }
@Override public FileValueBuilder mimeType(String mimeType) { fileValue.setMimeType(mimeType); return this; }
@Override public FileValueBuilder encoding(Charset encoding) { fileValue.setEncoding(encoding); return this; }
@Override public TypedValueBuilder<ObjectValue> setTransient(boolean isTransient) { variableValue.setTransient(isTransient); return this; }