Class DemandHome
java.lang.Object
fr.paris.lutece.plugins.crm.business.demand.DemandHome
DemandHome
-
Method Summary
Modifier and TypeMethodDescriptionstatic intcountByFilter(DemandFilter dFilter) Count results by filterstatic intInsert a new record in the table.findAll()Find all demandsfindByFilter(DemandFilter dFilter) Find by filterfindByFilter(DemandFilter dFilter, IPaginationProperties paginationProperties) Find by filter with pagination propertiesstatic DemandfindByPrimaryKey(int nIdDemand) Load the data from the tablestatic DemandfindByRemoteKey(String strRemoteId, int nIdDemandType) Load the data from the tablestatic voidremove(int nIdDemand) Delete a record from the tablestatic voidUpdate the record in the table
-
Method Details
-
create
Insert a new record in the table.- Parameters:
demand- instance of the Demand object to insert- Returns:
- the newly created demand id
-
update
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
Load the data from the table- Parameters:
nIdDemand- The identifier of the demand- Returns:
- The instance of the Demand
-
findByRemoteKey
Load the data from the table- Parameters:
nIdDemand- The identifier of the demand- Returns:
- The instance of the Demand
-
findAll
Find all demands- Returns:
- a list of
Demand
-
findByFilter
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 filterpaginationProperties- the pagination properties- Returns:
- a list of
Demand
-
countByFilter
Count results by filter- Parameters:
dFilter- the filter- Returns:
- the number of results
-