public class ColumnInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
NON_REF_SELECT_COLUMN
Indicates that this column is a selected column, but is not referenced in runtime
PSQL query.
|
static int |
NON_SELECT_COLUMN
Indicates that this column is not a selected column.
|
Constructor and Description |
---|
ColumnInfo(java.lang.String sMappingName,
java.lang.String sColumnName,
java.lang.String sExpression,
boolean bCompCol,
TableInfo tableInfo,
int iColumnIndex)
Constructs a ColumnInfo with specified parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares this ColumnInfo to the specified object.
|
int |
getColumnIndex()
Gets the index of where this column should appear in Select clause when creating
an sql string.
|
java.lang.String |
getColumnName()
Gets the real database name of this column.
|
java.lang.String |
getExpression()
Gets the expression of this column.
|
java.lang.String |
getMappingName()
Gets the mapping name of the column.
|
TableInfo |
getTable()
Gets TableInfo of the table that this column belongs to.
|
boolean |
isCompCol()
Gets whether this is a computed column.
|
java.lang.String |
toString()
Returns a string representing this ColumnInfo's values.
|
public static final int NON_SELECT_COLUMN
public static final int NON_REF_SELECT_COLUMN
public ColumnInfo(java.lang.String sMappingName, java.lang.String sColumnName, java.lang.String sExpression, boolean bCompCol, TableInfo tableInfo, int iColumnIndex)
sMappingName
- The mapping name of the column.sColumnName
- The real database name of the column.sCorrelationName
- The correlation name of the column.sExpression
- The expression of the clolumn, if it represents a computed column.bCompCol
- Specifies whether this is a computed column.tableInfo
- The TableInfo of the table that this column belongs to.iColumnIndex
- The index of where this column should appear in Select clause.public java.lang.String getMappingName()
public java.lang.String getColumnName()
public java.lang.String getExpression()
public boolean isCompCol()
public TableInfo getTable()
#TableInfo
public int getColumnIndex()
NON_SELECT_COLUMN
,
NON_REF_SELECT_COLUMN
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
className@hashCode[ mappingName | columnName | correlationName | expression | tableMappingName | isCompCol ]
toString
in class java.lang.Object