public final class JdbcUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JdbcUtils.JdbcActionType |
Constructor and Description |
---|
JdbcUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
createWhereClause(List<FilterItem> whereItems,
IQueryRewriter queryRewriter,
boolean inlineValues) |
static String[] |
getTableTypesAsStrings(TableType[] tableTypes) |
static String |
getValueAsSql(Column column,
Object value,
IQueryRewriter queryRewriter) |
static boolean |
isPreparedParameterCandidate(FilterItem whereItem)
Determines if a particular
FilterItem will have it's parameter (operand) replaced during SQL generation. |
static MetaModelException |
wrapException(SQLException e,
String actionDescription,
JdbcUtils.JdbcActionType actionType) |
public static MetaModelException wrapException(SQLException e, String actionDescription, JdbcUtils.JdbcActionType actionType) throws MetaModelException
MetaModelException
public static String getValueAsSql(Column column, Object value, IQueryRewriter queryRewriter)
public static String createWhereClause(List<FilterItem> whereItems, IQueryRewriter queryRewriter, boolean inlineValues)
public static boolean isPreparedParameterCandidate(FilterItem whereItem)
FilterItem
will have it's parameter (operand) replaced during SQL generation.
Such filter items should successively have their parameters set at execution time.whereItem
- Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.