|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--litebase.ResultSetMetaData
This class returns useful information for the resultset columns. Note that the information can be retrieved even if the ResultSet returns no data.
Important: you cannot retrieve these informations if the ResultSet is closed!
| Field Summary | |
static int |
CHAR_NOCASE_TYPE
Used by the getColumnType method |
static int |
CHAR_TYPE
Used by the getColumnType method |
static int |
DATE_TYPE
Used by the getColumnType method |
static int |
DATETIME_TYPE
Used by the getColumnType method |
static int |
DOUBLE_TYPE
Used by the getColumnType method |
static int |
FLOAT_TYPE
Used by the getColumnType method |
static int |
INT_TYPE
Used by the getColumnType method |
static int |
LONG_TYPE
Used by the getColumnType method |
protected ResultSet |
rs
The underlying resultset |
static int |
SHORT_TYPE
Used by the getColumnType method |
| Constructor Summary | |
protected |
ResultSetMetaData(ResultSet rs)
|
| Method Summary | |
int |
getColumnCount()
Returns the number of columns for this resultset |
int |
getColumnDisplaySize(int column)
Given the column index (starting at 1), returns the display size. |
java.lang.String |
getColumnLabel(int column)
Given the column index (starting at 1), returns the column name. |
int |
getColumnType(int column)
Given the column index (starting at 1), returns the column type. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected ResultSet rs
public static final int CHAR_TYPE
public static final int SHORT_TYPE
public static final int INT_TYPE
public static final int LONG_TYPE
public static final int FLOAT_TYPE
public static final int DOUBLE_TYPE
public static final int CHAR_NOCASE_TYPE
public static final int DATE_TYPE
public static final int DATETIME_TYPE
| Constructor Detail |
protected ResultSetMetaData(ResultSet rs)
| Method Detail |
public int getColumnCount()
public int getColumnDisplaySize(int column)
public java.lang.String getColumnLabel(int column)
public int getColumnType(int column)
SHORT_TYPE,
INT_TYPE,
LONG_TYPE,
FLOAT_TYPE,
DOUBLE_TYPE,
CHAR_TYPE,
CHAR_NOCASE_TYPE,
DATE_TYPE,
DATETIME_TYPE
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||