com.simba.dsi.dataengine.impl
Class DSIMetadataResultSet.MetadataRow

java.lang.Object
  extended by com.simba.dsi.dataengine.impl.DSIMetadataResultSet.MetadataRow
All Implemented Interfaces:
java.lang.Comparable<DSIMetadataResultSet.MetadataRow>
Enclosing class:
DSIMetadataResultSet

protected static class DSIMetadataResultSet.MetadataRow
extends java.lang.Object
implements java.lang.Comparable<DSIMetadataResultSet.MetadataRow>

Class describing a row. A row contains the sorting information and the data to sort.


Constructor Summary
DSIMetadataResultSet.MetadataRow(com.simba.support.Pair<java.lang.Integer,MetadataSourceColumnTag>[] columnsSortIndex, java.util.List<DataWrapper> rowData, OrderType orderType)
          Constructor.
 
Method Summary
 int compareTo(DSIMetadataResultSet.MetadataRow comp)
          Compares 2 rows using the resultSet sort order.
 java.lang.String toString()
          Returns a string representation of the row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DSIMetadataResultSet.MetadataRow

public DSIMetadataResultSet.MetadataRow(com.simba.support.Pair<java.lang.Integer,MetadataSourceColumnTag>[] columnsSortIndex,
                                        java.util.List<DataWrapper> rowData,
                                        OrderType orderType)
Constructor.

Parameters:
columnsSortIndex - The columns to use for comparing 2 rows.
rowData - The row data.
orderType - The order type to apply.
Method Detail

compareTo

public int compareTo(DSIMetadataResultSet.MetadataRow comp)
Compares 2 rows using the resultSet sort order.

Specified by:
compareTo in interface java.lang.Comparable<DSIMetadataResultSet.MetadataRow>
Parameters:
comp - The row to compare with the actual row.
Returns:
a negative integer, zero, or a positive integer as this row is less than, equal to, or greater than the specified row.

toString

public java.lang.String toString()
Returns a string representation of the row.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the row.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.