|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ajax.type.FieldType
class FieldType - the type of a field in a tuple
Field Summary | |
protected Type |
_elementType
field type. this is the type of the corresponding field. |
protected java.util.HashMap |
backTables
a HashMap containing the names of the tables for which this attribute is actually a backtracking explaining attribute and also the correspoding attribute. |
protected java.lang.String |
name
field name |
Constructor Summary | |
FieldType()
Empty Constructor required. |
|
FieldType(java.lang.String name,
Type _type)
Constructor |
|
FieldType(java.lang.String name,
Type _type,
java.util.HashMap originTableAttribute)
Constructor |
Method Summary | |
boolean |
equals(FieldType other)
Report if this field has the same name and type as the other field |
boolean |
equals(java.lang.Object other)
Report if this field has the same name and type as the other field |
Type |
getElementType()
Get type of field. |
java.lang.String |
getExplainingAttribute(java.lang.String tableName)
Returns the explaining attribute in the explaining table given as parameter, corresponding to this attribute |
java.util.Iterator |
getExplainingTables()
Returns an Iterator through the list of the explaining tables |
java.lang.String |
getName()
Get field name |
boolean |
isExplainingAttribute()
Returns true if this fieldType corresponds to an attribute which is actually an explaining attribute for other tables |
boolean |
sameName(FieldType other)
sameName checks if this field has the same name as the other field |
void |
setExplainingTable(java.util.HashMap originTableAttribute)
Adds a table name and the corresponding attribute to the HashMap containing the explaining tables for this attribute |
java.lang.String |
toString()
Convert field type to human-readable string. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String name
protected Type _elementType
protected java.util.HashMap backTables
Constructor Detail |
public FieldType()
public FieldType(java.lang.String name, Type _type)
name
- field nametype
- field typepublic FieldType(java.lang.String name, Type _type, java.util.HashMap originTableAttribute)
name
- field nametype
- field typeoriginTable
- the origin table name for explainingMethod Detail |
public java.lang.String getName()
public Type getElementType()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean sameName(FieldType other)
other
- the other fieldpublic boolean equals(FieldType other)
other
- the other fieldpublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the other fieldpublic void setExplainingTable(java.util.HashMap originTableAttribute)
tableName
- a String representing the name of the explaininig tableattributeName
- a String representing the corresponding attribute
in the explaining tablepublic java.util.Iterator getExplainingTables()
public java.lang.String getExplainingAttribute(java.lang.String tableName)
public boolean isExplainingAttribute()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |