org.apache.derby.impl.sql
Class GenericLanguageFactory

java.lang.Object
  extended by org.apache.derby.impl.sql.GenericLanguageFactory
All Implemented Interfaces:
ModuleControl, LanguageFactory

public class GenericLanguageFactory
extends java.lang.Object
implements LanguageFactory, ModuleControl

The LanguageFactory provides system-wide services that are available on the Database API.


Field Summary
private  GenericParameterValueSet emptySet
           
 
Fields inherited from interface org.apache.derby.iapi.sql.LanguageFactory
MODULE
 
Constructor Summary
GenericLanguageFactory()
           
 
Method Summary
 void boot(boolean create, java.util.Properties startParams)
          Start-up method for this instance of the language factory.
 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)
          Factory method for getting a ParameterValueSet
 void stop()
          Stop this module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

emptySet

private GenericParameterValueSet emptySet
Constructor Detail

GenericLanguageFactory

public GenericLanguageFactory()
Method Detail

boot

public void boot(boolean create,
                 java.util.Properties startParams)
          throws StandardException
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 interface ModuleControl
Parameters:
startParams - The start-up parameters (ignored in this case)
Throws:
StandardException - Thrown if module cannot be booted.
See Also:
Monitor, ModuleFactory

stop

public void stop()
Stop this module. In this case, nothing needs to be done.

Specified by:
stop in interface ModuleControl
See Also:
Monitor, ModuleFactory

newParameterValueSet

public ParameterValueSet newParameterValueSet(ClassInspector ci,
                                              int numParms,
                                              boolean hasReturnParam)
Factory method for getting a ParameterValueSet

Specified by:
newParameterValueSet in interface LanguageFactory
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
See Also:
LanguageFactory.newParameterValueSet(org.apache.derby.iapi.services.loader.ClassInspector, int, boolean)

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 interface LanguageFactory
Parameters:
inputResultDescription - the input rd
theCols - array of ints, non null
Returns:
ResultDescription the rd

getResultDescription

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

Specified by:
getResultDescription in interface LanguageFactory
Parameters:
cols - an array of col descriptors
type - the statement type
Returns:
ResultDescription the rd

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

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