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 benullif 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 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
The field for thetyperecord component. -
value
The field for thevaluerecord component.
-
-
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
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 theparameterNamerecord component.- Returns:
- the value of the
parameterNamerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
