|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.unittree.business.sector.SectorHome
public final class SectorHome
SectorHome
Method Summary | |
---|---|
static void |
addSectorToUnit(int nIdUnit,
int nIdSector)
Add a sector to an unit |
static java.util.List<Sector> |
findAll()
Find all sectors |
static java.util.List<Sector> |
findByIdUnit(int nIdUnit)
Find sectors from a given id unit |
static Sector |
findByPrimaryKey(int nIdSector)
Find a sector from its primary key |
static boolean |
hasSector(int nIdUnit,
int nIdSector)
Check if the unit has a sector |
static boolean |
hasSectors(int nIdUnit)
Check if the unit has a sectors |
static void |
removeSector(int nIdUnit,
int nIdSector)
Remove the sectors from an unit |
static void |
removeSectorsFromUnit(int nIdUnit)
Remove the sectors from an unit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Sector findByPrimaryKey(int nIdSector)
nIdSector
- the id sector
Sector
public static java.util.List<Sector> findAll()
public static java.util.List<Sector> findByIdUnit(int nIdUnit)
nIdUnit
- the id unit
Sector
public static void addSectorToUnit(int nIdUnit, int nIdSector)
nIdUnit
- the id unitnIdSector
- the id sectorpublic static boolean hasSector(int nIdUnit, int nIdSector)
nIdUnit
- the id unitnIdSector
- the id sector
public static boolean hasSectors(int nIdUnit)
nIdUnit
- the id unit
public static void removeSectorsFromUnit(int nIdUnit)
nIdUnit
- the id unitpublic static void removeSector(int nIdUnit, int nIdSector)
nIdUnit
- the id unitnIdSector
- the id sector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |