|
EspressReport 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IQueryParamValuesProvider
A class implementing this interface should also implement IQueryInParam.
This interface provides additional functionality to IQueryInParam. This
interface allows the user to define a custom list of objects as possible
values to the parameter.
The getSelectionChoices method is called only once during report
initialization to get the vector of objects. Then this list is used any
time the user is asked to choose a value. No subsequent call will be
made to getSelectionChoices.
There are limitations to the type of objects that can be in the vector.
More importantly, the objects should respect the SQL type of the parameter.
The following is a table for the SQL type to object class mapping:
| SQL Type | Java Object |
| java.sql.Types.CHAR java.sql.Types.VARCHAR java.sql.Types.LONGVARCHAR | java.lang.String |
| java.sql.Types.INTEGER | java.lang.Integer |
| java.sql.Types.SMALLINT | java.lang.Short |
| java.sql.Types.TINYINT | java.lang.Byte |
| java.sql.Types.BIGINT | java.lang.Long |
| java.sql.Types.FLOAT java.sql.Types.DOUBLE | java.lang.Double |
| java.sql.Types.REAL | java.lang.Float |
| java.sql.Types.NUMERIC java.sql.Types.DECIMAL | java.Math.BigDecimal |
| java.sql.Types.BIT | java.lang.Boolean |
| java.sql.Types.DATE | java.sql.Date |
| java.sql.Types.TIME | java.sql.TIME |
| java.slq.Types.TIMESTAMP | java.sql.TIMESTAMP |
| Method Summary | |
|---|---|
java.util.Vector |
getSelectionChoices()
|
| Method Detail |
|---|
java.util.Vector getSelectionChoices()
getSelectionChoices in interface quadbase.common.util.IQueryParamValuesProvider
|
EspressReport 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||