public interface DataRow extends CloneableObject
Title: Structured Data Objects: Row
Description: An common interface for all row objects.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the row's contents setting the objects to
Null . |
int |
findColumn(java.lang.String columnName)
Finds the column specified by name, returning it's index or -1 if
it does not exist in the tuple set.
|
java.lang.Object |
getColumn(int index)
Gets the column at the secified index.
|
java.lang.Object |
getColumn(java.lang.String column)
Gets the value of the column with specified name.
|
java.lang.Class |
getColumnClass(int index)
Returns the class instance of a secific column at the index.
|
int |
getColumnCount()
Returns the number of columns in this row.
|
int |
getColumnSQLType(int index)
Returns the
SQLTypeToken of the specified column. |
RowMetaData |
getMetaData()
Returns the row set descriptor for this row.
|
java.lang.Object[] |
getRawData()
Returns array of values which represent row column values.
|
boolean |
hasRowId()
Returns
true if this row contains a Row Id column. |
boolean |
isColumnNull(int index)
Returns
true if the column at the secified index is
Null . |
boolean |
isColumnNull(java.lang.String columnName)
Returns
true if the column by this name is Null . |
java.util.Iterator |
iterator()
Returns an iteration of column values in this row.
|
void |
setColumn(int index,
java.lang.Object value)
Sets the column at specified index to the specific value.
|
void |
setColumn(java.lang.String columnName,
java.lang.Object value)
Sets the value of the column of the specific name.
|
void |
setColumnNull(int index)
Sets a column at the specified index to
Null . |
void |
setRawData(java.lang.Object[] data)
Sets raw data for this row.
|
clone
RowMetaData getMetaData()
void setColumn(java.lang.String columnName, java.lang.Object value) throws RowException
columnName
- Stringvalue
- ObjectRowException
void setColumn(int index, java.lang.Object value) throws RowException, MetaDataException
index
- intvalue
- ObjectRowException
MetaDataException
java.lang.Object getColumn(int index) throws RowException
index
- intRowException
java.lang.Object getColumn(java.lang.String column) throws RowException
column
- StringRowException
void clear()
Null
.void setColumnNull(int index) throws RowException
Null
.index
- intRowException
boolean isColumnNull(int index) throws RowException
true
if the column at the secified index is
Null
.index
- intRowException
boolean isColumnNull(java.lang.String columnName) throws RowException
true
if the column by this name is Null
.
This method throws an exception if the row set is not initialized.columnName
- StringRowException
java.util.Iterator iterator()
int getColumnSQLType(int index) throws RowException
SQLTypeToken
of the specified column. The type code is
based on the ANSII SQL200n specification.index
- intRowException
java.lang.Class getColumnClass(int index) throws RowException
index
- intRowException
int getColumnCount() throws RowException
RowException
boolean hasRowId() throws RowException
true
if this row contains a Row Id
column.RowException
int findColumn(java.lang.String columnName) throws RowException
columnName
- StringRowException
void setRawData(java.lang.Object[] data) throws RowException
data
- Array of values which represent columns of the row.RowException
- if provided array is null or number of
elements does not match columns count.java.lang.Object[] getRawData()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.