public class SqlUtil extends Object
| Constructor and Description |
|---|
SqlUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends com.github.shoothzj.config.client.api.BaseConfig> |
fillInInsertParam(PreparedStatement preparedStatement,
T config) |
static <T extends com.github.shoothzj.config.client.api.BaseConfig> |
fillInUpdateParam(PreparedStatement preparedStatement,
T config,
int oldVersion) |
static <T extends com.github.shoothzj.config.client.api.BaseConfig> |
getDdl(Class<T> configClass) |
static <T extends com.github.shoothzj.config.client.api.BaseConfig> |
getTableName(Class<T> configClass) |
static String |
getTableName(String className) |
static String |
joinByComma(List<String> list) |
static String |
preparePlaceHolders(int length) |
public static <T extends com.github.shoothzj.config.client.api.BaseConfig> void fillInInsertParam(PreparedStatement preparedStatement, T config) throws SQLException
SQLExceptionpublic static <T extends com.github.shoothzj.config.client.api.BaseConfig> void fillInUpdateParam(PreparedStatement preparedStatement, T config, int oldVersion) throws SQLException
SQLExceptionpublic static String preparePlaceHolders(int length)
public static <T extends com.github.shoothzj.config.client.api.BaseConfig> String getDdl(Class<T> configClass)
public static <T extends com.github.shoothzj.config.client.api.BaseConfig> String getTableName(Class<T> configClass)
Copyright © 2021 Shoothzj. All rights reserved.