|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ColumnAliasExtractor
Strategy for extracting the unique column alias out of a ResultSetMetaData
. This is used during the
"auto discovery" phase of native SQL queries.
ResultSetMetaData.getColumnLabel(int)
, but not all drivers do this correctly.
Field Summary | |
---|---|
static ColumnAliasExtractor |
COLUMN_LABEL_EXTRACTOR
An extractor which uses ResultSetMetaData.getColumnLabel(int) |
static ColumnAliasExtractor |
COLUMN_NAME_EXTRACTOR
An extractor which uses ResultSetMetaData.getColumnName(int) |
Method Summary | |
---|---|
String |
extractColumnAlias(ResultSetMetaData metaData,
int position)
Extract the unique column alias. |
Field Detail |
---|
static final ColumnAliasExtractor COLUMN_LABEL_EXTRACTOR
ResultSetMetaData.getColumnLabel(int)
static final ColumnAliasExtractor COLUMN_NAME_EXTRACTOR
ResultSetMetaData.getColumnName(int)
Method Detail |
---|
String extractColumnAlias(ResultSetMetaData metaData, int position) throws SQLException
metaData
- The result set metadataposition
- The column position
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |