|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataSet
Method Summary | |
---|---|
void |
absolute(int localPointer)
Sets the absolute position of the record pointer |
void |
clearAll()
Clears both the errors and rows from memory |
void |
clearErrors()
Clears out the parse errors from memory |
void |
clearRows()
Clears out the rows in memory from the last parse. |
boolean |
contains(java.lang.String column)
Does this DataSet contain a column with the given name? |
java.math.BigDecimal |
getBigDecimal(java.lang.String column)
Returns the BigDecimal value of a specified column |
java.lang.String[] |
getColumns()
Returns a String array of column names in the DataSet. |
java.lang.String[] |
getColumns(java.lang.String recordID)
Returns a String array of column names in the DataSet for a given |
java.util.Date |
getDate(java.lang.String column)
Returns the date value of a specified column. |
java.util.Date |
getDate(java.lang.String column,
java.text.SimpleDateFormat sdf)
Returns the date value of a specified column. |
double |
getDouble(java.lang.String column)
Returns the double value of a specified column |
int |
getErrorCount()
Returns total number of records which contained a parse error in the file. |
java.util.List |
getErrors()
Returns A Collection Of DataErrors that happened during processing |
int |
getIndex()
Returns the index the pointer is on for the array |
int |
getInt(java.lang.String column)
Returns the interger value of a specified column |
long |
getLong(java.lang.String column)
Returns the long value of a specified column |
java.lang.Object |
getObject(java.lang.String column,
java.lang.Class classToConvertTo)
Returns the value of the column with the type of object specified |
java.lang.String |
getRawData()
|
int |
getRowCount()
Returns the total number of rows parsed in from the file |
int |
getRowNo()
Returns the line number the pointer is on. |
java.lang.String |
getString(java.lang.String column)
Returns the string value of a specified column |
void |
goBottom()
Goes to the last record in the dataset |
void |
goTop()
Goes to the top of the data set. |
boolean |
isAnError(int lineNo)
Returns true or false as to whether or not the line number contains an error. |
boolean |
isRecordID(java.lang.String recordID)
Checks to see if the row has the given |
boolean |
isRowEmpty()
Checks to see if there was no data on the row which was parsed. |
boolean |
next()
Moves to the next record in the set. |
void |
orderRows(OrderBy ob)
Orders the data by column(s) specified. |
boolean |
previous()
Moves back to the previous record in the set return true if move was a success, false if not |
void |
remove()
Removes a row from the dataset. |
void |
setLowerCase()
Sets data in the DataSet to lowercase |
void |
setPZConvertProps(java.util.Properties props)
Sets the properties from the pzconvert.properties file. |
void |
setStrictNumericParse(boolean strictNumericParse)
Setting this to True will parse text as is and throw a NumberFormatException. |
void |
setUpperCase()
Sets data in the DataSet to uppercase |
void |
setValue(java.lang.String column,
java.lang.String value)
Changes the value of the given column only for the given row which the pointer is currently sitting on. |
Method Detail |
---|
void goTop()
void goBottom()
boolean next()
boolean previous()
java.lang.String getString(java.lang.String column)
column
- -
Name of the column
java.util.NoSuchElementException
double getDouble(java.lang.String column)
column
- -
Name of the column
java.util.NoSuchElementException
java.lang.NumberFormatException
java.math.BigDecimal getBigDecimal(java.lang.String column)
column
- -
Name of the column
java.util.NoSuchElementException
java.lang.NumberFormatException
int getInt(java.lang.String column)
column
- -
Name of the column
java.util.NoSuchElementException
java.lang.NumberFormatException
long getLong(java.lang.String column)
column
- -
Name of the column
java.util.NoSuchElementException
java.lang.NumberFormatException
java.util.Date getDate(java.lang.String column) throws java.text.ParseException
column
- -
Name of the column
java.text.ParseException
java.util.Date getDate(java.lang.String column, java.text.SimpleDateFormat sdf) throws java.text.ParseException
column
- -
Name of the columnsdf
- -
SimpleDateFormat of the date
java.text.ParseException
SimpleDateFormat
java.lang.Object getObject(java.lang.String column, java.lang.Class classToConvertTo)
column
- Name of the columnclassToConvertTo
- Class type to convert to
java.lang.String[] getColumns()
java.lang.String[] getColumns(java.lang.String recordID)
recordID
-
int getRowNo()
java.util.NoSuchElementException
java.lang.NumberFormatException
java.util.List getErrors()
void remove()
int getIndex()
int getRowCount()
int getErrorCount()
boolean isAnError(int lineNo)
lineNo
- -
int line number
void orderRows(OrderBy ob)
ob
- -
OrderBy objectOrderBy
,
OrderColumn
void setLowerCase()
void setUpperCase()
boolean isRecordID(java.lang.String recordID)
recordID
-
void absolute(int localPointer)
localPointer
- -
int
java.lang.IndexOutOfBoundsException
void setStrictNumericParse(boolean strictNumericParse)
strictNumericParse
- The strictNumericParse to set.void setPZConvertProps(java.util.Properties props)
props
- Property mapping for String to Object conversionvoid setValue(java.lang.String column, java.lang.String value)
column
- Column name to set the value forvalue
- Value to change the column tovoid clearRows()
void clearErrors()
void clearAll()
boolean contains(java.lang.String column)
column
- Column name to check for
boolean isRowEmpty()
java.lang.String getRawData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |