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 benullif the value isnull, but it could be also the value ofCommonConstants.NULL_STRING.
- All Implemented Interfaces:
Serializable
@ClassVersion(sourceVersion="$Id: StatementValue.java 1161 2026-03-16 21:00:45Z 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 1161 2026-03-16 21:00:45Z 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 aStatementValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparameterNamerecord component.final StringtoString()type()Returns the value of thetyperecord component.value()Returns the value of thevaluerecord component.
-
Field Details
-
parameterName
The field for theparameterNamerecord component. -
type
-
value
-
-
Constructor Details
-
StatementValue
Creates an instance of aStatementValuerecord class.- Parameters:
parameterName- the value for theparameterNamerecord componenttype- the value for thetyperecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 theparameterNamerecord component.- Returns:
- the value of the
parameterNamerecord component
-
type
-
value
-
