public class QueryTagInfo extends BaseTagInfo
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG_VAR_NAME |
Constructor and Description |
---|
QueryTagInfo(com.labvantage.sapphire.tagext.QueryData querydata)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
int |
findRow(java.lang.String find)
Returns the row number of the first row found matching a specified find String.
|
java.math.BigDecimal |
getBigDecimal(int row,
java.lang.String columnid)
Get a BigDecimal value from a Numeric column.
|
java.math.BigDecimal |
getBigDecimal(java.lang.String columnid)
Get a BigDecimal value from a Numeric column for the current row.
|
java.util.Calendar |
getCalendar(int row,
java.lang.String columnid)
Get a Calendar object from a Date column.
|
java.util.Calendar |
getCalendar(java.lang.String columnid)
Get a Calendar object from a Date column for the current row.
|
int |
getColumnCount()
Returns the number of columns.
|
int |
getCurrentCol()
Returns the current column number.
|
java.lang.String |
getCurrentColId()
Returns the current column ID
|
int |
getCurrentRow()
Returns the current row number.
|
int |
getInt(int row,
java.lang.String columnid)
Get an int value from a Numeric column.
|
int |
getInt(java.lang.String columnid)
Get an int value from a Numeric column for the current row.
|
java.lang.Object |
getObject(int row,
java.lang.String columnid)
Returns an object containing the String, BigDecimal or Calendar for the specified row / column.
|
java.lang.Object |
getObject(java.lang.String columnid)
Returns an object containing the String, BigDecimal or Calendar for the current row.
|
int |
getRowCount()
Returns the number of rows.
|
java.lang.String |
getString(int row,
java.lang.String columnid)
Get a string value from a String column.
|
java.lang.String |
getString(java.lang.String columnid)
Get a string value from a String column for the current row.
|
java.lang.String |
getValue(int col)
Returns a String representing the value for the specified column, independant of column type.
|
java.lang.String |
getValue(int row,
int col)
Returns a String representing the value for the specified row / column, independant of column type.
|
java.lang.String |
getValue(int row,
java.lang.String columnid)
Returns a String representing the value for the specified row / column, independant of column type.
|
java.lang.String |
getValue(java.lang.String columnid)
Returns a String representing the value for the current row, independant of column type.
|
getErrorCodes, getErrorStack, getLastError, setErrorStack
public static final java.lang.String TAG_VAR_NAME
public QueryTagInfo(com.labvantage.sapphire.tagext.QueryData querydata)
querydata
- data set from querypublic int getRowCount()
public int getCurrentRow()
public int getColumnCount()
public int getCurrentCol()
public java.lang.String getCurrentColId()
public java.lang.Object getObject(java.lang.String columnid)
columnid
- the columnid containing the required value.public java.lang.Object getObject(int row, java.lang.String columnid)
row
- the row containing the required value.columnid
- the columnid containing the required value.public java.lang.String getValue(java.lang.String columnid)
columnid
- the column containing the required value (this can be either a String, Number or Date column).public java.lang.String getValue(int col)
col
- the column containing the required value (this can be either a String, Number or Date column).public java.lang.String getValue(int row, java.lang.String columnid)
row
- the row containing the required value.columnid
- the column containing the required value (this can be either a String, Number or Date column).public java.lang.String getValue(int row, int col)
row
- the row containing the required value.col
- the column containing the required value (this can be either a String, Number or Date column).public int getInt(java.lang.String columnid)
columnid
- the column containing the required value (this must be a Numeric column).public int getInt(int row, java.lang.String columnid)
row
- the row containing the required value.columnid
- the column containing the required value (this must be a Numeric column).public java.lang.String getString(java.lang.String columnid)
columnid
- the column containing the required value (this must be a String column).public java.lang.String getString(int row, java.lang.String columnid)
row
- the row containing the required value.columnid
- the column containing the required value (this must be a String column).public java.math.BigDecimal getBigDecimal(java.lang.String columnid)
columnid
- the column containing the required value (this must be a Numeric column).public java.math.BigDecimal getBigDecimal(int row, java.lang.String columnid)
row
- the row containing the required value.columnid
- the column containing the required value (this must be a Numeric column).public java.util.Calendar getCalendar(java.lang.String columnid)
columnid
- the column containing the required value (this must be a Date column).public java.util.Calendar getCalendar(int row, java.lang.String columnid)
row
- the row containing the required value.columnid
- the column containing the required value (this must be a Date column).public int findRow(java.lang.String find)
find
- comma separated list of find criteria. e.g. "col1=XXX,col2=99,col3=YYY"