org.cdlib.xtf.saxonExt.sql
Class SQLConnect.ConnectInstruction

Object
  extended by Expression
      extended by SimpleExpression
          extended by SQLConnect.ConnectInstruction
All Implemented Interfaces:
Serializable, SourceLocator, Container, EvaluableItem, SequenceIterable, InstructionInfoProvider
Enclosing class:
SQLConnect

private static class SQLConnect.ConnectInstruction
extends SimpleExpression


Field Summary
static int DATABASE
           
static int DRIVER
           
static int FIRST_PROPERTY
           
static int PASSWORD
           
static int USER
           
 
Fields inherited from class SimpleExpression
arguments, NO_ARGUMENTS
 
Fields inherited from class Expression
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties
 
Constructor Summary
SQLConnect.ConnectInstruction(Expression database, Expression driver, Expression user, Expression password, List propertyInstructions)
           
 
Method Summary
 int computeCardinality()
           
 Item evaluateItem(XPathContext context)
           
 String getExpressionType()
           
 int getImplementationMethod()
          A subclass must provide one of the methods evaluateItem(), iterate(), or process().
 
Methods inherited from class SimpleExpression
computeDependencies, display, getItemType, iterate, iterateSubExpressions, optimize, process, promote, replaceSubExpression, setArguments, simplify, typeCheck
 
Methods inherited from class Expression
adoptChildExpression, checkPermittedContents, computeSpecialProperties, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, getCardinality, getColumnNumber, getConstructType, getContainingProcedure, getDependencies, getExecutable, getHostLanguage, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeError
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATABASE

public static final int DATABASE
See Also:
Constant Field Values

DRIVER

public static final int DRIVER
See Also:
Constant Field Values

USER

public static final int USER
See Also:
Constant Field Values

PASSWORD

public static final int PASSWORD
See Also:
Constant Field Values

FIRST_PROPERTY

public static final int FIRST_PROPERTY
See Also:
Constant Field Values
Constructor Detail

SQLConnect.ConnectInstruction

public SQLConnect.ConnectInstruction(Expression database,
                                     Expression driver,
                                     Expression user,
                                     Expression password,
                                     List propertyInstructions)
Method Detail

getImplementationMethod

public int getImplementationMethod()
A subclass must provide one of the methods evaluateItem(), iterate(), or process(). This method indicates which of the three is provided.

Overrides:
getImplementationMethod in class Expression

computeCardinality

public int computeCardinality()
Overrides:
computeCardinality in class SimpleExpression

getExpressionType

public String getExpressionType()
Overrides:
getExpressionType in class SimpleExpression

evaluateItem

public Item evaluateItem(XPathContext context)
                  throws XPathException
Specified by:
evaluateItem in interface EvaluableItem
Overrides:
evaluateItem in class SimpleExpression
Throws:
XPathException