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 be null if the value is null, but it could be also the value of CommonConstants.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
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"

UML Diagram for "org.tquadrat.foundation.sql.internal.StatementValue"

UML Diagram for "org.tquadrat.foundation.sql.internal.StatementValue"
  • Field Details Link icon

  • Constructor Details Link icon

    • StatementValue Link icon

      public StatementValue(String parameterName, SQLType type, String value)
      Creates an instance of a StatementValue record class.
      Parameters:
      parameterName - the value for the parameterName record component
      type - the value for the type record component
      value - the value for the value record component
  • Method Details Link icon

    • toString Link icon

      public final String toString()
      Specified by:
      toString in class Record
    • hashCode Link icon

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • parameterName Link icon

      Returns the value of the parameterName record component.
      Returns:
      the value of the parameterName record component
    • type Link icon

      public SQLType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • value Link icon

      public String value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component