java.lang.Object
org.seasar.doma.jdbc.query.QueryOperand.Param
- All Implemented Interfaces:
QueryOperand
- Enclosing interface:
- QueryOperand
A parameter operand that contains both a property type and an input parameter.
This class represents a parameter value that will be bound to a query.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.seasar.doma.jdbc.query.QueryOperand
QueryOperand.Param, QueryOperand.Prop, QueryOperand.Visitor -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal InParameter<?>The input parameter to be bound to the query.final EntityPropertyType<?,?> The entity property type. -
Constructor Summary
ConstructorsConstructorDescriptionParam(EntityPropertyType<?, ?> propertyType, InParameter<?> inParameter) Constructs a new parameter operand. -
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.
-
Field Details
-
propertyType
The entity property type. -
inParameter
The input parameter to be bound to the query.
-
-
Constructor Details
-
Param
Constructs a new parameter operand.- Parameters:
propertyType- the entity property typeinParameter- the input parameter- Throws:
NullPointerException- if either parameter is null
-
-
Method Details
-
getEntityPropertyType
Returns the entity property type associated with this operand.- Specified by:
getEntityPropertyTypein interfaceQueryOperand- Returns:
- the entity property type
-
accept
Accepts a visitor to perform operations on this operand.- Specified by:
acceptin interfaceQueryOperand- Parameters:
visitor- the visitor to accept
-