| Modifier and Type | Field and Description |
|---|---|
| protected static final int | |
| protected String | |
| protected String | |
| pack-priv static final String | |
| pack-priv static final String | |
| protected NumberFormat | |
| protected NumberFormat | |
| private static final String | |
| protected String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public String[] | getColumnNames(ResultSet rs)
Implements com. Returns the column names from the ResultSet. |
| private String | getColumnValue(ResultSet rs, int colType, int colIndex, boolean trim, String dateFormatString, String timestampFormatString)
|
| public String[] | getColumnValues(ResultSet rs)
Implements com. Returns the column values from the result set. |
| public String[] | getColumnValues(ResultSet rs, boolean trim)
Implements com. Returns the column values from the result set with the values trimmed if desired. |
| public String[] | getColumnValues(ResultSet rs, boolean trim, String dateFormatString, String timeFormatString)
Implements com. Returns the column values from the result set with the values trimmed if desired. |
| protected String | Returns: the data in the Clob as a string.- result set rs, int - column location of the data in the result set colIndex)retrieves the data out of a CLOB |
| protected String | Returns: - a string representing the data from the result set in the format set in dateFomratString.- result set rs, int - column location of the data in the result set colIndex, String - desired format of the date dateFormatString)retrieves an date from a result set |
| protected String | Returns: the data in the NCLOB as a string.- result set rs, int - column location of the data in the result set colIndex)retrieves the data out of a NCLOB |
| protected String | Returns: a string representing the NVarChar from the result set- result set rs, int - column location of the data in the result set colIndex, boolean - should the value be trimmed before being returned trim)retrieves the data from an NVarChar in a result set |
| protected String | Returns: Formatted time stamp.Timestamp read from resultset timestamp, String Format string timestampFormatString)The formatted timestamp. |
| protected String | Returns: a string representing the VarChar from the result set- result set rs, int - column location of the data in the result set colIndex, boolean - should the value be trimmed before being returned trim)retrieves the data from an VarChar in a result set |
| public void | setDateFormat(String
Desired date format dateFormat)Set a default date format pattern that will be used by the service. |
| public void | setDateTimeFormat(String
Desired date time format dateTimeFormat)Set a default date time format pattern that will be used by the service. |
| public void | setFloatingPointFormat(NumberFormat
Desired number format. Should not be null format)Set a default number formatter for integer numbers that will be used by the service. |
| public void | setIntegerFormat(NumberFormat
Desired number format. Should not be null format)Set a default number formatter for floating point numbers that will be used by the service. |
| public void |
| CLOBBUFFERSIZE | back to summary |
|---|---|
| protected static final int CLOBBUFFERSIZE | |
| dateFormat | back to summary |
|---|---|
| protected String dateFormat | |
| dateTimeFormat | back to summary |
|---|---|
| protected String dateTimeFormat | |
| DEFAULT_DATE_FORMAT | back to summary |
|---|---|
| pack-priv static final String DEFAULT_DATE_FORMAT | |
| DEFAULT_TIMESTAMP_FORMAT | back to summary |
|---|---|
| pack-priv static final String DEFAULT_TIMESTAMP_FORMAT | |
| floatingPointFormat | back to summary |
|---|---|
| protected NumberFormat floatingPointFormat | |
| integerFormat | back to summary |
|---|---|
| protected NumberFormat integerFormat | |
| NULL_DEFAULT_VALUE | back to summary |
|---|---|
| private static final String NULL_DEFAULT_VALUE | |
| nullDefault | back to summary |
|---|---|
| protected String nullDefault | |
| ResultSetHelperService | back to summary |
|---|---|
| public ResultSetHelperService() Default constructor. | |
| applyFormatter | back to summary |
|---|---|
| private String applyFormatter(NumberFormat formatter, Number value) | |
| getColumnNames | back to summary |
|---|---|
| public String[] getColumnNames(ResultSet rs) throws SQLException Implements com. Doc from com. Returns the column names from the ResultSet.
| |
| getColumnValue | back to summary |
|---|---|
| private String getColumnValue(ResultSet rs, int colType, int colIndex, boolean trim, String dateFormatString, String timestampFormatString) throws SQLException, IOException | |
| getColumnValues | back to summary |
|---|---|
| public String[] getColumnValues(ResultSet rs) throws SQLException, IOException Implements com. Doc from com. Returns the column values from the result set.
| |
| getColumnValues | back to summary |
|---|---|
| public String[] getColumnValues(ResultSet rs, boolean trim) throws SQLException, IOException Implements com. Doc from com. Returns the column values from the result set with the values trimmed if desired.
| |
| getColumnValues | back to summary |
|---|---|
| public String[] getColumnValues(ResultSet rs, boolean trim, String dateFormatString, String timeFormatString) throws SQLException, IOException Implements com. Doc from com. Returns the column values from the result set with the values trimmed if desired. Also format the date and time columns based on the format strings passed in.
| |
| handleClob | back to summary |
|---|---|
| protected String handleClob(ResultSet rs, int colIndex) throws SQLException, IOException retrieves the data out of a CLOB | |
| handleDate | back to summary |
|---|---|
| protected String handleDate(ResultSet rs, int colIndex, String dateFormatString) throws SQLException retrieves an date from a result set | |
| handleNClob | back to summary |
|---|---|
| protected String handleNClob(ResultSet rs, int colIndex) throws SQLException, IOException retrieves the data out of a NCLOB | |
| handleNVarChar | back to summary |
|---|---|
| protected String handleNVarChar(ResultSet rs, int colIndex, boolean trim) throws SQLException retrieves the data from an NVarChar in a result set | |
| handleTimestamp | back to summary |
|---|---|
| protected String handleTimestamp(Timestamp timestamp, String timestampFormatString) The formatted timestamp. | |
| handleVarChar | back to summary |
|---|---|
| protected String handleVarChar(ResultSet rs, int colIndex, boolean trim) throws SQLException retrieves the data from an VarChar in a result set | |
| setDateFormat | back to summary |
|---|---|
| public void setDateFormat(String dateFormat) Set a default date format pattern that will be used by the service.
| |
| setDateTimeFormat | back to summary |
|---|---|
| public void setDateTimeFormat(String dateTimeFormat) Set a default date time format pattern that will be used by the service.
| |
| setFloatingPointFormat | back to summary |
|---|---|
| public void setFloatingPointFormat(NumberFormat format) Set a default number formatter for integer numbers that will be used by the service.
| |
| setIntegerFormat | back to summary |
|---|---|
| public void setIntegerFormat(NumberFormat format) Set a default number formatter for floating point numbers that will be used by the service.
| |
| setNullDefault | back to summary |
|---|---|
| public void setNullDefault(String nullDefault) Set a default value that will be used when column value is null. | |