public final class DemandTypeHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
create(DemandType demandType)
Insert a new record in the table.
|
static List<DemandType> |
findAll()
Find all demandTypes
|
static List<DemandType> |
findByFilter(DemandTypeFilter dtFilter)
Find by filter
|
static List<DemandType> |
findByIdCategoryAndDate(int nIdCategory,
Date dateToday)
Find the list of demandTypes by id category and date
|
static DemandType |
findByOrder(int nOrder)
Find the demandType by its order
|
static DemandType |
findByPrimaryKey(int nIdDemandType)
Load the data from the table
|
static fr.paris.lutece.util.ReferenceList |
findDemandTypes()
Find all demandTypes as a
ReferenceList |
static int |
findMaxOrder()
Find the max order
|
static List<DemandType> |
findNoDateEndDemandTypes()
Find demand types that have not a date end
|
static int |
newPrimaryKey()
Generates a new primary key
|
static void |
remove(int nIdDemandType)
Delete a record from the table
|
static void |
update(DemandType demandType)
Update the record in the table
|
public static int newPrimaryKey()
public static int create(DemandType demandType)
demandType - instance of the DemandType object to insertpublic static void update(DemandType demandType)
demandType - the reference of the demandTypepublic static void remove(int nIdDemandType)
nIdDemandType - int identifier of the demandType to deletepublic static DemandType findByPrimaryKey(int nIdDemandType)
nIdDemandType - The identifier of the demandTypepublic static DemandType findByOrder(int nOrder)
nOrder - the orderDemandTypepublic static List<DemandType> findAll()
DemandTypepublic static List<DemandType> findByIdCategoryAndDate(int nIdCategory, Date dateToday)
nIdCategory - the ID categorydateToday - the date of todayDemandTypepublic static fr.paris.lutece.util.ReferenceList findDemandTypes()
ReferenceListReferenceListpublic static int findMaxOrder()
public static List<DemandType> findByFilter(DemandTypeFilter dtFilter)
dtFilter - the filterDemandTypepublic static List<DemandType> findNoDateEndDemandTypes()
DemandTypeCopyright © 2015 City of Paris. All rights reserved.