Record Class NamedParameterParser.ParsedSql
java.lang.Object
java.lang.Record
cloud.opencode.base.string.parse.NamedParameterParser.ParsedSql
- Record Components:
sql- the translated string with?placeholdersparamNames- ordered list of parameter names (matching?positions)
- Enclosing class:
NamedParameterParser
public static record NamedParameterParser.ParsedSql(String sql, List<String> paramNames)
extends Record
Result of parsing a named-parameter string.
- Since:
- JDK 25, opencode-base-string V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
Constructors -
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 theparamNamesrecord component.sql()Returns the value of thesqlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedSql
Creates an instance of aParsedSqlrecord class.- Parameters:
sql- the value for thesqlrecord componentparamNames- the value for theparamNamesrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
sql
-
paramNames
Returns the value of theparamNamesrecord component.- Returns:
- the value of the
paramNamesrecord component
-