/*
 * Copyright (c) 2013-2014 Josef Hardi <josef.hardi@gmail.com>
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.obidea.semantika.database.sql.base;

public interface ISqlColumn extends ISqlExpression
{
   /**
    * Gets the column's table name in SQL string.
    *
    * @return column's table name or "" if not applicable.
    */
   String getTableOrigin();

   /**
    * Sets the column's view name in SQL string.
    * 
    * @param viewName
    *           Local view name in SQL string.
    */
   void setViewName(String viewName);

   /**
    * Gets the column's view name in SQL string.
    *
    * @return column's view name or "" if not applicable.
    */
   String getViewName();

   /**
    * Checks if the column has been assigned a view name.
    * 
    * @return Returns <code>true</code> if it does, or <code>false
    * </code> otherwise.
    */
   boolean hasViewName();

   /**
    * Changes the column's name in SQL string. Usually name changes
    * to follow its alias name in a sub-query.
    *
    * @param columnName
    *           Column name in SQL string.
    */
   void setColumnName(String columnName);

   /**
    * Gets the column's name in SQL string.
    *
    * @return column's name or "" if not applicable.
    */
   String getColumnName();

   /**
    * Gets the column's full name in string fragments
    *
    * @return column's name fragments.
    */
   String[] getNameFragments();
}

@@ -1945,11 +1945,231 @@
 ments();
+%0A%0A   /**%0A    * Gets the column's type in Java SQL Type.%0A    * %7B@link http://docs.oracle.com/javase/7/docs/api/java/sql/Types.html%7D%0A    *%0A    * @return column's type or %22%22 if not applicable.%0A    */%0A   int getColumnType();
 %0A%7D%0A

Add method interface to get the column type.