- All Known Implementing Classes:
QueryOperand.Param,QueryOperand.Prop
public interface QueryOperand
An interface representing an operand in a database query.
This interface provides a way to represent different types of operands that can be used in database queries, such as parameters and property references. It follows the visitor pattern to allow operations on these operands without modifying their structure.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA parameter operand that contains both a property type and an input parameter.static final classA property operand that references an entity property.static interfaceA visitor interface forQueryOperandimplementations. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(QueryOperand.Visitor visitor) Accepts a visitor to perform operations on this operand.EntityPropertyType<?,?> Returns the entity property type associated with this operand.
-
Method Details
-
getEntityPropertyType
EntityPropertyType<?,?> getEntityPropertyType()Returns the entity property type associated with this operand.- Returns:
- the entity property type
-
accept
Accepts a visitor to perform operations on this operand.- Parameters:
visitor- the visitor to accept
-