public class JdbcUtil extends Object
Constructor and Description |
---|
JdbcUtil() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
fillListString(PreparedStatement statement,
String fieldName) |
static String[] |
fillStringArray(PreparedStatement statement,
String fieldName) |
static String |
generateInClause(int numItems)
Deprecated.
Since 4.2.2.090330 replaced by
generateInClause(String, int) . |
static String |
generateInClause(String fieldName,
int numItems)
Generates a SQL IN statement for a field.
|
static Timestamp |
getTimestampByDate(Date data) |
static String |
prepareQueryParameter(String parameter) |
public static String prepareQueryParameter(String parameter) throws PortalException
PortalException
public static String[] fillStringArray(PreparedStatement statement, String fieldName) throws SQLException
SQLException
public static List<String> fillListString(PreparedStatement statement, String fieldName) throws SQLException
SQLException
@Deprecated public static String generateInClause(int numItems)
generateInClause(String, int)
.public static String generateInClause(String fieldName, int numItems)
?
for each
parameter, according to the numItems
argument.fieldName
- the field operand before the IN operator (e.g.: columnName or table.column).numItems
- the number of parameters to be included in the IN statement.Lumisportal 9.0.0.160603 - Copyright © 2006–2016 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.