Class DemandHome


  • public final class DemandHome
    extends Object
    DemandHome
    • Method Detail

      • create

        public static int create​(Demand demand)
        Insert a new record in the table.
        Parameters:
        demand - instance of the Demand object to insert
        Returns:
        the newly created demand id
      • update

        public static void update​(Demand demand)
        Update the record in the table
        Parameters:
        demand - the reference of the Demand
      • remove

        public static void remove​(int nIdDemand)
        Delete a record from the table
        Parameters:
        nIdDemand - int identifier of the demand to delete
      • findByPrimaryKey

        public static Demand findByPrimaryKey​(int nIdDemand)
        Load the data from the table
        Parameters:
        nIdDemand - The identifier of the demand
        Returns:
        The instance of the Demand
      • findByRemoteKey

        public static Demand findByRemoteKey​(String strRemoteId,
                                             int nIdDemandType)
        Load the data from the table
        Parameters:
        nIdDemand - The identifier of the demand
        Returns:
        The instance of the Demand
      • findAll

        public static List<Demand> findAll()
        Find all demands
        Returns:
        a list of Demand
      • findByFilter

        public static List<Demand> findByFilter​(DemandFilter dFilter)
        Find by filter
        Parameters:
        dFilter - the filter
        Returns:
        a list of Demand
      • findByFilter

        public static List<Demand> findByFilter​(DemandFilter dFilter,
                                                IPaginationProperties paginationProperties)
        Find by filter with pagination properties
        Parameters:
        dFilter - the filter
        paginationProperties - the pagination properties
        Returns:
        a list of Demand
      • countByFilter

        public static int countByFilter​(DemandFilter dFilter)
        Count results by filter
        Parameters:
        dFilter - the filter
        Returns:
        the number of results