Package org.apache.derby.iapi.sql
Interface LanguageFactory
- All Known Implementing Classes:
GenericLanguageFactory
public interface LanguageFactory
Factory interface for the Language.Interface protocol.
This is used via the Database API by users, and is presented
as a System Module (not a service module). That could change,
but for now this is valid for any database.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetResultDescription
(ResultColumnDescriptor[] cols, String type) Get a new result descriptiongetResultDescription
(ResultDescription inputResultDescription, int[] theCols) Get a new result description from the input result description.newParameterValueSet
(ClassInspector ci, int numParms, boolean hasReturnParam) Get a ParameterValueSet
-
Field Details
-
MODULE
Used to locate this factory by the Monitor basic service. There needs to be a language factory per database.- See Also:
-
-
Method Details
-
newParameterValueSet
Get a ParameterValueSet- Parameters:
numParms
- The number of parameters in the ParameterValueSethasReturnParam
- true if this parameter set has a return parameter. The return parameter is always the 1st parameter in the list. It is due to a callableStatement like this: ? = CALL myMethod()- Returns:
- A new ParameterValueSet with the given number of parms
-
getResultDescription
Get a new result description from the input result description. Picks only the columns in the column array from the inputResultDescription.- Parameters:
inputResultDescription
- the input rdtheCols
- non null array of ints- Returns:
- ResultDescription the rd
-
getResultDescription
Get a new result description- Parameters:
cols
- an array of col descriptorstype
- the statement type- Returns:
- ResultDescription the rd
-