Package quadbase.util
Interface IQueryParamValuesProvider
- All Superinterfaces:
quadbase.common.util.IQueryParamValuesProvider
public interface IQueryParamValuesProvider
extends quadbase.common.util.IQueryParamValuesProvider
A class implementing this interface should also implement
The
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:
Only the data types listed above should be used.
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 |
Only the data types listed above should be used.
-
Method Summary
-
Method Details
-
getSelectionChoices
Vector getSelectionChoices()- Specified by:
getSelectionChoicesin interfacequadbase.common.util.IQueryParamValuesProvider
-