Class ProcessLinkSearchDAO

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

public class ProcessLinkSearchDAO extends CommonDAO
Fluent DAO for selection processes by links.
  • Field Details

    • form

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

  • Method Details

    • withOpen

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

      public ProcessLinkSearchDAO order(Order value)
      Selection order.
      Parameters:
      value - enum value.
      Returns:
    • withLinkObjectType

      public ProcessLinkSearchDAO withLinkObjectType(String value)
      Filter by link object type.
      Parameters:
      value -
      Returns:
    • withLinkObjectId

      public ProcessLinkSearchDAO withLinkObjectId(int value)
      Filter by link object ID.
      Parameters:
      value -
      Returns:
    • search

      public void search(Pageable<Process> result) throws SQLException
      Queries processes.
      Parameters:
      result - pageable result. throws SQLException
      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:
    • filterOpen

      protected void filterOpen(PreparedQuery pq)
    • filterType

      protected void filterType(PreparedQuery pq)
    • filterStatus

      protected void filterStatus(PreparedQuery pq)
    • order

      protected void order(PreparedQuery pq)