|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.crm.business.demand.DemandTypeHome
public final class DemandTypeHome
DemandTypeHome
Method Summary | |
---|---|
static int |
create(DemandType demandType)
Insert a new record in the table. |
static java.util.List<DemandType> |
findAll()
Find all demandTypes |
static java.util.List<DemandType> |
findByFilter(DemandTypeFilter dtFilter)
Find by filter |
static java.util.List<DemandType> |
findByIdCategoryAndDate(int nIdCategory,
java.util.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 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int newPrimaryKey()
public static int create(DemandType demandType)
demandType
- instance of the DemandType object to insert
public 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 demandType
public static DemandType findByOrder(int nOrder)
nOrder
- the order
DemandType
public static java.util.List<DemandType> findAll()
DemandType
public static java.util.List<DemandType> findByIdCategoryAndDate(int nIdCategory, java.util.Date dateToday)
nIdCategory
- the ID categorydateToday
- the date of today
DemandType
public static fr.paris.lutece.util.ReferenceList findDemandTypes()
ReferenceList
ReferenceList
public static int findMaxOrder()
public static java.util.List<DemandType> findByFilter(DemandTypeFilter dtFilter)
dtFilter
- the filter
DemandType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |