|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.persistence.query.sql.SQLColumns
public class SQLColumns
INTERNAL: Represents a set of columns from a given table. The columns are grouped for a reason. Columns are often used as join criteria.
| Field Summary | |
|---|---|
protected java.lang.String |
alias
|
protected java.lang.String[] |
cols
|
protected static FieldHandlerIF |
DEFAULT_FIELD_HANDLER
|
protected static java.lang.Class |
DEFAULT_VALUE_TYPE
|
protected FieldHandlerIF |
fhandler
|
protected SQLTable |
table
|
protected java.lang.Class |
vtype
|
| Fields inherited from interface net.ontopia.persistence.query.sql.SQLValueIF |
|---|
COLUMNS, FUNCTION, NULL, PARAMETER, PRIMITIVE, TUPLE, VERBATIM |
| Constructor Summary | |
|---|---|
SQLColumns(SQLTable table,
java.lang.String col)
|
|
SQLColumns(SQLTable table,
java.lang.String[] cols)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAlias()
INTERNAL: The column alias to use if this value is included in the projection. |
int |
getArity()
INTERNAL: Returns the [column] arity of the value. |
java.lang.String[] |
getColumns()
|
FieldHandlerIF |
getFieldHandler()
INTERNAL: Returns the field handler for the columns. |
SQLValueIF |
getReference()
INTERNAL: Returns the referenced value if one exists. |
SQLTable |
getTable()
|
int |
getType()
INTERNAL: Returns the value class type. |
int |
getValueArity()
INTERNAL: Returns the value arity of the value. |
java.lang.Class |
getValueType()
INTERNAL: Returns the value type. |
int |
hashCode()
|
boolean |
isReference()
INTERNAL: Returns true if this value is a reference to another. |
void |
setAlias(java.lang.String alias)
INTERNAL: Sets the column alias. |
void |
setFieldHandler(FieldHandlerIF fhandler)
INTERNAL: Sets the field handler for the value. |
void |
setValueType(java.lang.Class vtype)
INTERNAL: Sets the value type. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.Class DEFAULT_VALUE_TYPE
protected static final FieldHandlerIF DEFAULT_FIELD_HANDLER
protected SQLTable table
protected java.lang.String[] cols
protected java.lang.String alias
protected java.lang.Class vtype
protected FieldHandlerIF fhandler
| Constructor Detail |
|---|
public SQLColumns(SQLTable table,
java.lang.String col)
public SQLColumns(SQLTable table,
java.lang.String[] cols)
| Method Detail |
|---|
public int getType()
SQLValueIFSQLValueIF interface.
getType in interface SQLValueIFpublic int getArity()
SQLValueIF
getArity in interface SQLValueIFpublic int getValueArity()
SQLValueIF
getValueArity in interface SQLValueIFpublic java.lang.String getAlias()
SQLValueIF
getAlias in interface SQLValueIFpublic void setAlias(java.lang.String alias)
SQLValueIF
setAlias in interface SQLValueIFpublic boolean isReference()
SQLValueIF
isReference in interface SQLValueIFpublic SQLValueIF getReference()
SQLValueIF
getReference in interface SQLValueIFpublic SQLTable getTable()
public java.lang.String[] getColumns()
public java.lang.Class getValueType()
SQLValueIF
getValueType in interface SQLValueIFpublic void setValueType(java.lang.Class vtype)
SQLValueIF
setValueType in interface SQLValueIFpublic FieldHandlerIF getFieldHandler()
getFieldHandler in interface SQLValueIFpublic void setFieldHandler(FieldHandlerIF fhandler)
SQLValueIF
setFieldHandler in interface SQLValueIFpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||