JSRelation
Constants Summary
Type | Name | Summary |
---|---|---|
Constant for the joinType of a JSRelation.. | ||
Constant for the joinType of a JSRelation.. | ||
Constant for the joinType of a JSRelation.. | ||
Constant for the joinType of a JSRelation.. |
Property Summary
Type | Name | Summary |
---|---|---|
Flag that tells if related records can be created through this relation.. | ||
Flag that tells if the parent record can be deleted while it has related records.. | ||
Flag that tells if related records should be deleted or not when a parent record is deleted.. | ||
Qualified name of the foreign data source.. | ||
A String which specified a set of sort options for the initial sorting of data retrieved through this relation.. | ||
The join type that is performed between the primary table and the foreign table.. | ||
The name of the relation.. | ||
Qualified name of the primary data source.. |
Methods Summary
Type | Name | Summary |
---|---|---|
Returns an array of JSRelationItem objects representing the relation criteria defined for this relation.. | ||
Returns the UUID of the relation object. | ||
Creates a new relation item for this relation.. | ||
void | Removes the desired relation item from the specified relation.. |
Constants Details
FULL_JOIN
Constant for the joinType of a JSRelation. It is also used in solutionModel.newRelation(...).
Returns Number
Sample
INNER_JOIN
Constant for the joinType of a JSRelation. It is also used in solutionModel.newRelation(...).
Returns Number
Sample
LEFT_OUTER_JOIN
Constant for the joinType of a JSRelation. It is also used in solutionModel.newRelation(...).
Returns Number
Sample
RIGHT_OUTER_JOIN
Constant for the joinType of a JSRelation. It is also used in solutionModel.newRelation(...).
Returns Number
Sample
Properties Details
allowCreationRelatedRecords
Flag that tells if related records can be created through this relation.
The default value of this flag is "false".
Returns Boolean
Sample
allowParentDeleteWhenHavingRelatedRecords
Flag that tells if the parent record can be deleted while it has related records.
The default value of this flag is "true".
Returns Boolean
Sample
deleteRelatedRecords
Flag that tells if related records should be deleted or not when a parent record is deleted.
The default value of this flag is "false".
Returns Boolean
Sample
foreignDataSource
Qualified name of the foreign data source. Contains both the name of the foreign server and the name of the foreign table.
Returns String
Sample
initialSort
A String which specified a set of sort options for the initial sorting of data retrieved through this relation.
Has the form "column_name asc, another_column_name desc, ...".
Returns String
Sample
joinType
The join type that is performed between the primary table and the foreign table. Can be "inner join" or "left outer join".
Returns Number
Sample
name
The name of the relation.
Returns String
Sample
primaryDataSource
Qualified name of the primary data source. Contains both the name of the primary server and the name of the primary table.
Returns String
Sample
Methods Details
getRelationItems()
Returns an array of JSRelationItem objects representing the relation criteria defined for this relation.
Returns Array An array of JSRelationItem instances representing the relation criteria of this relation.
Sample
getUUID()
Returns the UUID of the relation object
Returns UUID
Sample
newRelationItem(dataprovider, operator, foreinColumnName)
Creates a new relation item for this relation. The primary dataprovider, the foreign data provider and one relation operators (like '=' '!=' '>' '<') must be provided.
Parameters String dataprovider The name of the primary dataprovider. String operator The operator used to relate the primary and the foreign dataproviders. String foreinColumnName The name of the foreign dataprovider.
Returns JSRelationItem A JSRelationItem instance representing the newly added relation item.
Sample
removeRelationItem(primaryDataProviderID, operator, foreignColumnName)
Removes the desired relation item from the specified relation.
Parameters String primaryDataProviderID the primary data provider (column) name String operator the operator String foreignColumnName the foreign column name
Returns void
Sample
Last updated