public abstract class ColumnData
extends java.lang.Object
| Constructor and Description |
|---|
ColumnData()
Constructs a new ColumnData with no metadata.
|
ColumnData(ColumnInfo colinfo)
Constructs a new
ColumnData with metadata supplied by a
given ColumnInfo object. |
ColumnData(ValueInfo base)
Performs
ColumnData initialisation based on template
ValueInfo object. |
| Modifier and Type | Method and Description |
|---|---|
ColumnInfo |
getColumnInfo()
Returns the
ColumnInfo which provides the metadata for this
column. |
boolean |
isWritable()
Indicates whether this object can store values.
|
abstract java.lang.Object |
readValue(long irow)
Returns the value stored at a given row in this column.
|
void |
setColumnInfo(ColumnInfo colinfo)
Sets the
ColumnInfo which provides the metadata for this
column. |
void |
storeValue(long irow,
java.lang.Object val)
Stores a given value in a given row for this column.
|
public ColumnData()
public ColumnData(ColumnInfo colinfo)
ColumnData with metadata supplied by a
given ColumnInfo object.colinfo - the column metadatapublic ColumnData(ValueInfo base)
ColumnData initialisation based on template
ValueInfo object.base - templatepublic ColumnInfo getColumnInfo()
ColumnInfo which provides the metadata for this
column.public void setColumnInfo(ColumnInfo colinfo)
ColumnInfo which provides the metadata for this
column.colinfo - the column metadatapublic abstract java.lang.Object readValue(long irow)
throws java.io.IOException
irow - the row from which to retrieve the valueirowjava.io.IOException - if there is some problem readingpublic void storeValue(long irow,
java.lang.Object val)
throws java.io.IOException
isWritable method returns true.
The implementation in the ColumnData class throws
an UnsupportedOperationException.val - the object to storeirow - the row to store it injava.lang.UnsupportedOperationException - if !isWritable()java.lang.NullPointerException - if val==null and
this column is not nullablejava.lang.ArrayStoreException - if val is not compatible
with the content class of this columnjava.io.IOException - if there is some problem writingpublic boolean isWritable()
ColumnData class returns
falsestoreValue(long, java.lang.Object) can be used