recordConverterMethod
The name of the method to generate in converters built from a record.
Every converter generated from a resultRowType declares one method, and this is its name. Change it to match the convention the hand-written converters in your project already follow, so a repository reads the same whichever kind of converter it calls.
Configuration Options
Option: ‘asUserType’
The default value of the recordConverterMethod configuration option is asUserType, which matches the name used by the hand-written converters in the examples.
Option: ‘mapRow’
Changing the recordConverterMethod configuration option to mapRow generates public User mapRow(ResultSet resultSet) instead.
Related Options
defaultConverter : The fully-qualified name of the converter to use for statements that name none.
generateMapConverter : Whether the ToMap converter should be generated.
mapConverterAlias : The name of the alias referencing the ToMap converter.
mapConverterClass : The fully-qualified class name of the ToMap converter.
mapConverterMethod : The name of the method to generate/call in the ToMap converter.
recordConverterPrefix : The prefix of the class name of converters built from a record.
recordConverterSuffix : The suffix of the class name of converters built from a record.
Tooling
Ant
In order to use YoSQL together with Ant
, take a look at the tooling documentation for Ant
.
Bazel
In order to use YoSQL together with Bazel
, take a look at the tooling documentation for Bazel
.
CLI
In order to use YoSQL on the command line, take a look at the tooling documentation for CLI
.
yosql --converter-record-converter-method=configValue
As long as the name of the config option is unique across all configuration groups, you can use the shorter form:
yosql --record-converter-method=configValue
Gradle
In order to use YoSQL together with Gradle
, take a look at the tooling documentation for Gradle
. The recordConverterMethod setting can be configured using Gradle in Kotlin syntax like this:
plugins {
java
id("wtf.metio.yosql") version "2023.2.22"
}
yosql {
converter {
recordConverterMethod.set(configValue)
}
}
or in Groovy syntax like this:
plugins {
id "java"
id "wtf.metio.yosql" version "2023.2.22"
}
yosql {
converter {
recordConverterMethod = configValue
}
}
Maven
In order to use YoSQL together with Maven
, take a look at the tooling documentation for Maven
. The recordConverterMethod setting can be configured using Maven like this:
<build>
<plugins>
<plugin>
<groupId>wtf.metio.yosql</groupId>
<artifactId>yosql-tooling-maven</artifactId>
<version>2023.2.22</version>
<configuration>
<converter>
<recordConverterMethod>configValue</recordConverterMethod>
</converter>
</configuration>
</plugin>
</plugins>
</build>