Package com.j_spaces.jdbc
Class ResultEntry
java.lang.Object
com.j_spaces.jdbc.ResultEntry
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FetchMetaDataResultEntry
This is the result from which a ResultSet will be constructed in response to a SELECT query. This
class can be used when calling procedure classes to construct the
IProcedure execute method return value.
The result consists of the field/column names, labels, tables and values.
- Author:
- Michael Mitrani, 2004
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResultEntry(String[] columnNames, String[] columnLabels, String[] tableNames, Object[][] resultValues) -
Method Summary
Modifier and TypeMethodDescriptiongetColumnClassName(int column) String[]Get the ResultEntry's column labelsintgetColumnType(int column) getColumnTypeName(int column) String[]The ResultEntry Field NamesObject[][]Get the ResultEntry Field ValuesObject[]getFieldValues(int row) The ResultEntry Field ValuesintGet the number of rows in the result setString[]Get the ResultEntry's table namesvoidsetColumnLabels(String[] columnLabels) Set the ResultEntry's column labelsvoidsetFieldNames(String[] fieldNames) Set the ResultEntry Field NamesvoidsetFieldValues(Object[][] fieldValues) Set the ResultEntry Field ValuesvoidsetTableNames(String[] tableNames) Set the ResultEntry's table namestoString()
-
Constructor Details
-
ResultEntry
public ResultEntry() -
ResultEntry
-
-
Method Details
-
getFieldNames
The ResultEntry Field Names- Returns:
- Returns ResultEntry Field Names
-
setFieldNames
Set the ResultEntry Field Names- Parameters:
fieldNames- ResultEntry field Names
-
getColumnLabels
Get the ResultEntry's column labels- Returns:
- ResultEntry's column labels array
-
setColumnLabels
Set the ResultEntry's column labels- Parameters:
columnLabels- ResultEntry's column labels array
-
setTableNames
Set the ResultEntry's table names- Parameters:
tableNames- ResultEntry's table names array
-
getTableNames
Get the ResultEntry's table names- Returns:
- ResultEntry's table names array
-
getFieldValues
The ResultEntry Field Values- Parameters:
row- row number to get data from- Returns:
- the row data in Object array form
-
getColumnTypeName
-
setFieldValues
Set the ResultEntry Field Values- Parameters:
fieldValues- 2 dimensional object array
-
getFieldValues
Get the ResultEntry Field Values- Returns:
- 2 dimensional object array consist of ResultEntry data
-
getRowNumber
public int getRowNumber()Get the number of rows in the result set- Returns:
- the number of rows in the result set
-
getColumnClassName
-
getColumnType
public int getColumnType(int column) -
toString
-