isql
Class ColumnValues

java.lang.Object
  extended by isql.ColumnValues
Direct Known Subclasses:
ColumnValuesWithRowsNumber

public class ColumnValues
extends java.lang.Object

The columns of the result set: each column is an array. All columns are mapped by the column key

Author:
SHZ Nov 14, 2007

Constructor Summary
ColumnValues(java.util.Map<ColumnKey,Array> mapValuesByColumn)
          Constuctor
 
Method Summary
 java.util.Set<java.util.Map.Entry<ColumnKey,Array>> entrySet()
          Returns the columns with their ids
 Array get(ColumnKey key)
          Returns the array of a column
 java.util.Set<ColumnKey> keySet()
          Returns the identifiers of the columns
 java.lang.String toString()
           
 java.util.Collection<Array> values()
          Returns the columns contents (arrays)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnValues

public ColumnValues(java.util.Map<ColumnKey,Array> mapValuesByColumn)
Constuctor

Parameters:
mapValuesByColumn - map [column identifier] -> [column content]
Throws:
ISQLException
Method Detail

entrySet

public java.util.Set<java.util.Map.Entry<ColumnKey,Array>> entrySet()
Returns the columns with their ids

Returns:
the content of the map column identifier -> column content
See Also:
Map.entrySet()

keySet

public java.util.Set<ColumnKey> keySet()
Returns the identifiers of the columns

Returns:
the columns identifiers
See Also:
Map.keySet()

values

public java.util.Collection<Array> values()
Returns the columns contents (arrays)

Returns:
the arrays of all columns in the result set
See Also:
Map.values()

get

public Array get(ColumnKey key)
Returns the array of a column

Parameters:
key - the column identifier
Returns:
the array contained in the column
See Also:
Map.get(java.lang.Object)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object