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 orderDemandType
public static List<DemandType> findAll()
DemandType
public static List<DemandType> findByIdCategoryAndDate(int nIdCategory, Date dateToday)
nIdCategory
- the ID categorydateToday
- the date of todayDemandType
public static fr.paris.lutece.util.ReferenceList findDemandTypes()
ReferenceList
ReferenceList
public static int findMaxOrder()
public static List<DemandType> findByFilter(DemandTypeFilter dtFilter)
dtFilter
- the filterDemandType
public static List<DemandType> findNoDateEndDemandTypes()
DemandType
Copyright © 2019 City of Paris. All rights reserved.