|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.SQLValueProvider
public abstract class SQLValueProvider
This implementation of DynamicValueProvider takes a given SQL statement and executes it as a
query on the given data source. This is done via Connection.createStatement() and
Statement.executeQuery(String), which means that the SQL query can be any standard
SQL statement. SPs also work for most databases, but not for Oracle or PostgreSQL.
The ResultSet returned should have one column for the value and, if desired, one for the description
of each default value.
Datasource,
Statement.execute(String),
Serialized Form| Field Summary | |
|---|---|
static int |
MAX_RECORDS
The maximum number of records that will be fetched before the rest are ignored and the prompt becomes editable. |
| Method Summary | |
|---|---|
abstract Datasource |
getDatasource()
Returns the data source the query is to be run on |
DefaultValue[] |
getDefaultValues()
Returns an array of DefaultValue objects for a prompt field. |
abstract java.lang.String |
getSQL()
Returns the query which is to be used for fetching the values and optionally descriptions dynamically. |
| Methods inherited from interface com.inet.report.parser.NodeParser |
|---|
isDOMParser, parseDOM, parseElement, parseEndElement, parseText |
| Field Detail |
|---|
public static final int MAX_RECORDS
| Method Detail |
|---|
public DefaultValue[] getDefaultValues()
getDefaultValues in interface DynamicValueProviderjava.lang.IllegalStateException - if the query returns a value or a description longer than 50000 characters.public abstract java.lang.String getSQL()
public abstract Datasource getDatasource()
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||