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 1161 2026-03-16 21:00:45Z 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 1161 2026-03-16 21:00:45Z 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
-
name
-
position
-
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
position
-
