|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DefaultValueFactory
DefaultValueFactory supplies default values for INSERT, UPDATE, and NEW.
TODO jvs 26-Feb-2005: rename this to InitializerExpressionFactory, since it is in the process of being generalized to handle constructor invocations and eventually generated columns.
Method Summary | |
---|---|
boolean |
isGeneratedAlways(RelOptTable table,
int iColumn)
Whether a column is always generated. |
RexNode |
newAttributeInitializer(RelDataType type,
SqlFunction constructor,
int iAttribute,
RexNode[] constructorArgs)
Creates an expression which evaluates to the initializer expression for a particular attribute of a structured type. |
RexNode |
newColumnDefaultValue(RelOptTable table,
int iColumn)
Creates an expression which evaluates to the default value for a particular column. |
Method Detail |
---|
boolean isGeneratedAlways(RelOptTable table, int iColumn)
RexNode newColumnDefaultValue(RelOptTable table, int iColumn)
table
- the table containing the columniColumn
- the 0-based offset of the column in the table
RexNode newAttributeInitializer(RelDataType type, SqlFunction constructor, int iAttribute, RexNode[] constructorArgs)
type
- the structured typeconstructor
- the constructor invoked to initialize the typeiAttribute
- the 0-based offset of the attribute in the typeconstructorArgs
- arguments passed to the constructor invocation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |