Package com.jalios.util
Class SQLQueryResult.Row
- java.lang.Object
-
- com.jalios.util.SQLQueryResult.Row
-
- Enclosing class:
- SQLQueryResult
public class SQLQueryResult.Row extends java.lang.ObjectThis 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
Constructors Constructor Description Row(java.util.List columnList, java.util.HashMap columnMap, java.util.HashMap tableMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringget(int i)Returns the value of the given columnjava.lang.Stringget(java.lang.String colName)Returns the value of the given columnjava.util.ListgetColumnList()java.util.HashMapgetColumnMap()java.lang.ObjectgetObject(int i)Returns the value of the given column as the Java Object retrieved through the SQL driver.java.lang.ObjectgetObject(java.lang.String colName)Returns the object value of the given columnjava.lang.StringgetTableName(java.lang.String colName)Returns the name of table for the given column.
-
-
-
Method Detail
-
getColumnList
public java.util.List getColumnList()
- Returns:
- the list of column values
-
getColumnMap
public java.util.HashMap getColumnMap()
- Returns:
- a map (column name, column value)
-
get
public java.lang.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 java.lang.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 java.lang.String get(java.lang.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 java.lang.Object getObject(java.lang.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 java.lang.String getTableName(java.lang.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
-
-