|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISectorService
ISectorService
| Method Summary | |
|---|---|
void |
addSectorsToUnit(Unit unit,
java.util.List<java.lang.Integer> listIdsSector)
Add sectors to the unit |
java.util.List<Sector> |
findAll()
Find all sectors |
java.util.List<Sector> |
findByIdUnit(int nIdUnit)
find a list of sectors from a given id unit |
Sector |
findByPrimaryKey(int nIdSector)
Find a sector from its primary key |
java.util.List<java.lang.Integer> |
getIdsSectorByIdUnit(int nIdUnit)
Get the ids sector from a given id unit |
boolean |
hasSector(int nIdUnit,
int nIdSector)
Check if the unit has the sector |
boolean |
hasSectors(int nIdUnit)
Check if the unit has sectors |
void |
removeSector(int nIdUnit,
int nIdSector)
Remove the sectors from an unit |
void |
removeSectorsFromUnit(int nIdUnit)
Remove the sectors from an unit |
| Method Detail |
|---|
Sector findByPrimaryKey(int nIdSector)
nIdSector - the id sector
Sectorjava.util.List<Sector> findByIdUnit(int nIdUnit)
nIdUnit - the id unit
Sectorjava.util.List<Sector> findAll()
Sectorjava.util.List<java.lang.Integer> getIdsSectorByIdUnit(int nIdUnit)
nIdUnit - the id unit
boolean hasSectors(int nIdUnit)
nIdUnit - the id unit
boolean hasSector(int nIdUnit,
int nIdSector)
nIdUnit - the id unitnIdSector - the id sector
@Transactional(value="unittree.transactionManager")
void addSectorsToUnit(Unit unit,
java.util.List<java.lang.Integer> listIdsSector)
unit - the unitlistIdsSector - the list of ids sector@Transactional(value="unittree.transactionManager") void removeSectorsFromUnit(int nIdUnit)
nIdUnit - the id unit
@Transactional(value="unittree.transactionManager")
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 | |||||||||