public final class UnitAssignmentHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static UnitAssignment |
create(UnitAssignment unitAssignment)
Creates a unit assignment
|
static void |
deactivate(UnitAssignment unitAssignment)
Deactivates a unit assignment
|
static void |
deactivateByResource(int nIdResource,
String strResourceType)
Deactivate the units assignments associated to the specified resource.
|
static void |
deleteByResource(int nIdResource,
String strResourceType)
Delete the units assignments associated to the specified resource.
|
static List<UnitAssignment> |
findByResource(int nIdResource,
String strResourceType)
Finds the unit assignments associated to the specified couple {resource id, resource type}.
|
static List<UnitAssignment> |
findByUnit(int nIdUnit)
Finds the unit assignments associated to the specified unit.
|
public static UnitAssignment create(UnitAssignment unitAssignment)
unitAssignment - The unit assignment to createpublic static void deactivate(UnitAssignment unitAssignment)
unitAssignment - The unit assignment to deactivatepublic static List<UnitAssignment> findByResource(int nIdResource, String strResourceType)
Finds the unit assignments associated to the specified couple {resource id, resource type}.
The result list contains active and inactive unit assignments.
nIdResource - the resource idstrResourceType - the resource typepublic static List<UnitAssignment> findByUnit(int nIdUnit)
Finds the unit assignments associated to the specified unit.
The result list contains active and inactive unit assignments.
nIdUnit - the unit idpublic static void deactivateByResource(int nIdResource,
String strResourceType)
Deactivate the units assignments associated to the specified resource.
nIdResource - the resource idstrResourceType - the resource typepublic static void deleteByResource(int nIdResource,
String strResourceType)
Delete the units assignments associated to the specified resource.
nIdResource - the resource idstrResourceType - the resource typeCopyright © 2020 City of Paris. All rights reserved.