|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.ValueNode
org.apache.derby.impl.sql.compile.DefaultNode
DefaultNode represents a column/parameter default.
Field Summary | |
private java.lang.String |
columnName
|
private java.lang.String |
defaultText
|
private ValueNode |
defaultTree
|
Fields inherited from class org.apache.derby.impl.sql.compile.ValueNode |
clause, dataTypeServices, IN_HAVING_CLAUSE, IN_SELECT_LIST, IN_UNKNOWN_CLAUSE, IN_WHERE_CLAUSE, transformed |
Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, beginOffset, endOffset |
Constructor Summary | |
DefaultNode()
|
Method Summary | |
ValueNode |
bindExpression(FromList fromList,
SubqueryList subqueryList,
java.util.Vector aggregateVector)
Bind this expression. |
void |
generateExpression(ExpressionClassBuilder acb,
MethodBuilder mb)
Generate code for this calculation. |
java.lang.String |
getDefaultText()
Get the text of the default. |
(package private) ValueNode |
getDefaultTree()
Get the query tree for the default. |
void |
init(java.lang.Object columnName)
Initializer for insert/update |
void |
init(java.lang.Object defaultTree,
java.lang.Object defaultText)
Initializer for a column/parameter default. |
static ValueNode |
parseDefault(java.lang.String defaultText,
LanguageConnectionContext lcc,
CompilerContext cc)
Parse a default and turn it into a query tree. |
java.lang.String |
toString()
Convert this object to a String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String columnName
private java.lang.String defaultText
private ValueNode defaultTree
Constructor Detail |
public DefaultNode()
Method Detail |
public void init(java.lang.Object defaultTree, java.lang.Object defaultText)
init
in class QueryTreeNode
defaultTree
- Query tree for defaultdefaultText
- The text of the default.public void init(java.lang.Object columnName)
init
in class QueryTreeNode
public java.lang.String getDefaultText()
ValueNode getDefaultTree()
public java.lang.String toString()
toString
in class ValueNode
public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, java.util.Vector aggregateVector) throws StandardException
bindExpression
in class ValueNode
fromList
- The FROM list for the query this
expression is in, for binding columns.subqueryList
- The subquery list being built as we find SubqueryNodesaggregateVector
- The aggregate vector being built as we find AggregateNodes
StandardException
- Thrown on failurepublic static ValueNode parseDefault(java.lang.String defaultText, LanguageConnectionContext lcc, CompilerContext cc) throws StandardException
defaultText
- Text of Default.lcc
- LanguageConnectionContextcc
- CompilerContext
StandardException
- Thrown on failurepublic void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException
ValueNode
generateExpression
in class ValueNode
mb
- The method the expression will go into
StandardException
- Thrown on failure
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |