Module org.tquadrat.foundation.sql
Record Class StatementValue
java.lang.Object
java.lang.Record
org.tquadrat.foundation.sql.internal.StatementValue
- Record Components:
parameterName
- The name of the parameter.type
- The SQL type.value
- A String representation of the value; it can benull
if the value isnull
, but it could be also the value ofCommonConstants.NULL_STRING
.
- All Implemented Interfaces:
Serializable
@ClassVersion(sourceVersion="$Id: StatementValue.java 1105 2024-02-28 12:58:46Z tquadrat $")
@API(status=INTERNAL,
since="0.0.1")
public record StatementValue(String parameterName, SQLType type, String value)
extends Record
implements Serializable
A value for an
EnhancedPreparedStatement
.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: StatementValue.java 1105 2024-02-28 12:58:46Z tquadrat $
- Since:
- 0.0.1
- See Also:
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.sql.internal.StatementValue"
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStatementValue
(String parameterName, SQLType type, String value) Creates an instance of aStatementValue
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theparameterName
record component.final String
toString()
type()
Returns the value of thetype
record component.value()
Returns the value of thevalue
record component.
-
Field Details
-
parameterName
The field for theparameterName
record component. -
type
The field for thetype
record component. -
value
The field for thevalue
record component.
-
-
Constructor Details
-
StatementValue
Creates an instance of aStatementValue
record class.- Parameters:
parameterName
- the value for theparameterName
record componenttype
- the value for thetype
record componentvalue
- the value for thevalue
record component
-
-
Method Details
-
toString
-
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
parameterName
Returns the value of theparameterName
record component.- Returns:
- the value of the
parameterName
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-