| |
|
| java.lang.Object org.openharmonise.commons.dsi.ColumnRef
ColumnRef | public class ColumnRef extends Object (Code) | | A coloumn reference in a relational database with a table name,
a column name, a data type and possibly an alias for the table name.
author: Michael Bell version: $Revision: 1.1 $ |
Constructor Summary | |
public | ColumnRef(String sTable, String sColumn, int nDataType) Constructs a column reference. |
DATE | public static int DATE(Code) | | Constant indicating a date data type
|
LONG_TEXT | public static int LONG_TEXT(Code) | | Constant indicating a long text data type
|
NUMBER | public static int NUMBER(Code) | | Constant indicating a number data type
|
TEXT | public static int TEXT(Code) | | Constant indicating a text data type
|
ColumnRef | public ColumnRef(String sTable, String sColumn, int nDataType) throws DataStoreException(Code) | | Constructs a column reference.
Parameters: sTable - the name of table containing the column Parameters: sColumn - the name of the column Parameters: nDataType - the data type throws: DataStoreException - if any of the parameters are invalid |
getColumn | public String getColumn()(Code) | | Returns the name of the column.
the name of the column |
getDataType | public int getDataType()(Code) | | Returns the data type of this column.
the data type of this column |
getFullRef | public String getFullRef()(Code) | | Returns the full string representation of this column reference.
the full string representation of this column reference |
getTable | public String getTable()(Code) | | Returns the name of the table containing the column.
the name of the table containing the column |
getTableAlias | public String getTableAlias()(Code) | | Returns the alias for the table name.
the alias for the table name |
hasTableAlias | public boolean hasTableAlias()(Code) | | Returns true if the table name has an alias set.
true if the table name has an alias set. |
hashCode | public int hashCode()(Code) | | |
setColumn | public void setColumn(String sColumn)(Code) | | Sets the name of the column.
Parameters: sColumn - the name of the column |
setTable | public void setTable(String sTable)(Code) | | Sets the name of the table containing the column.
Parameters: sTable - the name of the table containing the column |
setTableAlias | public void setTableAlias(String sTableAlias)(Code) | | Sets the alias for the table name.
Parameters: sTableAlias - the alias for the table name |
|
|
|