Record Class SqlParameter<O>
java.lang.Object
java.lang.Record
io.vertigo.database.sql.statement.SqlParameter<O>
- Type Parameters:
O- the type param- Record Components:
dataType- the param typevalue- the param value
this class concerns the param of a sql statement.
- Author:
- pchretien
-
Constructor Summary
ConstructorsConstructorDescriptionSqlParameter(Class<O> dataType, O value) Creates an instance of aSqlParameterrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondataType()Returns the value of thedataTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static <O> SqlParameterStatic builder.toString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Method Details
-
of
Static builder.- Parameters:
dataType- the param typevalue- the param value- Returns:
- SqlParameter of this value
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
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. -
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). -
dataType
Returns the value of thedataTyperecord component.- Returns:
- the value of the
dataTyperecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-