final class ServerJoin extends AbstractJoin
Person [one-to-many] ---> PersonAddress [many-to-one] ---> Address
and the following multi-table join in Progress
for each person,
each person-address of person,
each address of person-address:
...
the first join (person-address of person) is represented as
follows:
personAddress.personRecord = person
where PersonAddress is the local DMO and Person the foreign
DMO; and the second join (address of person-address) is
represented as follows:
address = personAddress.addressRecord
where Address is the local DMO and PersonAddress the foreign
DMO.inverse, NOT_NULL_FIELD, NULL_FIELD| Constructor and Description |
|---|
ServerJoin(RecordBuffer local,
RecordBuffer inverse)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected FQLExpression[][] |
generateFQL(RecordBuffer local,
RecordBuffer inverse,
RelationInfo info,
boolean dereference)
Generate the FQL where clause snippets which will be inserted into the overall FQL statement executed by
the enclosing query.
|
protected java.util.List<FqlType> |
getParameterTypes(RelationInfo info,
boolean dereference)
Determine the type of the query substitution parameters, if any.
|
protected boolean |
isServerJoin()
Report whether the join represented by this object takes place at the
database server, or within runtime code.
|
getFQL, getInverse, getInverseInterface, getParameters, getParameterTypes, getUnresolvedParameters, raiseJoinError, setupServerJoin(RecordBuffer local, RecordBuffer inverse)
local - Local record buffer (the refering end of the join).inverse - Inverse record buffer (the referent end of the join).protected boolean isServerJoin()
isServerJoin in class AbstractJointrue if the join happens at the server;
false if it happens in the runtime.protected FQLExpression[][] generateFQL(RecordBuffer local, RecordBuffer inverse, RelationInfo info, boolean dereference)
generateFQL in class AbstractJoinlocal - Local record buffer (the refering end of the join).inverse - Inverse record buffer (the referent end of the join).info - Relation descriptor object.dereference - true if the local DMO contains a reference to the foreign record, which must be
dereferenced in the FQL query; false if the local DMO is the foreign record,
referenced by the inverse DMO.null and the second
(NOT_NULL_FIELD) is used when the join field is not unknown.protected java.util.List<FqlType> getParameterTypes(RelationInfo info, boolean dereference)
null.getParameterTypes in class AbstractJoininfo - Not used.dereference - Not used.null.