Tag
|
Description
|
esql:row-results//esql:get-columns
|
results in a set of elements whose names are the names of the columns. the elements each have one text child, whose value is the value of the column interpreted as a string. No special formatting is allowed here. If you want to mess around with the names of the elements or the value of the text field, use the type-specific get methods and write out the result fragment yourself. For Cocoon 2 only, this outputs structured types as well. Here sql-list or sql-set contains several sql-list-item or sql-set-item element that again contain the actual data.
|
esql:row-results//esql:get-string
|
returns the value of the given column as a string
|
esql:row-results//esql:get-date
|
returns the value of the given column as a date. if a format attribute exists, its value is taken to be a date format string as defined in java.text.SimpleDateFormat, and the result is formatted accordingly.
|
esql:row-results//esql:get-time
|
returns the value of the given column as a time. if a format attribute exists, its value is taken to be a date format string as defined in java.text.SimpleDateFormat, and the result is formatted accordingly.
|
esql:row-results//esql:get-timestamp
|
returns the value of the given column as a timestamp. if a format attribute exists, its value is taken to be a date format string as defined in java.text.SimpleDateFormat, and the result is formatted accordingly.
|
esql:row-results//esql:get-boolean
|
returns the value of the given column as true or false
|
esql:row-results//esql:get-double
|
returns the value of the given column as a double. if a format attribute exists, its value is taken to be a decimal format string as defined in java.text.DecimalFormat, and the result is formatted accordingly.
|
esql:row-results//esql:get-float
|
returns the value of the given column as a float. if a format attribute exists, its value is taken to be a decimal format string as defined in java.text.DecimalFormat, and the result is formatted accordingly.
|
esql:row-results//esql:get-int
|
returns the value of the given column as an integer
|
esql:row-results//esql:get-long
|
returns the value of the given column as a long
|
esql:row-results//esql:get-short
|
returns the value of the given column as a short
|
esql:row-results//esql:get-ascii
|
returns the value of the given column as a clob
|
esql:row-results//esql:get-object
|
returns the value of the given column as an object
|
esql:row-results//esql:get-xml
|
returns the value of the given column interpreted as an xml fragment.
The fragment is parsed by the default xsp parser and the document element is returned.
If a root attribute exists, its value is taken to be the name of an element to wrap around the contents of
the fragment before parsing.
|
esql:results//esql:get-column-count
|
returns the number of columns in the resultset.
|
esql:row-results//esql:get-row-position|esql:results//esql:get-row-position
|
returns the position of the current row in the result set
|
esql:row-results//esql:get-column-name
|
returns the name of the given column. the column must be specified by number, not name.
|
esql:row-results//esql:get-column-label
|
returns the label of the given column. the column must be specified by number, not name.
|
esql:row-results//esql:get-column-type-name
|
returns the name of the type of the given column. the column must be specified by number, not name.
|
esql:row-results//esql:is-null
|
allows null-column testing. Evaluates to a Java expression, which is true when the referred column contains a null-value for the current resultset row
|
esql:error-results//esql:get-message
|
returns the message of the current exception
|
esql:error-results//esql:to-string
|
returns the current exception as a string
|
esql:error-results//esql:get-stacktrace
|
returns the stacktrace of the current exception
|
esql:results/esql:get-metadata
|
returns the metadata associated with the current resultset
|
esql:results/esql:get-resultset
|
returns the current resultset
|
@*|node()
|
used internally to determine which column is the given column. if a column attribute exists and its value is a number, it is taken to be the column's position. if the value is not a number, it is taken to be the column's name. if a column attribute does not exist, an esql:column element is assumed to exist and to render as a string (after all of the xsp instructions have been evaluated), which is taken to be the column's name.
|