public class NullDataSource extends ArraySource
| Constructor and Description |
|---|
NullDataSource() |
NullDataSource(String sourceName) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getColumns()
Returns an array of supported columns.
|
Object |
getData(int index) |
Object |
getData(String column)
Return the object at the specified column.
|
boolean |
setData(int index,
Object value)
Sets the specified value to the specivied column.
|
boolean |
setData(String column,
Object value)
Return the object at the specified index.
|
getLineIdentifier, hasNext, next, reset, validateStategetSourceIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getData, resetpublic NullDataSource()
public NullDataSource(String sourceName)
public Object getData(String column) throws IllegalSourceStateException
DataSourcecolumn - the location where the object resides.IllegalSourceStateException - when the method could not be called
due to the state of the source i.e. next() has not been called or this
method is not supported by the data source. when next() has not beenpublic Object getData(int index) throws IllegalSourceStateException
IllegalSourceStateExceptionpublic boolean setData(String column, Object value) throws Exception
DataSourcecolumn - the location where the object should be stored.value - the object to store.Exceptionpublic boolean setData(int index,
Object value)
DataSourceindex - the location where the object should be stored.value - the object to store.public String[] getColumns()
DataSourceCopyright © 2015. All rights reserved.