jp.go.nict.langrid.wrapper.common.db.dao
クラス QueryUtil
java.lang.Object
jp.go.nict.langrid.wrapper.common.db.dao.QueryUtil
public class QueryUtil
- extends Object
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryUtil
public QueryUtil()
executeUpdate
public static int executeUpdate(Connection connection,
String query)
throws SQLException
- 例外:
SQLException
prepareStatement
public static PreparedStatement prepareStatement(Connection connection,
String queryFormat,
Object... args)
throws SQLException
- 例外:
SQLException
toColumnNames
public static String toColumnNames(Language... languages)
toColumnSelects
public static String toColumnSelects(String tableNameAlias,
Language... languages)
toColumnDefinitions
public static String toColumnDefinitions(Language[] languages)
toColumnAssignes
public static String toColumnAssignes(Language... languages)
makeOperationAndMatchingValue
public static Pair<String,String> makeOperationAndMatchingValue(String value,
MatchingMethod method,
DbDictionary dictionary)
setShowSqlEnabled
public static void setShowSqlEnabled(boolean enabled)