1 21 22 package org.apache.derby.impl.sql.compile; 23 24 import org.apache.derby.iapi.sql.compile.C_NodeTypes; 25 26 import org.apache.derby.iapi.services.sanity.SanityManager; 27 28 import org.apache.derby.iapi.error.StandardException; 29 30 37 38 public class AllResultColumn extends ResultColumn 39 { 40 private TableName tableName; 41 42 47 public void init(Object tableName) 48 { 49 this.tableName = (TableName) tableName; 50 } 51 52 57 public String getFullTableName() 58 { 59 if (tableName == null) 60 { 61 return null; 62 } 63 else 64 { 65 return tableName.getFullTableName(); 66 } 67 } 68 69 76 ResultColumn cloneMe() throws StandardException 77 { 78 if (SanityManager.DEBUG) 79 { 80 SanityManager.ASSERT(columnDescriptor == null, 81 "columnDescriptor is expected to be non-null"); 82 } 83 84 return (ResultColumn) getNodeFactory().getNode( 85 C_NodeTypes.ALL_RESULT_COLUMN, 86 tableName, 87 getContextManager()); 88 } 89 90 91 public TableName getTableNameObject() { 92 return tableName; 93 } 94 } 95 | Popular Tags |