Class AbstractListParameter<ELEMENT>

java.lang.Object
org.seasar.doma.internal.jdbc.sql.AbstractListParameter<ELEMENT>
All Implemented Interfaces:
ListParameter<ELEMENT>, SqlParameter
Direct Known Subclasses:
DomainListParameter, EntityListParameter, MapListParameter, ScalarListParameter

public abstract class AbstractListParameter<ELEMENT> extends Object implements ListParameter<ELEMENT>
  • Field Details

  • Constructor Details

    • AbstractListParameter

      public AbstractListParameter(List<ELEMENT> list, String name)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: ListParameter
      Returns the parameter name.
      Specified by:
      getName in interface ListParameter<ELEMENT>
      Returns:
      the parameter name
    • add

      public void add(ELEMENT element)
      Description copied from interface: ListParameter
      Adds the list element.
      Specified by:
      add in interface ListParameter<ELEMENT>
      Parameters:
      element - the list element
    • getValue

      public Object getValue()
      Description copied from interface: SqlParameter
      Returns the parameter value.
      Specified by:
      getValue in interface SqlParameter
      Returns:
      the parameter value
    • accept

      public <R, P, TH extends Throwable> R accept(SqlParameterVisitor<R,P,TH> visitor, P p) throws TH
      Description copied from interface: SqlParameter
      Accepts the visitor.
      Specified by:
      accept in interface SqlParameter
      Type Parameters:
      R - the result type
      P - the parameter type
      TH - the throwable type
      Parameters:
      visitor - the visitor
      p - the parameter
      Returns:
      the result
      Throws:
      TH - the exception