|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.endeca.navigation.analytics.ExprLookup
public class ExprLookup
ExprLookup instances represent an access to a derived property
of a record in a foreign table.
MyTable[expr1, expr2].field is semantically correct if MyTable is GROUPed
by the same number of fields as the number of expressions within brackets
"[...]", and "field" is a derived property defined on MyTable. Brackets with
no expression list within represent access to a table that is GROUPed to a
single record.
Note that because the implicit tables NavStateRecords and AllBaseRecords are not GROUPED, it is not possible to do a lookup on these tables.
| Constructor Summary | |
|---|---|
ExprLookup(String tableName,
String fieldName,
LookupList lList)
Constructs a new ExprLookup. |
|
| Method Summary | |
|---|---|
String |
getFieldName()
Gets the field name for this ExprLookup. |
LookupList |
getLookupList()
Gets the LookupList for this ExprLookup. |
String |
getTableName()
Gets the table name for this ExprLookup. |
void |
setFieldName(String fName)
Sets the field name for this ExprLookup. |
void |
setLookupList(LookupList lList)
Sets the LookupList for this ExprLookup. |
void |
setTableName(String tName)
Sets the table name for this ExprLookup. |
String |
toString()
Returns the string form of this ExprLookup. |
String |
toWire()
Returns the wire form of this ExprLookup. |
void |
validateSyntax()
Validates the syntax of this ExprLookup. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExprLookup(String tableName,
String fieldName,
LookupList lList)
ExprLookup. The LookupList represents a
list of expressions that evaluate to a list of values that uniquely
identify a record in the table.
tableName - the name of the table. Note that the table names
NavStateRecords and AllBaseRecords
are reserved and therefore cannot be specified.fieldName - a derived property of the table specified by tableName.lList - a LookupList object that has been populated
with lookup expressions (objects of type Expr).| Method Detail |
|---|
public String getTableName()
ExprLookup.
ExprLookup.public void setTableName(String tName)
ExprLookup.
tName - the name of the table. Note that the table names
NavStateRecords and AllBaseRecords
are reserved and therefore cannot be specified.public String getFieldName()
ExprLookup.
ExprLookup.public void setFieldName(String fName)
ExprLookup.
fName - a derived property of the table specified by the tableName setting.public LookupList getLookupList()
LookupList for this ExprLookup.
LookupList for this ExprLookup.public void setLookupList(LookupList lList)
LookupList for this ExprLookup.
lList - a LookupList object that has been populated
with lookup expressions (objects of type Expr).public String toString()
ExprLookup. These are of the format:
tableName[expression1, expression2...].fieldNamewhere each expression is a lookup expression in the
LookupList.
toString in interface QueryNodetoString in class ObjectExprLookup in the specified format.public String toWire()
ExprLookup. This method is not
intended for public use because the wire format is subject to change.
toWire in interface QueryNodeExprLookup.
public void validateSyntax()
throws SyntaxException
ExprLookup.
An ExprLookup is valid if the table name and field name
are non-null and non-empty. The LookupList itself must also be valid.
validateSyntax in interface QueryNodeSyntaxException - if the syntax requirements are not satisfied.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||