Bump dawidd6/action-send-mail from 3 to 4
[yosql.git] / yosql-codegen / src / main / java / wtf / metio / yosql / codegen / dao / DefaultJdbcDatabaseMetaDataMethods.java
blobee6841d45951ecf79ece5bde7926ea931d86acfc
1 /*
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
5 * in the LICENSE file.
6 */
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) {
18 this.names = names;
21 @Override
22 public CodeBlock getDatabaseProductName() {
23 return CodeBlock.builder()
24 .add("$N.getDatabaseProductName()", names.databaseMetaData())
25 .build();