Package org.apache.derby.impl.sql
Class GenericLanguageFactory
java.lang.Object
org.apache.derby.impl.sql.GenericLanguageFactory
- All Implemented Interfaces:
ModuleControl
,LanguageFactory
The LanguageFactory provides system-wide services that
are available on the Database API.
-
Field Summary
FieldsFields inherited from interface org.apache.derby.iapi.sql.LanguageFactory
MODULE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boot
(boolean create, Properties startParams) Start-up method for this instance of the language factory.private static Object
findServiceModule
(Object serviceModule, String factoryInterface) Privileged startup.getResultDescription
(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) Factory method for getting a ParameterValueSetvoid
stop()
Stop this module.
-
Field Details
-
emptySet
-
-
Constructor Details
-
GenericLanguageFactory
public GenericLanguageFactory()
-
-
Method Details
-
boot
Start-up method for this instance of the language factory. This service is expected to be started and accessed relative to a database.- Specified by:
boot
in interfaceModuleControl
- Parameters:
startParams
- The start-up parameters (ignored in this case)- Throws:
StandardException
- Thrown if module cannot be booted.- See Also:
-
stop
public void stop()Stop this module. In this case, nothing needs to be done.- Specified by:
stop
in interfaceModuleControl
- See Also:
-
newParameterValueSet
public ParameterValueSet newParameterValueSet(ClassInspector ci, int numParms, boolean hasReturnParam) Factory method for getting a ParameterValueSet- Specified by:
newParameterValueSet
in interfaceLanguageFactory
- 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
- See Also:
-
getResultDescription
public ResultDescription getResultDescription(ResultDescription inputResultDescription, int[] theCols) Get a new result description from the input result description. Picks only the columns in the column array from the inputResultDescription.- Specified by:
getResultDescription
in interfaceLanguageFactory
- Parameters:
inputResultDescription
- the input rdtheCols
- array of ints, non null- Returns:
- ResultDescription the rd
-
getResultDescription
Get a new result description- Specified by:
getResultDescription
in interfaceLanguageFactory
- Parameters:
cols
- an array of col descriptorstype
- the statement type- Returns:
- ResultDescription the rd
-
findServiceModule
private static Object findServiceModule(Object serviceModule, String factoryInterface) throws StandardException Privileged startup. Must be private so that user code can't call this entry point.- Throws:
StandardException
-