Package org.springframework.r2dbc.core
Class Parameter
java.lang.Object
org.springframework.r2dbc.core.Parameter
Deprecated.
A database value that can be set in a statement.
- Since:
- 5.3
- Author:
- Mark Paluch, Juergen Hoeller
-
Method Summary
Modifier and TypeMethodDescriptionstatic Parameter
Deprecated.Create a new emptyParameter
fortype
.boolean
Deprecated.static Parameter
Deprecated.Create a newParameter
fromvalue
.static Parameter
fromOrEmpty
(Object value, Class<?> type) Deprecated.Class<?>
getType()
Deprecated.Return the column value type.getValue()
Deprecated.Return the column value (can benull
).int
hashCode()
Deprecated.boolean
hasValue()
Deprecated.Return whether thisParameter
has a value.boolean
isEmpty()
Deprecated.Return whether thisParameter
has an empty value.toString()
Deprecated.
-
Method Details
-
from
Deprecated.Create a newParameter
fromvalue
.- Parameters:
value
- the parameter value- Returns:
- the
Parameter
value forvalue
-
fromOrEmpty
Deprecated.- Parameters:
value
- the parameter value (can benull
)type
- the parameter type- Returns:
- the
Parameter
value forvalue
-
empty
Deprecated.Create a new emptyParameter
fortype
.- Returns:
- the empty
Parameter
value fortype
-
getValue
Deprecated.Return the column value (can benull
).- See Also:
-
getType
Deprecated.Return the column value type. Must be also present if thevalue
isnull
. -
hasValue
public boolean hasValue()Deprecated.Return whether thisParameter
has a value.- Returns:
false
ifgetValue()
isnull
-
isEmpty
public boolean isEmpty()Deprecated.Return whether thisParameter
has an empty value.- Returns:
true
ifgetValue()
isnull
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-
io.r2dbc.spi.Parameter
instead.