at.spardat.xma.datasource
Interface IDomRow


public interface IDomRow

Models a row in a ITabularDomData.


Method Summary
 Atom getCell(int columnIndex)
          Returns the value of this row for the column with a given column-index.
 java.lang.String getKey()
          The value of the column COD_KEY in the ITabularDomData.
 java.lang.String getLongValue()
          The value of the column LONG_VALUE in the ITabularDomData.
 java.lang.String getShortValue()
          The value of the column SHORT_VALUE in the ITabularDomData.
 boolean isInValidTimeRange()
          Returns true if the rows VALID_FROM and VALID_TO time range includes the current time, i.e., returns true if the current time is not before VALID_FROM, 0:00 and not after VALID_TO, 23:59:59.999.
 

Method Detail

getKey

public java.lang.String getKey()
The value of the column COD_KEY in the ITabularDomData. The returned value is never null and unique amongst the rows in the ITabularDomData.


getShortValue

public java.lang.String getShortValue()
The value of the column SHORT_VALUE in the ITabularDomData. The returned value is never null but may be empty String.


getLongValue

public java.lang.String getLongValue()
The value of the column LONG_VALUE in the ITabularDomData. The returned value is never null but may be empty String.


isInValidTimeRange

public boolean isInValidTimeRange()
Returns true if the rows VALID_FROM and VALID_TO time range includes the current time, i.e., returns true if the current time is not before VALID_FROM, 0:00 and not after VALID_TO, 23:59:59.999.


getCell

public Atom getCell(int columnIndex)
Returns the value of this row for the column with a given column-index.

Normally, this method is not needed, since you access the rows cells via the other get-methods defined in this class. However, if your ITableProvider wants to provide more columns than required for a ITabularDomData, the auxiliary cells may be accessed via this method.

Parameters:
columnIndex - zero-based index of the column.
Returns:
non null Atom.
Throws:
java.lang.RuntimeException - if columnIndex is greater than or equal to the number of columns in the table.