|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttoolkit.db.api.ColumnInfo
public class ColumnInfo
Class ColumnInfo wraps all information of related columns.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NON_SELECT_COLUMN
public static final int NON_REF_SELECT_COLUMN
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public java.lang.String getMappingName()
public java.lang.String getColumnName()
public java.lang.String getExpression()
public boolean isCompCol()
public TableInfo getTable()
#TableInfopublic int getColumnIndex()
NON_SELECT_COLUMN,
NON_REF_SELECT_COLUMNpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
className@hashCode[ mappingName | columnName | correlationName | expression |
tableMappingName | isCompCol ]
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||