net.sf.saffron.sql2rel
Class SqlToRelConverter.NullDefaultValueFactory

java.lang.Object
  |
  +--net.sf.saffron.sql2rel.SqlToRelConverter.NullDefaultValueFactory
All Implemented Interfaces:
DefaultValueFactory
Enclosing class:
SqlToRelConverter

class SqlToRelConverter.NullDefaultValueFactory
extends Object
implements DefaultValueFactory

An implementation of DefaultValueFactory which always supplies NULL.


Constructor Summary
(package private) SqlToRelConverter.NullDefaultValueFactory()
           
 
Method Summary
 RexNode newDefaultValue(SaffronTable table, int iColumn)
          Create an expression which evaluates to the default value for a particular column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlToRelConverter.NullDefaultValueFactory

SqlToRelConverter.NullDefaultValueFactory()
Method Detail

newDefaultValue

public RexNode newDefaultValue(SaffronTable table,
                               int iColumn)
Description copied from interface: DefaultValueFactory
Create an expression which evaluates to the default value for a particular column.

Specified by:
newDefaultValue in interface DefaultValueFactory
Parameters:
table - the table containing the column
iColumn - the 0-based offset of the column in the table
Returns:
default value expression

SourceForge.net_Logo