public class QueryUtil extends Object
Constructor and Description |
---|
QueryUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
executeUpdate(Connection connection,
String query) |
static jp.go.nict.langrid.commons.util.Pair<String,String> |
makeOperationAndMatchingValue(String value,
MatchingMethod method,
DbDictionary dictionary) |
static PreparedStatement |
prepareStatement(Connection connection,
String queryFormat,
Object... args) |
static void |
setShowSqlEnabled(boolean enabled) |
static String |
toColumnAssignes(Language... languages) |
static String |
toColumnDefinitions(Language[] languages) |
static String |
toColumnNames(Language... languages) |
static String |
toColumnSelects(String tableNameAlias,
Language... languages) |
public static int executeUpdate(Connection connection, String query) throws SQLException
SQLException
public static PreparedStatement prepareStatement(Connection connection, String queryFormat, Object... args) throws SQLException
SQLException
public static jp.go.nict.langrid.commons.util.Pair<String,String> makeOperationAndMatchingValue(String value, MatchingMethod method, DbDictionary dictionary)
public static void setShowSqlEnabled(boolean enabled)