public class ObjectArraySource extends ArraySource
| Constructor and Description |
|---|
ObjectArraySource(String sourceName) |
ObjectArraySource(String sourceName,
boolean initialize) |
ObjectArraySource(String sourceName,
DataSource source) |
ObjectArraySource(String sourceName,
Map<String,Object> map) |
ObjectArraySource(String sourceName,
Map<String,Object> map,
boolean initialize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String key) |
boolean |
containsValue(Object value) |
Map<String,Object> |
fetchMap() |
String[] |
getColumns()
Returns an array of supported columns.
|
Object |
getData(int index) |
Object |
getData(String column)
Return the object at the specified column.
|
Object |
put(String columnKey,
Object value) |
void |
putAll(Map<? extends String,? extends Object> m) |
Object |
putIfAbsent(String key,
Object value) |
void |
readPlainText(InputStream input) |
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 ObjectArraySource(String sourceName)
public ObjectArraySource(String sourceName, DataSource source) throws IllegalSourceStateException, DataValidationException
public ObjectArraySource(String sourceName, boolean initialize)
public void readPlainText(InputStream input) throws IOException
IOExceptionpublic final boolean containsKey(String key)
public boolean containsValue(Object value)
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)
public boolean setData(String column, Object value)
DataSourcecolumn - the location where the object should be stored.value - the object to store.public 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.