Class SettableValue
java.lang.Object
org.springframework.data.r2dbc.mapping.SettableValue
Deprecated.
A database value that can be set in a statement.
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SettableValue
Deprecated.Creates a new emptySettableValue
fortype
.boolean
Deprecated.static SettableValue
Deprecated.Creates a newSettableValue
fromvalue
.static SettableValue
fromOrEmpty
(Object value, Class<?> type) Deprecated.static SettableValue
fromParameter
(Parameter parameter) Deprecated.Factory method to create aSettableValue
fromParameter
.Class<?>
getType()
Deprecated.Returns the column value type.getValue()
Deprecated.Returns the column value.int
hashCode()
Deprecated.boolean
hasValue()
Deprecated.Returns whether thisSettableValue
has a value.boolean
isEmpty()
Deprecated.Returns whether thisSettableValue
has a empty.Deprecated.toString()
Deprecated.
-
Method Details
-
from
Deprecated.Creates a newSettableValue
fromvalue
.- Parameters:
value
- must not be null.- Returns:
- the
SettableValue
value forvalue
.
-
fromOrEmpty
Deprecated.- Parameters:
value
- can be null.type
- must not be null.- Returns:
- the
SettableValue
value forvalue
.
-
empty
Deprecated.Creates a new emptySettableValue
fortype
.- Returns:
- the empty
SettableValue
value fortype
.
-
fromParameter
Deprecated.Factory method to create aSettableValue
fromParameter
. Retains empty/type information.- Parameters:
parameter
- the parameter to create aSettableValue
from.- Returns:
- a new
SettableValue
fromParameter
. - Since:
- 1.4
-
getValue
Deprecated.Returns the column value. Can be null.- Returns:
- the column value. Can be null.
- See Also:
-
getType
Deprecated.Returns the column value type. Must be also present if thevalue
is null.- Returns:
- the column value type
-
hasValue
public boolean hasValue()Deprecated.Returns whether thisSettableValue
has a value.- Returns:
- whether this
SettableValue
has a value. false ifgetValue()
is null.
-
isEmpty
public boolean isEmpty()Deprecated.Returns whether thisSettableValue
has a empty.- Returns:
- whether this
SettableValue
is empty. true ifgetValue()
is null.
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated. -
toParameter
Deprecated.- Returns:
- the
Parameter
representing this settable value. - Since:
- 1.2
-
Parameter
directly.