Package com.bayesserver.data
Interface DataRecord
-
- All Known Subinterfaces:
DataReader
- All Known Implementing Classes:
DataReaderFiltered,DataTableReader,WindowDataReader
public interface DataRecordInterface for reading the values from a row of data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetBoolean(int columnIndex)Gets a boolean value for the specified column.intgetColumnCount()Gets the number of columns (fields) in the data.intgetColumnIndex(String columnName)Gets the zero based column index for a column name.StringgetColumnName(int columnIndex)Gets the name of the column at the specified index.Class<?>getColumnType(int columnIndex)Get the data type for the specified column.doublegetDouble(int columnIndex)Gets a double value for the specified column.floatgetFloat(int columnIndex)Gets a float value for the specified column.intgetInt(int columnIndex)Gets an integer value for the specified column.longgetLong(int columnIndex)Gets a long value for the specified column.ObjectgetObject(int columnIndex)Gets an Object representation for the value at the specified column.StringgetString(int columnIndex)Gets a string value for the specified column.booleanisNull(int columnIndex)Determines whether the value is null (missing) for the specified column.
-
-
-
Method Detail
-
getColumnIndex
int getColumnIndex(String columnName)
Gets the zero based column index for a column name.- Parameters:
columnName- The name of the column.- Returns:
- A zero based index for the column.
-
getColumnName
String getColumnName(int columnIndex)
Gets the name of the column at the specified index.- Parameters:
columnIndex- The zero based index of the column.- Returns:
- The name of the column at the specified index.
-
getColumnType
Class<?> getColumnType(int columnIndex)
Get the data type for the specified column. @param columnIndex the zero based index of the column @return
-
getColumnCount
int getColumnCount()
Gets the number of columns (fields) in the data.- Returns:
- The column (field) count.
-
isNull
boolean isNull(int columnIndex)
Determines whether the value is null (missing) for the specified column.- Parameters:
columnIndex-- Returns:
trueif the value is null (missing),falseotherwise.
-
getObject
Object getObject(int columnIndex)
Gets an Object representation for the value at the specified column.- Parameters:
columnIndex-- Returns:
- The value at the specified column, or null if the value is missing.
-
getString
String getString(int columnIndex)
Gets a string value for the specified column.- Parameters:
columnIndex-- Returns:
- The string at the specified column index.
-
getBoolean
boolean getBoolean(int columnIndex)
Gets a boolean value for the specified column.- Parameters:
columnIndex- The zero based column index.- Returns:
- The boolean value at the specified index.
-
getInt
int getInt(int columnIndex)
Gets an integer value for the specified column.- Parameters:
columnIndex- The zero based column index.- Returns:
- The integer value at the specified index.
-
getLong
long getLong(int columnIndex)
Gets a long value for the specified column.- Parameters:
columnIndex- The zero based column index.- Returns:
- The long value at the specified index.
-
getDouble
double getDouble(int columnIndex)
Gets a double value for the specified column.- Parameters:
columnIndex- The zero based column index.- Returns:
- The double value at the specified index.
-
getFloat
float getFloat(int columnIndex)
Gets a float value for the specified column.- Parameters:
columnIndex- The zero based column index.- Returns:
- The float value at the specified index.
-
-