public class ForeignKeyColumnDescriptor extends ColumnDescriptor
ColumnDescriptor.ColumnGroupKey| Constructor and Description |
|---|
ForeignKeyColumnDescriptor(IOpenField field,
IdentifierNode foreignKeyTable,
IdentifierNode foreignKey,
IdentifierNode[] foreignKeyTableAccessorChainTokens,
ICell foreignKeyCell,
StringValue displayValue,
OpenL openl,
boolean constructor,
IdentifierNode[] fieldChainTokens,
int columnNum) |
| Modifier and Type | Method and Description |
|---|---|
DomainOpenClass |
getDomainClassForForeignTable(IDataBase db) |
CellKey |
getForeignKeyCellCoordinate() |
IOpenField |
getForeignKeyField(IOpenClass type,
IDataBase db) |
IdentifierNode |
getForeignKeyTable() |
Object |
getLiteralByForeignKey(IOpenClass fieldType,
ILogicalTable valuesTable,
IDataBase db,
IBindingContext bindingContext)
Method is using to load data from foreign table, using foreign key (see
DataTableBindHelper.getForeignKeyTokens(IBindingContext, ILogicalTable, int)). |
boolean |
isReference()
Returns
TRUE if instance has foreign key table. |
void |
populateLiteralByForeignKey(Object target,
ILogicalTable valuesTable,
IDataBase db,
IBindingContext cxt)
Method is using to load data from foreign table, using foreign key (see
DataTableBindHelper.getForeignKeyTokens(IBindingContext, ILogicalTable, int)). |
buildGroupKey, getColumnIdx, getColumnValue, getDisplayName, getField, getFieldChainTokens, getFieldValue, getGroupKey, getLiteral, getName, getRuntimeEnv, getType, getUniqueIndex, isConstructor, isPrimaryKey, isSupportMultirows, isValuesAnArray, isValuesAnArray, populateLiteral, setFieldValue, setGroupKey, setSupportMultirowspublic ForeignKeyColumnDescriptor(IOpenField field, IdentifierNode foreignKeyTable, IdentifierNode foreignKey, IdentifierNode[] foreignKeyTableAccessorChainTokens, ICell foreignKeyCell, StringValue displayValue, OpenL openl, boolean constructor, IdentifierNode[] fieldChainTokens, int columnNum)
public Object getLiteralByForeignKey(IOpenClass fieldType, ILogicalTable valuesTable, IDataBase db, IBindingContext bindingContext) throws Exception
DataTableBindHelper.getForeignKeyTokens(IBindingContext, ILogicalTable, int)). Is used when data table is
represents AS a constructor (see ColumnDescriptor.isConstructor()).Exceptionpublic boolean isReference()
TRUE if instance has foreign key table.isReference in class ColumnDescriptorpublic void populateLiteralByForeignKey(Object target, ILogicalTable valuesTable, IDataBase db, IBindingContext cxt) throws Exception
DataTableBindHelper.getForeignKeyTokens(IBindingContext, ILogicalTable, int)). Is used when data table is
represents as NOT a constructor (see ColumnDescriptor.isConstructor()).Exceptionpublic DomainOpenClass getDomainClassForForeignTable(IDataBase db) throws SyntaxNodeException
SyntaxNodeExceptionpublic IdentifierNode getForeignKeyTable()
public CellKey getForeignKeyCellCoordinate()
public IOpenField getForeignKeyField(IOpenClass type, IDataBase db)
Copyright © 2004–2019 OpenL Tablets. All rights reserved.