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
static java.lang.String MODULE
          Used to locate this factory by the Monitor basic service.
 
Method Summary
 ResultDescription getResultDescription(ResultColumnDescriptor[] cols, java.lang.String type)
          Get a new result description
 ResultDescription getResultDescription(ResultDescription inputResultDescription, int[] theCols)
          Get a new result description from the input result description.
 ParameterValueSet newParameterValueSet(ClassInspector ci, int numParms, boolean hasReturnParam)
          Get a ParameterValueSet
 

Field Detail

MODULE

static final java.lang.String MODULE
Used to locate this factory by the Monitor basic service. There needs to be a language factory per database.

See Also:
Constant Field Values
Method Detail

newParameterValueSet

ParameterValueSet newParameterValueSet(ClassInspector ci,
                                       int numParms,
                                       boolean hasReturnParam)
Get a ParameterValueSet

Parameters:
numParms - The number of parameters in the ParameterValueSet
hasReturnParam - 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

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.

Parameters:
inputResultDescription - the input rd
theCols - non null array of ints
Returns:
ResultDescription the rd

getResultDescription

ResultDescription getResultDescription(ResultColumnDescriptor[] cols,
                                       java.lang.String type)
Get a new result description

Parameters:
cols - an array of col descriptors
type - the statement type
Returns:
ResultDescription the rd

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.