-
InterfaceDescriptionthis class is not for end-user use and should not be in the public API.Use
SqlLogger
instead.
-
ClassDescriptionthis should never have been public APIwill be replaced by a pluginuse
SqlStatement.bindMap(Map)
insteadthis functionality will remain supported, but this class should not be APIthis functionality will remain supported, but this class should not be APIwill be replaced by pluginwill be replaced by an opt-out plugin to give the core no hardwired behaviorUsegetConfig(Enums.class).setEnumStrategy(BY_NAME)
instead.UsegetConfig(Enums.class).setEnumStrategy(BY_ORDINAL)
instead.MessageFormat
formats integers with decimal separators, e.g.1000
→"1,000"
. This hindsight realization has led us to discourage its use.
-
MethodDescriptionno longer usedno longer usedUse
MapCollectors.toMap(Supplier)
instead.UseOptionalCollectors.toOptional()
instead.New code should implement theHandleSupplier.invokeInContext(ExtensionContext, Callable)
method and use this as a retrofit.ClasspathSqlLocator.create()
an instance instead of using static methodsClasspathSqlLocator.create()
an instance instead of using static methodsClasspathSqlLocator.create()
an instance instead of using static methodsClasspathSqlLocator.create()
an instance instead of using static methodsuseResultIterable.one()
orResultIterable.findOne()
instead.don't inspect a Binding: keep your own state!don't inspect a Binding: keep your own state!this is expensive to compute, and it's bad practice to inspect a Binding: keep track of your own state!UsePreparedBatch.executePreparedBatch(String...)
which has the same functionality but also returns the per-batch modified row counts.useSqlStatements.getSqlLogger()
insteadthis static method does not respect configuration, useFreemarkerConfig.createLocator()
legacy internal APIThe default changed to true so this call actually does nothing.
-
ConstructorDescriptionuse
ObjectArgument.of(Object, Integer)
factory method for more consistentnull
handling
-
Enum ConstantDescriptionvaguely named in light of new additions, use
BindList.EmptyHandling.NULL_STRING
instead