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)
colinfo - the column metadatapublic ColumnData(ValueInfo base)
base - templatepublic ColumnInfo getColumnInfo()
public void setColumnInfo(ColumnInfo colinfo)
colinfo - the column metadatapublic abstract java.lang.Object readValue(long irow)
throws java.io.IOException
irow - the row from which to retrieve the valuejava.io.IOException - if there is some problem readingpublic void storeValue(long irow,
java.lang.Object val)
throws java.io.IOException
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()
storeValue(long, java.lang.Object) can be used