public SchemaColumn copyAndReplaceWithTVE ( int colIndex ) { TupleValueExpression newTve ; if ( m_expression instanceof TupleValueExpression ) { newTve = ( TupleValueExpression ) m_expression . clone ( ) ; newTve . setColumnIndex ( colIndex ) ; } else { newTve = new TupleValueExpression ( m_tableName , m_tableAlias , m_columnName , m_columnAlias , m_expression , colIndex ) ; } return new SchemaColumn ( m_tableName , m_tableAlias , m_columnName , m_columnAlias , newTve , m_differentiator ) ; }
Return a copy of this SchemaColumn but with the input expression replaced by an appropriate TupleValueExpression .