Uses of Interface
is.codion.framework.domain.entity.condition.Condition
Packages that use Condition
Package
Description
Package configuration values:
EntityConnectionProvider.CLIENT_DOMAIN_TYPE
EntityConnectionProvider.CLIENT_CONNECTION_TYPE
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
-
Uses of Condition in is.codion.framework.db
Methods in is.codion.framework.db that return ConditionModifier and TypeMethodDescriptionEntityConnection.Count.having()
EntityConnection.Select.having()
EntityConnection.Count.where()
EntityConnection.Select.where()
EntityConnection.Update.where()
Methods in is.codion.framework.db with parameters of type ConditionModifier and TypeMethodDescriptionEntityConnection.BatchCopy.Builder.conditions
(Condition... conditions) int
Deletes the entities specified by the given condition.static EntityConnection.Count
The HAVING condition.<T> List
<T> Selects distinct non-null values of the given column.Selects entities based on the given condition// Select all jazz albums Entity jazz = connection.selectSingle(Genre.NAME.equalTo("Jazz")); List<Entity> jazzTracks = connection.select(Track.GENRE_FK.equalTo(jazz)); // Select with composite condition List<Entity> longExpensiveTracks = connection.select(and( Track.UNITPRICE.greaterThan(0.99), Track.MILLISECONDS.greaterThan(300_000) ));
EntityConnection.selectSingle
(Condition condition) Selects a single entity based on the specified conditionstatic EntityConnection.Count
-
Uses of Condition in is.codion.framework.db.local
Methods in is.codion.framework.db.local with parameters of type ConditionModifier and TypeMethodDescriptionReturns a result set iterator based on the given query condition. -
Uses of Condition in is.codion.framework.db.rmi
Methods in is.codion.framework.db.rmi with parameters of type ConditionModifier and TypeMethodDescriptionint
Deletes the entities specified by the given condition Performs a commit unless a transaction is open.<T> List
<T> Selects distinct non-null values of the given column.Selects entities based on the given conditionRemoteEntityConnection.selectSingle
(Condition condition) Selects a single entity based on the specified condition -
Uses of Condition in is.codion.framework.domain.entity.condition
Subinterfaces of Condition in is.codion.framework.domain.entity.conditionModifier and TypeInterfaceDescriptioninterface
A condition based on a singleColumn
.static interface
A condition specifying all entities of a given type, a no-condition.static interface
An interface encapsulating a combination of Condition instances, that should be either AND'ed or OR'ed together in a query contextinterface
A customCondition
based on aConditionProvider
.interface
A ForeignKey based condition for filtering entities by their relationships.Classes in is.codion.framework.domain.entity.condition that implement ConditionModifier and TypeClassDescriptionclass
A base class for Condition implementations.Methods in is.codion.framework.domain.entity.condition that return ConditionModifier and TypeMethodDescriptionstatic Condition
Condition.all
(EntityType entityType) Returns a 'equalTo'Condition
or 'isNull' in casevalue
is null.Returns an 'in'Condition
.ForeignKeyCondition.Factory.in
(Collection<Entity> values) Returns an 'in'Condition
.ForeignKeyCondition.Factory.isNotNull()
Returns a 'isNotNull'Condition
.ForeignKeyCondition.Factory.isNull()
Returns a 'isNull'Condition
.static Condition
Condition.key
(Entity.Key key) Creates aCondition
based on the given keystatic Condition
Condition.keys
(Collection<Entity.Key> keys) Creates aCondition
based on the given keys.ForeignKeyCondition.Factory.notEqualTo
(@Nullable Entity value) Returns a 'notEqualTo'Condition
or 'isNotNull' in casevalue
is null.Returns a 'notIn'Condition
.ForeignKeyCondition.Factory.notIn
(Collection<Entity> values) Returns a 'notIn' condition.Methods in is.codion.framework.domain.entity.condition that return types with arguments of type ConditionMethods in is.codion.framework.domain.entity.condition with parameters of type ConditionModifier and TypeMethodDescriptionstatic Condition.Combination
Returns a newCondition.Combination
instance, combining the given conditions using the AND conjunction.static Condition.Combination
Condition.combination
(Conjunction conjunction, Condition... conditions) Initializes a newCondition.Combination
instancestatic Condition.Combination
Returns a newCondition.Combination
instance, combining the given conditions using the OR conjunction.Method parameters in is.codion.framework.domain.entity.condition with type arguments of type ConditionModifier and TypeMethodDescriptionstatic Condition.Combination
Condition.and
(Collection<Condition> conditions) Returns a newCondition.Combination
instance, combining the given conditions using the AND conjunction.static Condition.Combination
Condition.combination
(Conjunction conjunction, Collection<Condition> conditions) Initializes a newCondition.Combination
instancestatic Condition.Combination
Condition.or
(Collection<Condition> conditions) Returns a newCondition.Combination
instance, combining the given conditions using the OR conjunction. -
Uses of Condition in is.codion.framework.json.domain
Methods in is.codion.framework.json.domain that return ConditionModifier and TypeMethodDescriptionEntityObjectMapper.deserializeCondition
(EntityDefinition definition, com.fasterxml.jackson.databind.JsonNode conditionNode) Deserializes the given conditionMethods in is.codion.framework.json.domain with parameters of type ConditionModifier and TypeMethodDescriptionvoid
EntityObjectMapper.serializeCondition
(Condition condition, com.fasterxml.jackson.core.JsonGenerator generator) Serializes the given condition -
Uses of Condition in is.codion.framework.model
Methods in is.codion.framework.model that return ConditionModifier and TypeMethodDescriptionEntityTableConditionModel.having
(Conjunction conjunction) Returns a HAVING condition based on enabled condition models which are based on aggregate function columns.EntityTableConditionModel.where
(Conjunction conjunction) Returns a WHERE condition based on enabled condition models which are based on non-aggregate function columns.Methods in is.codion.framework.model that return types with arguments of type ConditionModifier and TypeMethodDescriptionEntitySearchModel.condition()
Controls the additional search condition supplier used when performing the next search data.Method parameters in is.codion.framework.model with type arguments of type ConditionModifier and TypeMethodDescriptionThe condition supplier may not return null, doing so will cause an exception when searching. -
Uses of Condition in is.codion.swing.framework.model.component
Methods in is.codion.swing.framework.model.component that return types with arguments of type ConditionModifier and TypeMethodDescriptionEntityComboBoxModel.condition()
Controls the condition supplier used when querying data, setting this to null reverts to the condition specifying all underlying entities.Method parameters in is.codion.swing.framework.model.component with type arguments of type ConditionModifier and TypeMethodDescriptionIfcondition
is null, the default condition, specifying all underlying entities is used.