Class ProcessParamSearchDAO

java.lang.Object
ru.bgcrm.dao.CommonDAO
org.bgerp.dao.process.ProcessParamSearchDAO

public class ProcessParamSearchDAO extends CommonDAO
Fluent DAO for selection processes by parameter values.
  • Field Details

    • form

      protected final DynActionForm form
      User request context for isolations.
  • Constructor Details

  • Method Details

    • withOpen

      public ProcessParamSearchDAO withOpen(Boolean value)
      Filter by process closing date.
      Parameters:
      value - null - no filter, or process closing date not null.
      Returns:
    • withParamTextIds

      public ProcessParamSearchDAO withParamTextIds(Set<Integer> values)
    • withParamTextValue

      public ProcessParamSearchDAO withParamTextValue(String value)
    • search

      public void search(Pageable<ParameterSearchedObject<Process>> result) throws SQLException
      Queries processes with param values.
      Parameters:
      result - pageable result.
      Throws:
      SQLException
    • withType

      public org.bgerp.dao.process.SearchDAO withType(Set<Integer> value)
      Filter by process type ID.
      Parameters:
      value - null or empty - no filter, or set with type IDs.
      Returns:
    • withStatus

      public org.bgerp.dao.process.SearchDAO withStatus(Collection<Integer> value)
      Filter by process status ID.
      Parameters:
      value - null or empty - no filter, or set with status IDs.
      Returns:
    • order

      public org.bgerp.dao.process.SearchDAO order(Order value)
      Selection order.
      Parameters:
      value - enum value.
      Returns:
    • filterOpen

      protected void filterOpen(PreparedQuery pq)
    • filterType

      protected void filterType(PreparedQuery pq)
    • filterStatus

      protected void filterStatus(PreparedQuery pq)
    • order

      protected void order(PreparedQuery pq)