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
Package configuration values:
EntityValidator.STRICT_VALIDATION
Entities.VALIDATE_FOREIGN_KEYS
Entities.STRICT_DESERIALIZATION
AttributeDefinition.MAXIMUM_FRACTION_DIGITS
AttributeDefinition.TIME_FORMAT
AttributeDefinition.NUMBER_FORMAT_GROUPING
AttributeDefinition.GROUPING_SEPARATOR
AttributeDefinition.DECIMAL_SEPARATOR
AttributeDefinition.USE_LEXICAL_STRING_COMPARATOR
AttributeDefinition.DATE_TIME_FORMAT
AttributeDefinition.DATE_FORMAT
AttributeDefinition.DECIMAL_ROUNDING_MODE
ForeignKeyDefinition.FOREIGN_KEY_REFERENCE_DEPTH
Attribute related classes.
Provides a type-safe condition API for building SQL WHERE clauses programmatically.
Package configuration values:
EntityApplicationModel.USERNAME_PREFIX
EntityApplicationModel.SAVE_DEFAULT_USERNAME
EntityEditModel.POST_EDIT_EVENTS
EntityEditModel.EntityEditor.PERSIST_FOREIGN_KEYS
EntityQueryModel.LIMIT
EntityTableModel.ON_INSERT
EntityTableModel.HANDLE_EDIT_EVENTS
EntityTableModel.ORDER_QUERY_BY_SORT_ORDER
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
Package configuration values:
EntityComboBoxModel.HANDLE_EDIT_EVENTS
Package configuration values:
EntityApplicationPanel.HELP_URL
EntityApplicationPanel.CONFIRM_EXIT
EntityApplicationPanel.SHOW_STARTUP_DIALOG
EntityApplicationPanel.CACHE_ENTITY_PANELS
EntityApplicationPanel.USER_PREFERENCES_ENABLED
EntityApplicationPanel.RESTORE_DEFAULT_PREFERENCES
EntityApplicationPanel.CALL_SYSTEM_EXIT
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.USE_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
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
ReferentialIntegrityErrorHandling.REFERENTIAL_INTEGRITY_ERROR_HANDLING
TabbedApplicationLayout.TAB_PLACEMENT
TabbedDetailLayout.INCLUDE_CONTROLS
Package configuration values:
EntitySearchField.SEARCH_INDICATOR
DefaultEditComponentFactory.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> ForeignKey
EntityType.foreignKey
(String name, Column<A> column, Column<A> referencedColumn) Creates a newForeignKey
based 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 newForeignKey
based 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 newForeignKey
based on the given columns.EntityType.foreignKey
(String name, List<ForeignKey.Reference<?>> references) Creates a newForeignKey
based 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 givenForeignKey
EntityDefinition.ForeignKeys.referencedBy
(ForeignKey foreignKey) Returns theEntityDefinition
of the entity referenced by the given foreign key.boolean
EntityDefinition.ForeignKeys.updatable
(ForeignKey foreignKey) StringFactory.Builder.value
(ForeignKey foreignKey, Attribute<?> attribute) Adds the value mapped to the given attribute in theEntity
instance mapped to the given foreign key to thisStringFactory.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 ForeignKey
ForeignKey.foreignKey
(EntityType entityType, String name, List<ForeignKey.Reference<?>> references) Creates a newForeignKey
based 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 ForeignKeyCondition.Factory
ForeignKeyCondition.factory
(ForeignKey foreignKey) Instantiates a newForeignKeyCondition.Factory
instance -
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 ForeignKeyMethods in is.codion.framework.model with parameters of type ForeignKeyModifier and TypeMethodDescriptionvoid
EntityModel.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.Builder
instance.protected ForeignKeyConditionModel
EntityConditionModelFactory.conditionModel
(ForeignKey foreignKey) Only called ifEntityConditionModelFactory.include(ForeignKey)
returns trueprotected void
AbstractEntityEditModel.configureSearchModel
(ForeignKey foreignKey, EntitySearchModel entitySearchModel) Called when aEntitySearchModel
is created inAbstractEntityEditModel.searchModel(ForeignKey)
.protected EntitySearchModel
EntityConditionModelFactory.createEqualSearchModel
(ForeignKey foreignKey) protected EntitySearchModel
EntityConditionModelFactory.createInSearchModel
(ForeignKey foreignKey) AbstractEntityEditModel.createSearchModel
(ForeignKey foreignKey) EntityEditModel.createSearchModel
(ForeignKey foreignKey) Creates aEntitySearchModel
for looking up entities of the type referenced by the given foreign key, using the search attributes defined for that entity type.protected void
AbstractEntityEditModel.deleted
(ForeignKey foreignKey, Collection<Entity> entities) Called when entities of the type referenced by the given foreign key are deleted.EntityTableConditionModel.get
(ForeignKey foreignKey) Returns theConditionModel
associated with the given foreignKey.protected boolean
EntityConditionModelFactory.include
(ForeignKey foreignKey) protected void
AbstractEntityEditModel.inserted
(ForeignKey foreignKey, Collection<Entity> entities) Called when entities of the type referenced by the given foreign key are inserted.final EntitySearchModel
AbstractEntityEditModel.searchModel
(ForeignKey foreignKey) EntityEditModel.searchModel
(ForeignKey foreignKey) Returns theEntitySearchModel
associated with the given foreign key.protected void
AbstractEntityEditModel.updated
(ForeignKey foreignKey, Map<Entity.Key, Entity> entities) Called when entities of the type referenced by the given foreign key have been updated.protected void
AbstractEntityTableModel.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 ForeignKey
TestDomain.Employee.DEPARTMENT_FK
static final ForeignKey
TestDomain.Detail.MASTER_FK
static final ForeignKey
TestDomain.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 EntityComboBoxModel
SwingEntityEditModel.comboBoxModel
(ForeignKey foreignKey) Returns theEntityComboBoxModel
associated with the given foreign key.protected ForeignKeyConditionModel
SwingEntityConditionModelFactory.conditionModel
(ForeignKey foreignKey) protected void
SwingEntityEditModel.configureComboBoxModel
(ForeignKey foreignKey, EntityComboBoxModel comboBoxModel) Called when aEntityComboBoxModel
is created bySwingEntityEditModel.comboBoxModel(ForeignKey)
.SwingEntityEditModel.createComboBoxModel
(ForeignKey foreignKey) Creates a newEntityComboBoxModel
for the given foreign key, override to provide a customEntityComboBoxModel
implementation.protected EntityComboBoxModel
SwingEntityConditionModelFactory.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.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.Builder
EntityEditComponentPanel.createComboBox
(ForeignKey foreignKey) Creates a builder for foreign key combo boxes.protected final EntityComboBoxPanel.Builder
EntityEditComponentPanel.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.SingleSelectionBuilder
EntityEditComponentPanel.createSearchField
(ForeignKey foreignKey) Creates a builder for foreign key search fields.protected final EntitySearchFieldPanel.SingleSelectionBuilder
EntityEditComponentPanel.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<Entity,
JTextField, B>>
TextFieldBuilder<Entity, JTextField, 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.Builder
DefaultEditComponentFactory.comboBox
(ForeignKey foreignKey, EntityDefinition entityDefinition, EntityComboBoxModel comboBoxModel) EntityComponents.comboBox
(ForeignKey foreignKey, EntityComboBoxModel comboBoxModel) Creates aEntityComboBox.Builder
based on the given foreign key.EntityComponents.comboBoxPanel
(ForeignKey foreignKey, EntityComboBoxModel comboBoxModel, Supplier<EntityEditPanel> editPanel) Creates aEntityComboBoxPanel.Builder
with optional buttons for adding and editing items.protected EntitySearchField.SingleSelectionBuilder
DefaultEditComponentFactory.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<Entity,
JTextField, B>>
TextFieldBuilder<Entity, JTextField, B> EntityComponents.textField
(ForeignKey foreignKey)