Java Doc for ResultColumn.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » impl » sql » compile » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » db derby 10.2 » org.apache.derby.impl.sql.compile 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.derby.impl.sql.compile.QueryTreeNode
      org.apache.derby.impl.sql.compile.ValueNode
         org.apache.derby.impl.sql.compile.ResultColumn

All known Subclasses:   org.apache.derby.impl.sql.compile.AllResultColumn,
ResultColumn
public class ResultColumn extends ValueNode implements ResultColumnDescriptor,Comparable(Code)
A ResultColumn represents a result column in a SELECT, INSERT, or UPDATE statement. In a SELECT statement, the result column just represents an expression in a row being returned to the client. For INSERT and UPDATE statements, the result column represents an column in a stored table. So, a ResultColumn has to be bound differently depending on the type of statement it appears in.
author:
   Jeff Lichtman


Field Summary
 booleanautoincrement
    
 booleanautoincrementGenerated
    
 ColumnDescriptorcolumnDescriptor
    
 StringexposedName
    
 ValueNodeexpression
    
 booleanisGenerated
    
 booleanisGeneratedForUnmatchedColumnInInsert
    
 booleanisGroupingColumn
    
 booleanisNameGenerated
    
 booleanisRedundant
    
 booleanisReferenced
    
 Stringname
    
 ColumnReferencereference
    
 StringsourceSchemaName
    
 StringsourceTableName
    
 StringtableName
    
 booleanupdatableByCursor
    
 booleanupdated
    


Method Summary
public  Visitableaccept(Visitor v)
     Accept a visitor, and call v.visit() on child nodes as necessary.
public  voidadjustVirtualColumnId(int adjust)
    
public  ValueNodebindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector)
     Bind this expression.
public  voidbindResultColumnByName(TableDescriptor tableDescriptor, int columnId)
     Bind this result column by its name and set the VirtualColumnId.
 voidbindResultColumnByPosition(TableDescriptor tableDescriptor, int columnId)
     Bind this result column by ordinal position and set the VirtualColumnId.
public  voidbindResultColumnToExpression()
     Bind the result column to the expression that lives under it.
public  voidcheckStorableExpression(ResultColumn toStore)
     This verifies that the expression is storable into the result column. It checks versus the given ResultColumn. This method should not be called until the result column and expression both have a valid type, i.e.
public  voidcheckStorableExpression()
     This verifies that the expression is storable into the result column. It checks versus the expression under this ResultColumn. This method should not be called until the result column and expression both have a valid type, i.e.
public  voidclearTableName()
     Clear the table name for the underlying ColumnReference.
 ResultColumncloneMe()
    
 booleancolumnTypeAndLengthMatch()
    
 booleancolumnTypeAndLengthMatch(ResultColumn otherColumn)
    
public  intcompareTo(Object other)
    
public  voiddisablePrivilegeCollection()
    
public  booleanfoundInList(String[] list)
    
public  voidgenerateExpression(ExpressionClassBuilder ecb, MethodBuilder mb)
     Do code generation for a result column.
public  voidgenerateHolder(ExpressionClassBuilder acb, MethodBuilder mb)
     Generate the code to create a column the same shape and size as this ResultColumn.
public  BaseColumnNodegetBaseColumnNode()
     Get the source BaseColumnNode for this result column.
public  intgetColumnPosition()
    
public  ValueNodegetExpression()
     Get the expression in this ResultColumn.
public  DataTypeDescriptorgetExpressionType()
    
public  intgetMaximumColumnSize()
    
public  StringgetName()
     The following methods implement the ResultColumnDescriptor interface.
protected  intgetOrderableVariantType()
     Return the variant type for the underlying expression.
public  ColumnReferencegetReference()
    
public  intgetResultSetNumber()
     Get the resultSetNumber for this ResultColumn.
public  StringgetSchemaName()
    
public  StringgetSourceSchemaName()
    
public  StringgetSourceTableName()
    
 ColumnDescriptorgetTableColumnDescriptor()
     If this ResultColumn is bound to a column in a table get the column descriptor for the column in the table.
public  StringgetTableName()
    
public  TableNamegetTableNameObject()
    
public  intgetTableNumber()
     Search the tree beneath this ResultColumn until we find the number of the table to which this RC points, and return that table number.
public  DataTypeDescriptorgetType()
    
public  TypeIdgetTypeId()
     Get the TypeId from this Node. The TypeId from this Node.
public  DataTypeDescriptorgetTypeServices()
     Get the DataTypeServices from this Node. The DataTypeServices from this Node.
public  intgetVirtualColumnId()
    
public  voidguaranteeColumnName()
    
public  voidinit(Object arg1, Object arg2)
     Different types of initializer parameters indicate different types of initialization.
public  booleanisAutoincrement()
    
public  booleanisAutoincrementGenerated()
     Returns true if this result column is a placeholder for a generated autoincrement value.
public  booleanisDefaultColumn()
     Returns TRUE if the ResultColumn is standing in for a DEFAULT keyword in an insert/update statement.
public  booleanisEquivalent(ValueNode o)
    
public  booleanisGenerated()
    
public  booleanisGeneratedForUnmatchedColumnInInsert()
    
public  booleanisGroupingColumn()
    
public  booleanisNameGenerated()
    
public  booleanisRedundant()
    
public  booleanisReferenced()
    
 voidmarkAllRCsInChainReferenced()
     Mark this RC and all RCs in the underlying RC/VCN chain as referenced.
public  voidmarkAsGroupingColumn()
    
public  voidmarkGenerated()
    
public  voidmarkGeneratedForUnmatchedColumnInInsert()
    
 voidmarkUpdatableByCursor()
     Mark this column as being updatable, so we can make sure it is in the "for update" list of a positioned update.
 voidmarkUpdated()
     Mark this column as being updated by an update statemment.
public  ValueNodepreprocess(int numTables, FromList outerFromList, SubqueryList outerSubqueryList, PredicateList outerPredicateList)
     Preprocess an expression tree.
public  voidprintSubNodes(int depth)
     Prints the sub-nodes of this object.
 voidpullVirtualIsReferenced()
     Mark this column as a referenced column if it is already marked as referenced or if any result column in its chain of virtual columns is marked as referenced.
 voidrejectParameter()
     Look for and reject ?/-?/+? parameter under this ResultColumn.
public  voidresetAutoincrementGenerated()
    
public  voidsetAutoincrement()
    
public  voidsetAutoincrementGenerated()
    
public  voidsetClause(int clause)
     Set the clause that this node appears in.
 voidsetColumnDescriptor(TableDescriptor tableDescriptor, ColumnDescriptor columnDescriptor)
     Set the column descriptor for this result column.
public  voidsetDefaultColumn(boolean value)
    
public  voidsetExpression(ValueNode expression)
     Set the expression in this ResultColumn.
 voidsetExpressionToNullNode()
     Set the expression to a null node of the correct type.
public  voidsetName(String name)
     Set the name in this ResultColumn.
public  voidsetNameGenerated(boolean value)
     Set that this result column name is generated.
public  voidsetNullability(boolean nullability)
     Set the nullability of this ResultColumn.
public  voidsetRedundant()
     Mark this ResultColumn as redundant.
public  voidsetReferenced()
     Mark this column as a referenced column.
public  voidsetResultSetNumber(int resultSetNumber)
     Set the resultSetNumber for this ResultColumn.
public  voidsetUnreferenced()
     Mark this column as an unreferenced column.
public  voidsetVirtualColumnId(int id)
    
public  StringtoString()
     Convert this object to a String.
public  voidtypeUntypedNullExpression(ResultColumn bindingRC)
     Change an untyped null to a typed null.
public  booleanupdatableByCursor()
     Tell whether this column is updatable by a positioned update.
 booleanupdated()
     Tell whether this column is being updated.
 voidverifyOrderable()
     Verify that this RC is orderable.

Field Detail
autoincrement
boolean autoincrement(Code)



autoincrementGenerated
boolean autoincrementGenerated(Code)



columnDescriptor
ColumnDescriptor columnDescriptor(Code)



exposedName
String exposedName(Code)



expression
ValueNode expression(Code)



isGenerated
boolean isGenerated(Code)



isGeneratedForUnmatchedColumnInInsert
boolean isGeneratedForUnmatchedColumnInInsert(Code)



isGroupingColumn
boolean isGroupingColumn(Code)



isNameGenerated
boolean isNameGenerated(Code)



isRedundant
boolean isRedundant(Code)



isReferenced
boolean isReferenced(Code)



name
String name(Code)



reference
ColumnReference reference(Code)



sourceSchemaName
String sourceSchemaName(Code)



sourceTableName
String sourceTableName(Code)



tableName
String tableName(Code)



updatableByCursor
boolean updatableByCursor(Code)



updated
boolean updated(Code)





Method Detail
accept
public Visitable accept(Visitor v) throws StandardException(Code)
Accept a visitor, and call v.visit() on child nodes as necessary.
Parameters:
  v - the visitor
exception:
  StandardException - on error



adjustVirtualColumnId
public void adjustVirtualColumnId(int adjust)(Code)
Adjust the virtualColumnId for this ResultColumn by the specified amount
Parameters:
  adjust - The adjustment for the virtualColumnId



bindExpression
public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException(Code)
Bind this expression. This means binding the sub-expressions. In this case, we figure out what the result type of this result column is when we call one of the bindResultColumn*() methods. The reason is that there are different ways of binding the result columns depending on the statement type, and this is a standard interface that does not take the statement type as a parameter.
Parameters:
  fromList - The FROM list for the query thisexpression is in, for binding columns.
Parameters:
  subqueryList - The subquery list being built as we find SubqueryNodes
Parameters:
  aggregateVector - The aggregate vector being built as we find AggregateNodes The new top of the expression tree.
exception:
  StandardException - Thrown on error



bindResultColumnByName
public void bindResultColumnByName(TableDescriptor tableDescriptor, int columnId) throws StandardException(Code)
Bind this result column by its name and set the VirtualColumnId. This is useful for update statements, and for INSERT statements like "insert into t (a, b, c) values (1, 2, 3)" where the user specified a column list. An exception is thrown when a columnDescriptor cannot be found for a given name. (There is no column with that name.) NOTE: We must set the VirtualColumnId here because INSERT does not construct the ResultColumnList in the usual way.
Parameters:
  tableDescriptor - The descriptor for the table beingupdated or inserted into
Parameters:
  columnId - The ordinal position of the columnin the table, starting at 1. (Used toset the VirtualColumnId.)
exception:
  StandardException - Thrown on error



bindResultColumnByPosition
void bindResultColumnByPosition(TableDescriptor tableDescriptor, int columnId) throws StandardException(Code)
Bind this result column by ordinal position and set the VirtualColumnId. This is useful for INSERT statements like "insert into t values (1, 2, 3)", where the user did not specify a column list. If a columnDescriptor is not found for a given position, then the user has specified more values than the # of columns in the table and an exception is thrown. NOTE: We must set the VirtualColumnId here because INSERT does not construct the ResultColumnList in the usual way.
Parameters:
  tableDescriptor - The descriptor for the table beinginserted into
Parameters:
  columnId - The ordinal position of the columnin the table, starting at 1.
exception:
  StandardException - Thrown on error



bindResultColumnToExpression
public void bindResultColumnToExpression() throws StandardException(Code)
Bind the result column to the expression that lives under it. All this does is copy the datatype information to this node. This is useful for SELECT statements, where the result type of each column is the type of the column's expression.
exception:
  StandardException - Thrown on error



checkStorableExpression
public void checkStorableExpression(ResultColumn toStore) throws StandardException(Code)
This verifies that the expression is storable into the result column. It checks versus the given ResultColumn. This method should not be called until the result column and expression both have a valid type, i.e. after they are bound appropriately. Its use is for statements like insert, that need to verify if a given value can be stored into a column.
exception:
  StandardException - thrown if types not suitable.



checkStorableExpression
public void checkStorableExpression() throws StandardException(Code)
This verifies that the expression is storable into the result column. It checks versus the expression under this ResultColumn. This method should not be called until the result column and expression both have a valid type, i.e. after they are bound appropriately. Its use is for statements like update, that need to verify if a given value can be stored into a column.
exception:
  StandardException - thrown if types not suitable.



clearTableName
public void clearTableName()(Code)
Clear the table name for the underlying ColumnReference. See UpdateNode.scrubResultColumns() for full explaination.



cloneMe
ResultColumn cloneMe() throws StandardException(Code)
Make a copy of this ResultColumn in a new ResultColumn A new ResultColumn with the same contents as this one
exception:
  StandardException - Thrown on error



columnTypeAndLengthMatch
boolean columnTypeAndLengthMatch() throws StandardException(Code)



columnTypeAndLengthMatch
boolean columnTypeAndLengthMatch(ResultColumn otherColumn) throws StandardException(Code)



compareTo
public int compareTo(Object other)(Code)



disablePrivilegeCollection
public void disablePrivilegeCollection()(Code)

See Also:   QueryTreeNode.disablePrivilegeCollection



foundInList
public boolean foundInList(String[] list)(Code)
Is this column in this array of strings?
Parameters:
  list - the array of column names to compare true/false



generateExpression
public void generateExpression(ExpressionClassBuilder ecb, MethodBuilder mb) throws StandardException(Code)
Do code generation for a result column. This consists of doing the code generation for the underlying expression.
Parameters:
  ecb - The ExpressionClassBuilder for the class we're generating
Parameters:
  mb - The method the expression will go into
exception:
  StandardException - Thrown on error



generateHolder
public void generateHolder(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException(Code)
Generate the code to create a column the same shape and size as this ResultColumn. Used in ResultColumnList.generateHolder().
exception:
  StandardException - thrown on failure



getBaseColumnNode
public BaseColumnNode getBaseColumnNode()(Code)
Get the source BaseColumnNode for this result column. The BaseColumnNode cannot be found unless the ResultColumn is bound and is a simple reference to a column in a BaseFromTable. a BaseColumnNode,or null if a BaseColumnNode cannot be found



getColumnPosition
public int getColumnPosition()(Code)



getExpression
public ValueNode getExpression()(Code)
Get the expression in this ResultColumn. ValueNode this.expression



getExpressionType
public DataTypeDescriptor getExpressionType() throws StandardException(Code)



getMaximumColumnSize
public int getMaximumColumnSize()(Code)
Get the maximum size of the column the max size



getName
public String getName()(Code)
The following methods implement the ResultColumnDescriptor interface. See the Language Module Interface for details.



getOrderableVariantType
protected int getOrderableVariantType() throws StandardException(Code)
Return the variant type for the underlying expression. The variant type can be: VARIANT - variant within a scan (method calls and non-static field access) SCAN_INVARIANT - invariant within a scan (column references from outer tables) QUERY_INVARIANT - invariant within the life of a query CONSTANT - constant The variant type for the underlying expression.
exception:
  StandardException - thrown on error



getReference
public ColumnReference getReference()(Code)



getResultSetNumber
public int getResultSetNumber()(Code)
Get the resultSetNumber for this ResultColumn. int The resultSetNumber.



getSchemaName
public String getSchemaName() throws StandardException(Code)



getSourceSchemaName
public String getSourceSchemaName()(Code)

See Also:   ResultColumnDescriptor.getSourceSchemaName



getSourceTableName
public String getSourceTableName()(Code)

See Also:   ResultColumnDescriptor.getSourceTableName



getTableColumnDescriptor
ColumnDescriptor getTableColumnDescriptor()(Code)
If this ResultColumn is bound to a column in a table get the column descriptor for the column in the table. Otherwise return null.



getTableName
public String getTableName()(Code)



getTableNameObject
public TableName getTableNameObject()(Code)



getTableNumber
public int getTableNumber() throws StandardException(Code)
Search the tree beneath this ResultColumn until we find the number of the table to which this RC points, and return that table number. If we can't determine which table this RC is for, then return -1. There are two places we can find the table number: 1) if our expression is a ColumnReference, then we can get the target table number from the ColumnReference and that's it; 2) if expression is a VirtualColumnNode, then if the VirtualColumnNode points to a FromBaseTable, we can get that FBT's table number; otherwise, we walk the VirtualColumnNode-ResultColumn chain and do a recursive search. The number of the table to which this ResultColumn points, or -1 if we can't determine that from where we are.



getType
public DataTypeDescriptor getType()(Code)



getTypeId
public TypeId getTypeId() throws StandardException(Code)
Get the TypeId from this Node. The TypeId from this Node. Thismay be null if the node isn't bound yet.



getTypeServices
public DataTypeDescriptor getTypeServices() throws StandardException(Code)
Get the DataTypeServices from this Node. The DataTypeServices from this Node. Thismay be null if the node isn't bound yet.



getVirtualColumnId
public int getVirtualColumnId()(Code)
Get the virtualColumnId for this ResultColumn virtualColumnId for this ResultColumn



guaranteeColumnName
public void guaranteeColumnName() throws StandardException(Code)
Generate a unique (across the entire statement) column name for unnamed ResultColumns
exception:
  StandardException - Thrown on error



init
public void init(Object arg1, Object arg2) throws StandardException(Code)
Different types of initializer parameters indicate different types of initialization. Parameters may be:
  • arg1 The name of the column, if any.
  • arg2 The expression this result column represents

- OR -

  • arg1 a column reference node
  • arg2 The expression this result column represents

- OR -

  • arg1 The column descriptor.
  • arg2 The expression this result column represents

- OR -

  • dtd The type of the column
  • expression The expression this result column represents



isAutoincrement
public boolean isAutoincrement()(Code)



isAutoincrementGenerated
public boolean isAutoincrementGenerated()(Code)
Returns true if this result column is a placeholder for a generated autoincrement value.



isDefaultColumn
public boolean isDefaultColumn()(Code)
Returns TRUE if the ResultColumn is standing in for a DEFAULT keyword in an insert/update statement.



isEquivalent
public boolean isEquivalent(ValueNode o) throws StandardException(Code)



isGenerated
public boolean isGenerated()(Code)
Is this a generated column? Boolean - whether or not this column is a generated column.



isGeneratedForUnmatchedColumnInInsert
public boolean isGeneratedForUnmatchedColumnInInsert()(Code)
Is this columm generated for an unmatched column in an insert? Boolean - whether or not this columm was generated for an unmatched column in an insert.



isGroupingColumn
public boolean isGroupingColumn()(Code)



isNameGenerated
public boolean isNameGenerated()(Code)
Is the name for this ResultColumn generated?



isRedundant
public boolean isRedundant()(Code)
Is this a redundant ResultColumn? Boolean - whether or not this RC is redundant.



isReferenced
public boolean isReferenced()(Code)
Is this a referenced column? Boolean - whether or not this column is a referenced column.



markAllRCsInChainReferenced
void markAllRCsInChainReferenced()(Code)
Mark this RC and all RCs in the underlying RC/VCN chain as referenced.



markAsGroupingColumn
public void markAsGroupingColumn()(Code)
Mark this ResultColumn as a grouping column in the SELECT list



markGenerated
public void markGenerated()(Code)
Mark this a columm as a generated column



markGeneratedForUnmatchedColumnInInsert
public void markGeneratedForUnmatchedColumnInInsert()(Code)
Mark this a columm as generated for an unmatched column in an insert



markUpdatableByCursor
void markUpdatableByCursor()(Code)
Mark this column as being updatable, so we can make sure it is in the "for update" list of a positioned update.



markUpdated
void markUpdated()(Code)
Mark this column as being updated by an update statemment.



preprocess
public ValueNode preprocess(int numTables, FromList outerFromList, SubqueryList outerSubqueryList, PredicateList outerPredicateList) throws StandardException(Code)
Preprocess an expression tree. We do a number of transformations here (including subqueries, IN lists, LIKE and BETWEEN) plus subquery flattening. NOTE: This is done before the outer ResultSetNode is preprocessed.
Parameters:
  numTables - Number of tables in the DML Statement
Parameters:
  outerFromList - FromList from outer query block
Parameters:
  outerSubqueryList - SubqueryList from outer query block
Parameters:
  outerPredicateList - PredicateList from outer query block The modified expression
exception:
  StandardException - Thrown on error



printSubNodes
public void printSubNodes(int depth)(Code)
Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed to work.
Parameters:
  depth - The depth of this node in the tree



pullVirtualIsReferenced
void pullVirtualIsReferenced()(Code)
Mark this column as a referenced column if it is already marked as referenced or if any result column in its chain of virtual columns is marked as referenced.



rejectParameter
void rejectParameter() throws StandardException(Code)
Look for and reject ?/-?/+? parameter under this ResultColumn. This is called for SELECT statements.
exception:
  StandardException - Thrown if a ?/-?/+? parameter was founddirectly under this ResultColumn.



resetAutoincrementGenerated
public void resetAutoincrementGenerated()(Code)



setAutoincrement
public void setAutoincrement()(Code)



setAutoincrementGenerated
public void setAutoincrementGenerated()(Code)



setClause
public void setClause(int clause)(Code)
Set the clause that this node appears in.
Parameters:
  clause - The clause that this node appears in.



setColumnDescriptor
void setColumnDescriptor(TableDescriptor tableDescriptor, ColumnDescriptor columnDescriptor) throws StandardException(Code)
Set the column descriptor for this result column. It also gets the data type services from the column descriptor and stores it in this result column: this is redundant, but we have to store the result type here for SELECT statements, and it is more orthogonal if the type can be found here regardless of what type of statement it is.
Parameters:
  tableDescriptor - The TableDescriptor for the tablebeing updated or inserted into.This parameter is used only forerror reporting.
Parameters:
  columnDescriptor - The ColumnDescriptor to set inthis ResultColumn.
exception:
  StandardException - tableNameMismatch



setDefaultColumn
public void setDefaultColumn(boolean value)(Code)



setExpression
public void setExpression(ValueNode expression)(Code)
Set the expression in this ResultColumn. This is useful in those cases where you don't know the expression in advance, like for INSERT statements with column lists, where the column list and SELECT or VALUES clause are parsed separately, and then have to be hooked up.
Parameters:
  expression - The expression to be set in this ResultColumn



setExpressionToNullNode
void setExpressionToNullNode() throws StandardException(Code)
Set the expression to a null node of the correct type.
exception:
  StandardException - Thrown on error



setName
public void setName(String name)(Code)
Set the name in this ResultColumn. This is useful when you don't know the name at the time you create the ResultColumn, for example, in an insert-select statement, where you want the names of the result columns to match the table being inserted into, not the table they came from.
Parameters:
  name - The name to set in this ResultColumn



setNameGenerated
public void setNameGenerated(boolean value)(Code)
Set that this result column name is generated.



setNullability
public void setNullability(boolean nullability)(Code)
Set the nullability of this ResultColumn.



setRedundant
public void setRedundant()(Code)
Mark this ResultColumn as redundant.



setReferenced
public void setReferenced()(Code)
Mark this column as a referenced column.



setResultSetNumber
public void setResultSetNumber(int resultSetNumber)(Code)
Set the resultSetNumber for this ResultColumn. This is the resultSetNumber for the ResultSet that we belong to. This is useful for generate() and necessary since we do not have a back pointer to the RSN.
Parameters:
  resultSetNumber - The resultSetNumber.



setUnreferenced
public void setUnreferenced()(Code)
Mark this column as an unreferenced column.



setVirtualColumnId
public void setVirtualColumnId(int id)(Code)
Set the virtualColumnId for this ResultColumn
Parameters:
  id - The virtualColumnId for this ResultColumn



toString
public String toString()(Code)
Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing. This object as a String



typeUntypedNullExpression
public void typeUntypedNullExpression(ResultColumn bindingRC) throws StandardException(Code)
Change an untyped null to a typed null.
exception:
  StandardException - Thrown on error



updatableByCursor
public boolean updatableByCursor()(Code)
Tell whether this column is updatable by a positioned update. true means this column is updatable



updated
boolean updated()(Code)
Tell whether this column is being updated. true means this column is being updated.



verifyOrderable
void verifyOrderable() throws StandardException(Code)
Verify that this RC is orderable.
exception:
  StandardException - Thrown on error



Fields inherited from org.apache.derby.impl.sql.compile.ValueNode
final public static int IN_HAVING_CLAUSE(Code)(Java Doc)
final public static int IN_SELECT_LIST(Code)(Java Doc)
final public static int IN_UNKNOWN_CLAUSE(Code)(Java Doc)
final public static int IN_WHERE_CLAUSE(Code)(Java Doc)
protected int clause(Code)(Java Doc)
protected DataTypeDescriptor dataTypeServices(Code)(Java Doc)
boolean transformed(Code)(Java Doc)

Methods inherited from org.apache.derby.impl.sql.compile.ValueNode
public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException(Code)(Java Doc)
public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector, boolean forQueryRewrite) throws StandardException(Code)(Java Doc)
public boolean categorize(JBitSet referencedTabs, boolean simplePredsOnly) throws StandardException(Code)(Java Doc)
public ValueNode changeToCNF(boolean underTopAndNode) throws StandardException(Code)(Java Doc)
public ValueNode checkIsBoolean() throws StandardException(Code)(Java Doc)
public void checkReliability(String fragmentType, int fragmentBitMask) throws StandardException(Code)(Java Doc)
public void checkReliability(int fragmentBitMask, String fragmentType) throws StandardException(Code)(Java Doc)
void checkTopPredicatesForEqualsConditions(int tableNumber, boolean[] eqOuterCols, int[] tableNumbers, JBitSet[] tableColMap, boolean resultColTable) throws StandardException(Code)(Java Doc)
public boolean constantExpression(PredicateList whereClause)(Code)(Java Doc)
public void copyFields(ValueNode oldVN) throws StandardException(Code)(Java Doc)
ValueNode eliminateNots(boolean underNotNode) throws StandardException(Code)(Java Doc)
public ValueNode genEqualsFalseTree() throws StandardException(Code)(Java Doc)
public ValueNode genIsNullTree() throws StandardException(Code)(Java Doc)
public ValueNode genSQLJavaSQLTree() throws StandardException(Code)(Java Doc)
final protected void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException(Code)(Java Doc)
public void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException(Code)(Java Doc)
public void generateFilter(ExpressionClassBuilder ecb, MethodBuilder mb) throws StandardException(Code)(Java Doc)
public int getClause()(Code)(Java Doc)
public ValueNode getClone() throws StandardException(Code)(Java Doc)
public String getColumnName()(Code)(Java Doc)
Object getConstantValueAsObject() throws StandardException(Code)(Java Doc)
final protected DataValueFactory getDataValueFactory()(Code)(Java Doc)
protected int getOrderableVariantType() throws StandardException(Code)(Java Doc)
public String getSchemaName() throws StandardException(Code)(Java Doc)
public ResultColumn getSourceResultColumn()(Code)(Java Doc)
public String getTableName()(Code)(Java Doc)
JBitSet getTablesReferenced() throws StandardException(Code)(Java Doc)
boolean getTransformed()(Code)(Java Doc)
public TypeCompiler getTypeCompiler() throws StandardException(Code)(Java Doc)
public TypeId getTypeId() throws StandardException(Code)(Java Doc)
public DataTypeDescriptor getTypeServices() throws StandardException(Code)(Java Doc)
public void init(Object typeId, Object precision, Object scale, Object isNullable, Object maximumWidth) throws StandardException(Code)(Java Doc)
public boolean isBinaryEqualsOperatorNode()(Code)(Java Doc)
boolean isBooleanFalse()(Code)(Java Doc)
boolean isBooleanTrue()(Code)(Java Doc)
public boolean isCloneable()(Code)(Java Doc)
public boolean isConstantExpression()(Code)(Java Doc)
abstract protected boolean isEquivalent(ValueNode other) throws StandardException(Code)(Java Doc)
public boolean isParameterNode()(Code)(Java Doc)
public boolean isRelationalOperator()(Code)(Java Doc)
final protected boolean isSameNodeType(ValueNode other)(Code)(Java Doc)
public boolean optimizableEqualityNode(Optimizable optTable, int columnNumber, boolean isNullOkay) throws StandardException(Code)(Java Doc)
public ValueNode preprocess(int numTables, FromList outerFromList, SubqueryList outerSubqueryList, PredicateList outerPredicateList) throws StandardException(Code)(Java Doc)
public ValueNode putAndsOnTop() throws StandardException(Code)(Java Doc)
public ValueNode remapColumnReferencesToExpressions() throws StandardException(Code)(Java Doc)
public boolean requiresTypeFromContext()(Code)(Java Doc)
public double selectivity(Optimizable optTable) throws StandardException(Code)(Java Doc)
public void setClause(int clause)(Code)(Java Doc)
void setTransformed()(Code)(Java Doc)
public void setType(DataTypeDescriptor dataTypeServices) throws StandardException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public boolean updatableByCursor()(Code)(Java Doc)
public boolean verifyChangeToCNF()(Code)(Java Doc)
boolean verifyEliminateNots()(Code)(Java Doc)
public boolean verifyPutAndsOnTop()(Code)(Java Doc)

Fields inherited from org.apache.derby.impl.sql.compile.QueryTreeNode
final public static int AUTOINCREMENT_CREATE_MODIFY(Code)(Java Doc)
final public static int AUTOINCREMENT_INC_INDEX(Code)(Java Doc)
final public static int AUTOINCREMENT_IS_AUTOINCREMENT_INDEX(Code)(Java Doc)
final public static int AUTOINCREMENT_START_INDEX(Code)(Java Doc)
boolean isPrivilegeCollectionRequired(Code)(Java Doc)

Methods inherited from org.apache.derby.impl.sql.compile.QueryTreeNode
public Visitable accept(Visitor v) throws StandardException(Code)(Java Doc)
public QueryTreeNode bind() throws StandardException(Code)(Java Doc)
public DataValueDescriptor convertDefaultNode(DataTypeDescriptor typeDescriptor) throws StandardException(Code)(Java Doc)
protected static void debugFlush()(Code)(Java Doc)
public static void debugPrint(String outputString)(Code)(Java Doc)
public void disablePrivilegeCollection()(Code)(Java Doc)
public String executeSchemaName()(Code)(Java Doc)
public String executeStatementName()(Code)(Java Doc)
public static String formatNodeString(String nodeString, int depth)(Code)(Java Doc)
public boolean foundString(String[] list, String search)(Code)(Java Doc)
public GeneratedClass generate(ByteArray ignored) throws StandardException(Code)(Java Doc)
protected void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException(Code)(Java Doc)
void generateAuthorizeCheck(ActivationClassBuilder acb, MethodBuilder mb, int sqlOperation)(Code)(Java Doc)
public int getBeginOffset()(Code)(Java Doc)
final protected ClassFactory getClassFactory()(Code)(Java Doc)
final protected CompilerContext getCompilerContext()(Code)(Java Doc)
final public ContextManager getContextManager()(Code)(Java Doc)
public Object getCursorInfo() throws StandardException(Code)(Java Doc)
final public DataDictionary getDataDictionary()(Code)(Java Doc)
final public DependencyManager getDependencyManager()(Code)(Java Doc)
public int getEndOffset()(Code)(Java Doc)
final public ExecutionFactory getExecutionFactory()(Code)(Java Doc)
final public GenericConstantActionFactory getGenericConstantActionFactory()(Code)(Java Doc)
protected int getIntProperty(String value, String key) throws StandardException(Code)(Java Doc)
final protected LanguageConnectionContext getLanguageConnectionContext()(Code)(Java Doc)
final public NodeFactory getNodeFactory()(Code)(Java Doc)
protected int getNodeType()(Code)(Java Doc)
public ConstantNode getNullNode(TypeId typeId, ContextManager cm) throws StandardException(Code)(Java Doc)
public DataTypeDescriptor[] getParameterTypes() throws StandardException(Code)(Java Doc)
public long getRowEstimate()(Code)(Java Doc)
public String getSPSName()(Code)(Java Doc)
final SchemaDescriptor getSchemaDescriptor(String schemaName) throws StandardException(Code)(Java Doc)
final SchemaDescriptor getSchemaDescriptor(String schemaName, boolean raiseError) throws StandardException(Code)(Java Doc)
protected int getStatementType()(Code)(Java Doc)
final protected TableDescriptor getTableDescriptor(String tableName, SchemaDescriptor schema) throws StandardException(Code)(Java Doc)
final protected TypeCompiler getTypeCompiler(TypeId typeId)(Code)(Java Doc)
public void init(Object arg1) throws StandardException(Code)(Java Doc)
public void init(Object arg1, Object arg2) throws StandardException(Code)(Java Doc)
public void init(Object arg1, Object arg2, Object arg3) throws StandardException(Code)(Java Doc)
public void init(Object arg1, Object arg2, Object arg3, Object arg4) throws StandardException(Code)(Java Doc)
public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) throws StandardException(Code)(Java Doc)
public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6) throws StandardException(Code)(Java Doc)
public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7) throws StandardException(Code)(Java Doc)
public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8) throws StandardException(Code)(Java Doc)
public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8, Object arg9) throws StandardException(Code)(Java Doc)
public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8, Object arg9, Object arg10) throws StandardException(Code)(Java Doc)
public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8, Object arg9, Object arg10, Object arg11) throws StandardException(Code)(Java Doc)
public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8, Object arg9, Object arg10, Object arg11, Object arg12) throws StandardException(Code)(Java Doc)
public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object arg13) throws StandardException(Code)(Java Doc)
public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object arg13, Object arg14) throws StandardException(Code)(Java Doc)
public boolean isAtomic() throws StandardException(Code)(Java Doc)
protected boolean isInstanceOf(int nodeType)(Code)(Java Doc)
public boolean isPrivilegeCollectionRequired()(Code)(Java Doc)
final boolean isSessionSchema(SchemaDescriptor sd)(Code)(Java Doc)
final boolean isSessionSchema(String schemaName)(Code)(Java Doc)
public ConstantAction makeConstantAction() throws StandardException(Code)(Java Doc)
public ResultDescription makeResultDescription() throws StandardException(Code)(Java Doc)
public TableName makeTableName(String schemaName, String flatName) throws StandardException(Code)(Java Doc)
public boolean needsSavepoint()(Code)(Java Doc)
protected String nodeHeader()(Code)(Java Doc)
public QueryTreeNode optimize() throws StandardException(Code)(Java Doc)
public static QueryTreeNode parseQueryText(CompilerContext compilerContext, String queryText, Object[] paramDefaults, LanguageConnectionContext lcc) throws StandardException(Code)(Java Doc)
public void printLabel(int depth, String label)(Code)(Java Doc)
public void printSubNodes(int depth)(Code)(Java Doc)
public boolean referencesSessionSchema() throws StandardException(Code)(Java Doc)
public TableName resolveTableToSynonym(TableName tabName) throws StandardException(Code)(Java Doc)
public void setBeginOffset(int beginOffset)(Code)(Java Doc)
public void setContextManager(ContextManager cm)(Code)(Java Doc)
public void setEndOffset(int endOffset)(Code)(Java Doc)
public void setNodeType(int nodeType)(Code)(Java Doc)
public void setRefActionInfo(long fkIndexConglomId, int[] fkColArray, String parentResultSetId, boolean dependentScan)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void treePrint()(Code)(Java Doc)
public void treePrint(int depth)(Code)(Java Doc)
String verifyClassExist(String javaClassName, boolean convertCase) throws StandardException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.