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 SummaryModifier and TypeMethodDescriptionstatic ParameterDeprecated.Create a new emptyParameterfortype.booleanDeprecated.static ParameterDeprecated.Create a newParameterfromvalue.static ParameterfromOrEmpty(Object value, Class<?> type) Deprecated.Class<?>getType()Deprecated.Return the column value type.getValue()Deprecated.Return the column value (can benull).inthashCode()Deprecated.booleanhasValue()Deprecated.Return whether thisParameterhas a value.booleanisEmpty()Deprecated.Return whether thisParameterhas an empty value.toString()Deprecated.
- 
Method Details- 
fromDeprecated.Create a newParameterfromvalue.- Parameters:
- value- the parameter value
- Returns:
- the Parametervalue forvalue
 
- 
fromOrEmptyDeprecated.- Parameters:
- value- the parameter value (can be- null)
- type- the parameter type
- Returns:
- the Parametervalue forvalue
 
- 
emptyDeprecated.Create a new emptyParameterfortype.- Returns:
- the empty Parametervalue fortype
 
- 
getValueDeprecated.Return the column value (can benull).- See Also:
 
- 
getTypeDeprecated.Return the column value type. Must be also present if thevalueisnull.
- 
hasValuepublic boolean hasValue()Deprecated.Return whether thisParameterhas a value.- Returns:
- falseif- getValue()is- null
 
- 
isEmptypublic boolean isEmpty()Deprecated.Return whether thisParameterhas an empty value.- Returns:
- trueif- getValue()is- null
 
- 
equalsDeprecated.
- 
hashCodepublic int hashCode()Deprecated.
- 
toStringDeprecated.
 
- 
io.r2dbc.spi.Parameterinstead.