- All Known Implementing Classes:
ReturningPropertyNames
public interface ReturningProperties
An interface that represents properties to be returned from database operations.
This interface is used to specify which entity properties should be returned from database operations that support returning clauses, such as INSERT, UPDATE, or DELETE with RETURNING. It provides a way to select specific properties or all properties to be included in the returning clause.
The interface includes predefined instances for common cases:
Custom implementations can be created to return specific subsets of properties.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReturningPropertiesA predefined instance ofReturningPropertiesthat represents all properties.static final ReturningPropertiesA predefined instance ofReturningPropertiesthat represents no properties. -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanisAll()Checks if the currentReturningPropertiesinstance represents all properties.default booleanisNone()Checks if the currentReturningPropertiesinstance represents no properties.List<? extends EntityPropertyType<?,?>> resolve(EntityType<?> entityType) Resolves a list of entity property types for the given entity type.
-
Field Details
-
NONE
A predefined instance ofReturningPropertiesthat represents no properties. -
ALL
A predefined instance ofReturningPropertiesthat represents all properties.
-
-
Method Details
-
isNone
default boolean isNone()Checks if the currentReturningPropertiesinstance represents no properties.- Returns:
trueif this instance is equal toNONE, otherwisefalse
-
isAll
default boolean isAll()Checks if the currentReturningPropertiesinstance represents all properties.- Returns:
trueif this instance is equal toALL, otherwisefalse
-
resolve
Resolves a list of entity property types for the given entity type.- Parameters:
entityType- the entity type for which to resolve property types- Returns:
- a list of entity property types associated with the given entity type
-