Module org.tquadrat.foundation.sql
Record Class StatementVariable
java.lang.Object
java.lang.Record
org.tquadrat.foundation.sql.internal.StatementVariable
- Record Components:
name- The name of the variable.position- The position for this variable in thePreparedStatement.
- All Implemented Interfaces:
Serializable
@ClassVersion(sourceVersion="$Id: StatementVariable.java 1020 2022-02-27 21:26:03Z tquadrat $")
@API(status=INTERNAL,
since="0.0.1")
public record StatementVariable(String name, int position)
extends Record
implements Serializable
A variable for an
EnhancedPreparedStatement.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: StatementVariable.java 1020 2022-02-27 21:26:03Z tquadrat $
- Since:
- 0.0.1
- See Also:
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.sql.internal.StatementVariable"
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStatementVariable(String name, int position) Creates an instance of aStatementVariablerecord 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.name()Returns the value of thenamerecord component.intposition()Returns the value of thepositionrecord component.final StringtoString()
-
Field Details
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
