com.jalios.util
Class SQLQueryResult.Row

java.lang.Object
  extended by com.jalios.util.SQLQueryResult.Row
Enclosing class:
SQLQueryResult

public class SQLQueryResult.Row
extends Object

This class represents a row. The column values can be accessed either by the column index or by the column name.

Since:
jcms-5.5.0

Constructor Summary
SQLQueryResult.Row(List columnList, HashMap columnMap, HashMap tableMap)
           
 
Method Summary
 String get(int i)
          Returns the value of the given column
 String get(String colName)
          Returns the value of the given column
 List getColumnList()
           
 HashMap getColumnMap()
           
 Object getObject(int i)
          Returns the value of the given column as the Java Object retrieved through the SQL driver.
 Object getObject(String colName)
          Returns the object value of the given column
 String getTableName(String colName)
          Returns the name of table for the given column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLQueryResult.Row

public SQLQueryResult.Row(List columnList,
                          HashMap columnMap,
                          HashMap tableMap)
Method Detail

getColumnList

public List getColumnList()
Returns:
the list of column values

getColumnMap

public HashMap getColumnMap()
Returns:
a map (column name, column value)

get

public String get(int i)
Returns the value of the given column

Parameters:
i - the index of the column (starts at 0)
Returns:
the value of the given column or empty string when not available

getObject

public Object getObject(int i)
Returns the value of the given column as the Java Object retrieved through the SQL driver.

Parameters:
i - the index of the column (starts at 0)
Returns:
the value of the given column

get

public String get(String colName)
Returns the value of the given column

Parameters:
colName - the name of the column
Returns:
the value of the given column

getObject

public Object getObject(String colName)
Returns the object value of the given column

Parameters:
colName - the name of the column
Returns:
the value of the given column
See Also:
getObject(int)

getTableName

public String getTableName(String colName)
Returns the name of table for the given column.

Parameters:
colName - the name of the column
Returns:
the name of table for the given column.
Since:
jcms-5.6.0


Copyright © 2001-2010 Jalios SA. All Rights Reserved.