Returns true if the given sqlType identifier is an Integer data type @param sqlType @return @see java.sql.Types
(int sqlType)
| 410 | * @see java.sql.Types |
| 411 | */ |
| 412 | public static boolean isIntegerType(int sqlType) { |
| 413 | switch (sqlType) { |
| 414 | case Types.TINYINT: |
| 415 | case Types.SMALLINT: |
| 416 | case Types.INTEGER: |
| 417 | case Types.BIGINT: |
| 418 | { |
| 419 | return (true); |
| 420 | } |
| 421 | default: |
| 422 | return (false); |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | /** |
| 427 | * Return the COUNT(*) SQL to calculate the number of records |
no outgoing calls