public class HQLXResultSetPrinter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
charWidth
The char width of the columns
|
protected int |
columnCount
The total number of columns.
|
protected ResultSetExt[] |
resultSet
The ODS result set.
|
protected java.lang.Object[] |
stringVal
The column string presentation.
|
static java.lang.String |
version |
| Constructor and Description |
|---|
HQLXResultSetPrinter(ApplicationStructure asObj,
ResultSetExt[] res)
The construtor receiving the ods result set.
|
| Modifier and Type | Method and Description |
|---|---|
int |
findColumn(java.lang.String name)
Find a specific column.
|
protected NameValueSeqUnitId |
getAttributeRestValues(int column) |
protected NameValueSeqUnitId |
getAttributeValues(int column)
Get the attribute values.
|
java.lang.String |
getCellStringValue(int column,
int row)
Get the cell string value.
|
int |
getColumnCount()
Get the column count.
|
int |
getColumnDisplaySize(int column)
Indicates the designated column's normal maximum width in characters.
|
java.lang.String[] |
getColumnStringValue(int column)
Get the column string value.
|
ResultColumn[] |
getResultColumns()
Get the result columns.
|
ResultSetExt[] |
getResultSetExt()
Get the ODS Result set of a ODS query
|
int |
getRowCount()
Get the row count.
|
java.lang.String[] |
getRowStringValue(int row)
Get the row string value.
|
java.lang.String |
getVersion() |
java.lang.String[] |
listColumns()
List attribute names belong to the result set.
|
void |
printCols(java.io.PrintStream out)
Print the result set.
|
void |
release()
Release the object.
|
java.lang.String[] |
ts_UnionSeqToString(TS_UnionSeq unionSeq)
Get the column string value.
|
public static final java.lang.String version
protected ResultSetExt[] resultSet
ElemResultSetprotected int[] charWidth
protected java.lang.Object[] stringVal
protected int columnCount
public HQLXResultSetPrinter(ApplicationStructure asObj, ResultSetExt[] res)
name - the result name.command - The command that created the result.res - The ods result set structure.org.asam.ods.resultSetultSetpublic java.lang.String getVersion()
public void release()
public java.lang.String[] listColumns()
throws AoException
pattern - The pattern that must fulfill by the returned names.AoExceptionpublic int findColumn(java.lang.String name)
throws java.lang.Exception
name - the name of the column.java.lang.Exceptionpublic int getColumnDisplaySize(int column)
throws AoException
column - The column index.AoExceptionpublic java.lang.String[] getRowStringValue(int row)
throws AoException
row - The row index.AoExceptionpublic java.lang.String getCellStringValue(int column,
int row)
throws AoException
column - The column index.row - The row index.AoExceptionpublic java.lang.String[] getColumnStringValue(int column)
throws AoException
column - The column index.AoExceptionpublic java.lang.String[] ts_UnionSeqToString(TS_UnionSeq unionSeq) throws AoException
column - The column index.AoExceptionprotected NameValueSeqUnitId getAttributeValues(int column) throws AoException
column - The column index.AoExceptionprotected NameValueSeqUnitId getAttributeRestValues(int column) throws AoException
AoExceptionpublic int getColumnCount()
throws AoException
AoExceptionpublic int getRowCount()
throws AoException
AoExceptionpublic ResultColumn[] getResultColumns() throws AoException
AoExceptionpublic ResultSetExt[] getResultSetExt()
org.asam.ods.resultSetultSetpublic void printCols(java.io.PrintStream out)
throws AoException
out - AoException