Class QueryOperand.Param

java.lang.Object
org.seasar.doma.jdbc.query.QueryOperand.Param
All Implemented Interfaces:
QueryOperand
Enclosing interface:
QueryOperand

public static final class QueryOperand.Param extends Object implements 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.

  • Field Details

    • propertyType

      public final EntityPropertyType<?,?> propertyType
      The entity property type.
    • inParameter

      public final InParameter<?> inParameter
      The input parameter to be bound to the query.
  • Constructor Details

    • Param

      public Param(EntityPropertyType<?,?> propertyType, InParameter<?> inParameter)
      Constructs a new parameter operand.
      Parameters:
      propertyType - the entity property type
      inParameter - the input parameter
      Throws:
      NullPointerException - if either parameter is null
  • Method Details

    • getEntityPropertyType

      public EntityPropertyType<?,?> getEntityPropertyType()
      Returns the entity property type associated with this operand.
      Specified by:
      getEntityPropertyType in interface QueryOperand
      Returns:
      the entity property type
    • accept

      public void accept(QueryOperand.Visitor visitor)
      Accepts a visitor to perform operations on this operand.
      Specified by:
      accept in interface QueryOperand
      Parameters:
      visitor - the visitor to accept