Uses of Interface
is.codion.framework.domain.entity.attribute.ForeignKey
Packages that use ForeignKey
Package
Description
Package configuration values:
EntityConnectionProvider.CLIENT_DOMAIN_TYPE
EntityConnectionProvider.CLIENT_CONNECTION_TYPE
EntityConnectionProvider.DESCRIPTION
Package configuration values:
EntityValidator.STRICT_VALIDATION
Entities.VALIDATE_FOREIGN_KEYS
Entities.STRICT_DESERIALIZATION
AttributeDefinition.FRACTION_DIGITSAttributeDefinition.NUMBER_GROUPINGAttributeDefinition.GROUPING_SEPARATORAttributeDefinition.DECIMAL_SEPARATORAttributeDefinition.USE_LEXICAL_STRING_COMPARATORAttributeDefinition.ROUNDING_MODEForeignKeyDefinition.REFERENCE_DEPTH
Attribute related classes.
Provides a type-safe condition API for building SQL WHERE clauses programmatically.
Package configuration values:
EntityApplicationModel.USER_PREFERENCES
EntityApplicationModel.RESTORE_DEFAULT_PREFERENCES
EntityApplicationModel.PREFERENCES_KEY
EntityEditModel.EDIT_EVENTS
EntityEditModel.EntityEditor.PERSIST_FOREIGN_KEYS
EntityQueryModel.LIMIT
EntityTableModel.ON_INSERT
EntityTableModel.ORDER_QUERY
ForeignKeyModelLink.SET_CONDITION_ON_INSERT
ForeignKeyModelLink.SET_VALUE_ON_INSERT
ForeignKeyModelLink.REFRESH_ON_SELECTION
ForeignKeyModelLink.CLEAR_CONDITION_ON_EMPTY_SELECTION
ForeignKeyModelLink.CLEAR_VALUE_ON_EMPTY_SELECTION
EntitySearchModel.DEFAULT_LIMIT
Swing model classes
Package configuration values:
EntityComboBoxModel.EDIT_EVENTS
Package configuration values:
EntityApplication.USER
EntityApplication.SAVE_DEFAULT_USERNAME
EntityApplication.STARTUP_DIALOG
EntityApplication.CONNECTION_INFO_UPPER_CASE
EntityApplicationPanel.HELP_URL
EntityApplicationPanel.CONFIRM_EXIT
EntityApplicationPanel.CACHE_ENTITY_PANELS
EntityApplicationPanel.CALL_SYSTEM_EXIT
EntityApplicationPanel.SQL_TRACING
EntityEditComponentPanel.VALID_INDICATOR
EntityEditComponentPanel.MODIFIED_INDICATOR
EntityEditComponentPanel.DEFAULT_TEXT_FIELD_COLUMNS
EntityEditPanel.Config.USE_SAVE_CAPTION
EntityEditPanel.Config.USE_FOCUS_ACTIVATION
EntityEditPanel.Config.INCLUDE_ENTITY_MENU
EntityEditPanel.Config.MODIFIED_WARNING
EntityPanel.Config.KEYBOARD_NAVIGATION
EntityPanel.Config.DISPOSE_EDIT_DIALOG_ON_ESCAPE
EntityPanel.Config.INCLUDE_TOGGLE_EDIT_PANEL_CONTROL
EntityPanel.Config.TOOLBAR_CONTROLS
EntityPanel.Config.CONTROL_PANEL_CONSTRAINTS
EntityPanel.Config.CONTROL_TOOLBAR_CONSTRAINTS
EntityPanel.Config.WINDOW_TYPE
EntityPanel.Config.EDIT_PANEL_CONSTRAINTS
EntityTablePanel.Config.EXCLUDE_HIDDEN_COLUMNS
EntityTablePanel.Config.CONDITION_VIEW
EntityTablePanel.Config.FILTER_VIEW
EntityTablePanel.Config.SUMMARY_PANEL_VISIBLE
EntityTablePanel.Config.INCLUDE_POPUP_MENU
EntityTablePanel.Config.INCLUDE_ENTITY_MENU
EntityTablePanel.Config.INCLUDE_QUERY_INSPECTOR
EntityTablePanel.Config.INCLUDE_CLEAR_CONTROL
EntityTablePanel.Config.INCLUDE_LIMIT_MENU
EntityTablePanel.Config.REFRESH_BUTTON_VISIBLE
EntityTablePanel.Config.COLUMN_SELECTION
EntityTablePanel.Config.INCLUDE_CONDITIONS
EntityTablePanel.Config.INCLUDE_FILTERS
EntityTablePanel.Config.INCLUDE_SUMMARY
EntityTablePanel.Config.REFRESH_PROGRESS_BAR
EntityTablePanel.Config.REFRESH_PROGRESS_BAR_DELAY
ReferentialIntegrityErrorHandling.REFERENTIAL_INTEGRITY_ERROR_HANDLING
TabbedApplicationLayout.TAB_PLACEMENT
TabbedDetailLayout.INCLUDE_CONTROLS
Package configuration values:
EntitySearchField.SEARCH_INDICATOR
EntitySearchField.SEARCH_PROGRESS_BAR_DELAY
DefaultEditComponent.DEFAULT_TEXT_FIELD_COLUMNS
-
Uses of ForeignKey in is.codion.framework.db
Methods in is.codion.framework.db that return types with arguments of type ForeignKeyModifier and TypeMethodDescriptionEntityConnection.Select.foreignKeyReferenceDepths()Returns a map containing the number of levels of foreign key values to fetch per foreign key, with 0 meaning no referenced entities should be fetched, -1 no limit.Methods in is.codion.framework.db with parameters of type ForeignKeyModifier and TypeMethodDescriptionEntityConnection.Select.Builder.referenceDepth(ForeignKey foreignKey, int referenceDepth) Returns the depth limit for a specific foreign key traversal.EntityConnection.Select.referenceDepth(ForeignKey foreignKey) Returns the number of levels of foreign key values to fetch, with 0 meaning the referenced entity should not be fetched, -1 no limit and an empty Optional if the global limit should be used (EntityConnection.Select.referenceDepth()). -
Uses of ForeignKey in is.codion.framework.domain.entity
Methods in is.codion.framework.domain.entity that return ForeignKeyModifier and TypeMethodDescription<A> ForeignKeyEntityType.foreignKey(String name, Column<A> column, Column<A> referencedColumn) Creates a newForeignKeybased on the given attributes.<A,B> ForeignKey EntityType.foreignKey(String name, Column<A> firstColumn, Column<A> firstReferencedColumn, Column<B> secondColumn, Column<B> secondReferencedColumn) Creates a newForeignKeybased on the given columns.<A,B, C> ForeignKey EntityType.foreignKey(String name, Column<A> firstColumn, Column<A> firstReferencedColumn, Column<B> secondColumn, Column<B> secondReferencedColumn, Column<C> thirdColumn, Column<C> thirdReferencedColumn) Creates a newForeignKeybased on the given columns.EntityType.foreignKey(String name, List<ForeignKey.Reference<?>> references) Creates a newForeignKeybased on the given references.Methods in is.codion.framework.domain.entity that return types with arguments of type ForeignKeyModifier and TypeMethodDescriptionEntityDefinition.ForeignKeys.get()EntityDefinition.ForeignKeys.get(EntityType referencedEntityType) Returns the foreign keys referencing entities of the given typeMethods in is.codion.framework.domain.entity with parameters of type ForeignKeyModifier and TypeMethodDescriptionEntityDefinition.ForeignKeys.definition(ForeignKey foreignKey) Entity.entity(ForeignKey foreignKey) Returns the Entity instance referenced by the givenForeignKey.Entity.key(ForeignKey foreignKey) Returns the key referenced by the givenForeignKey, if the reference is null this method returns null.static Collection<Entity.Key> Entity.keys(ForeignKey foreignKey, Collection<Entity> entities) Returns the non-null keys referenced by the givenForeignKeyEntityDefinition.ForeignKeys.referencedBy(ForeignKey foreignKey) Returns theEntityDefinitionof the entity referenced by the given foreign key.booleanEntityDefinition.ForeignKeys.updatable(ForeignKey foreignKey) EntityFormatter.Builder.value(ForeignKey foreignKey, Attribute<?> attribute) Adds the value mapped to the given attribute in theEntityinstance mapped to the given foreign key to thisEntityFormatter.Builder -
Uses of ForeignKey in is.codion.framework.domain.entity.attribute
Methods in is.codion.framework.domain.entity.attribute that return ForeignKeyModifier and TypeMethodDescriptionForeignKeyDefinition.attribute()static ForeignKeyForeignKey.foreignKey(EntityType entityType, String name, List<ForeignKey.Reference<?>> references) Creates a newForeignKeybased on the given entityType and references. -
Uses of ForeignKey in is.codion.framework.domain.entity.condition
Methods in is.codion.framework.domain.entity.condition with parameters of type ForeignKeyModifier and TypeMethodDescriptionstatic ForeignKeyConditionsForeignKeyConditions.conditions(ForeignKey foreignKey) Instantiates a newForeignKeyConditionsinstance -
Uses of ForeignKey in is.codion.framework.domain.test
Methods in is.codion.framework.domain.test with parameters of type ForeignKeyModifier and TypeMethodDescriptionDefaultEntityFactory.entity(ForeignKey foreignKey) DomainTest.EntityFactory.entity(ForeignKey foreignKey) Initializes an Entity instance to reference via the given foreign key. -
Uses of ForeignKey in is.codion.framework.model
Methods in is.codion.framework.model that return ForeignKeyModifier and TypeMethodDescriptionEntityExport.Settings.ForeignKeyExport.attribute()ForeignKeyModelLink.foreignKey()Methods in is.codion.framework.model with parameters of type ForeignKeyModifier and TypeMethodDescriptionvoidEntityModel.DetailModels.add(M detailModel, ForeignKey foreignKey) Adds the given detail model to this model, based on the given foreign key.static <M extends EntityModel<M,E, T>, E extends EntityEditModel, T extends EntityTableModel<E>, B extends ForeignKeyModelLink.Builder<M, E, T, B>>
ForeignKeyModelLink.Builder<M, E, T, B> ForeignKeyModelLink.builder(M model, ForeignKey foreignKey) Returns a newForeignKeyModelLink.Builderinstance.protected ForeignKeyConditionModelEntityConditions.condition(ForeignKey foreignKey) Only called ifEntityConditions.include(ForeignKey)returns trueprotected voidAbstractEntityEditModel.configure(ForeignKey foreignKey, EntitySearchModel entitySearchModel) Called when aEntitySearchModelis created inAbstractEntityEditModel.searchModel(ForeignKey).protected EntitySearchModelEntityConditions.createEqualSearchModel(ForeignKey foreignKey) protected EntitySearchModelEntityConditions.createInSearchModel(ForeignKey foreignKey) AbstractEntityEditModel.createSearchModel(ForeignKey foreignKey) EntityEditModel.createSearchModel(ForeignKey foreignKey) Creates aEntitySearchModelfor looking up entities of the type referenced by the given foreign key, using the search attributes defined for that entity type.protected voidAbstractEntityEditModel.deleted(ForeignKey foreignKey, Collection<Entity> entities) Called when entities of the type referenced by the given foreign key are deleted.EntityConditionModel.get(ForeignKey foreignKey) Returns theConditionModelassociated with the given foreignKey.protected booleanEntityConditions.include(ForeignKey foreignKey) protected voidAbstractEntityEditModel.inserted(ForeignKey foreignKey, Collection<Entity> entities) Called when entities of the type referenced by the given foreign key are inserted.final EntitySearchModelAbstractEntityEditModel.searchModel(ForeignKey foreignKey) EntityEditModel.searchModel(ForeignKey foreignKey) Returns theEntitySearchModelassociated with the given foreign key.protected voidAbstractEntityEditModel.updated(ForeignKey foreignKey, Map<Entity.Key, Entity> entities) Called when entities of the type referenced by the given foreign key have been updated.protected voidAbstractEntityTableModel.updated(ForeignKey foreignKey, Map<Entity.Key, Entity> entities) Called when entities of the type referenced by the given foreign key are updated -
Uses of ForeignKey in is.codion.framework.model.test
Fields in is.codion.framework.model.test declared as ForeignKeyModifier and TypeFieldDescriptionstatic final ForeignKeyTestDomain.Employee.DEPARTMENT_FKstatic final ForeignKeyTestDomain.Detail.MASTER_FKstatic final ForeignKeyTestDomain.Employee.MGR_FK -
Uses of ForeignKey in is.codion.swing.framework.model
Methods in is.codion.swing.framework.model with parameters of type ForeignKeyModifier and TypeMethodDescriptionfinal EntityComboBoxModelSwingEntityEditModel.comboBoxModel(ForeignKey foreignKey) Returns theEntityComboBoxModelassociated with the given foreign key.protected ForeignKeyConditionModelSwingEntityConditions.condition(ForeignKey foreignKey) protected voidSwingEntityEditModel.configure(ForeignKey foreignKey, EntityComboBoxModel comboBoxModel) Called when aEntityComboBoxModelis created bySwingEntityEditModel.comboBoxModel(ForeignKey).SwingEntityEditModel.createComboBoxModel(ForeignKey foreignKey) Creates a newEntityComboBoxModelfor the given foreign key, override to provide a customEntityComboBoxModelimplementation.protected EntityComboBoxModelSwingEntityConditions.createEqualComboBoxModel(ForeignKey foreignKey) -
Uses of ForeignKey in is.codion.swing.framework.model.component
Methods in is.codion.swing.framework.model.component with parameters of type ForeignKeyModifier and TypeMethodDescriptionEntityComboBoxModel.Builder.filter(ForeignKey foreignKey, EntityComboBoxModel filterModel) Links the given combo box model representing foreign key entities to this combo box model so that selection in the foreign key model filters this model.EntityComboBoxModel.Filter.get(ForeignKey foreignKey) Returns a filter based on the given foreign key -
Uses of ForeignKey in is.codion.swing.framework.ui
Methods in is.codion.swing.framework.ui with parameters of type ForeignKeyModifier and TypeMethodDescriptionprotected final EntityComboBox.BuilderEntityEditComponentPanel.createComboBox(ForeignKey foreignKey) Creates a builder for foreign key combo boxes.protected final EntityComboBoxPanel.BuilderEntityEditComponentPanel.createComboBoxPanel(ForeignKey foreignKey, Supplier<EntityEditPanel> editPanel) Creates a builder for a foreign key combo box panel with optional buttons for adding and editing items.protected final EntitySearchField.SingleSelectionBuilderEntityEditComponentPanel.createSearchField(ForeignKey foreignKey) Creates a builder for foreign key search fields.protected final EntitySearchFieldPanel.SingleSelectionBuilderEntityEditComponentPanel.createSearchFieldPanel(ForeignKey foreignKey, Supplier<EntityEditPanel> editPanel) Creates a builder for a foreign key search field panel with optional buttons for adding and editing items.protected final <B extends TextFieldBuilder<JTextField,Entity, B>>
TextFieldBuilder<JTextField, Entity, B> EntityEditComponentPanel.createTextField(ForeignKey foreignKey) Creates a builder for a read-only, non-focusable foreign key text field. -
Uses of ForeignKey in is.codion.swing.framework.ui.component
Methods in is.codion.swing.framework.ui.component with parameters of type ForeignKeyModifier and TypeMethodDescriptionprotected EntityComboBox.BuilderDefaultEditComponent.comboBox(ForeignKey foreignKey, EntityDefinition entityDefinition, EntityComboBoxModel comboBoxModel) EntityComponents.comboBox(ForeignKey foreignKey, EntityComboBoxModel comboBoxModel) Creates aEntityComboBox.Builderbased on the given foreign key.EntityComponents.comboBoxPanel(ForeignKey foreignKey, EntityComboBoxModel comboBoxModel, Supplier<EntityEditPanel> editPanel) Creates aEntityComboBoxPanel.Builderwith optional buttons for adding and editing items.protected EntitySearchField.SingleSelectionBuilderDefaultEditComponent.searchField(ForeignKey foreignKey, EntityDefinition entityDefinition, EntitySearchModel searchModel) EntityComponents.searchField(ForeignKey foreignKey, EntitySearchModel searchModel) Creates aEntitySearchField.Builder.Factory.EntityComponents.searchFieldPanel(ForeignKey foreignKey, EntitySearchModel searchModel, Supplier<EntityEditPanel> editPanel) Creates aEntitySearchFieldPanel.Builder.Factory.<B extends TextFieldBuilder<JTextField,Entity, B>>
TextFieldBuilder<JTextField, Entity, B> EntityComponents.textField(ForeignKey foreignKey)