2 * This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
3 * directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
4 * including this file, may be copied, modified, propagated, or distributed except according to the terms contained
8 package wtf
.metio
.yosql
.codegen
.dao
;
10 import com
.squareup
.javapoet
.CodeBlock
;
11 import wtf
.metio
.yosql
.models
.immutables
.NamesConfiguration
;
13 public class DefaultJdbcDatabaseMetaDataMethods
implements JdbcMethods
.JdbcDatabaseMetaDataMethods
{
15 private final NamesConfiguration names
;
17 public DefaultJdbcDatabaseMetaDataMethods(final NamesConfiguration names
) {
22 public CodeBlock
getDatabaseProductName() {
23 return CodeBlock
.builder()
24 .add("$N.getDatabaseProductName()", names
.databaseMetaData())