public class ResourceBuilder
extends java.lang.Object
| Constructor and Description |
|---|
ResourceBuilder(MXServer mxServer,
WeekUtility weekUtility,
ResourceUtility resourceUtility,
boolean bucketBased) |
| Modifier and Type | Method and Description |
|---|---|
Resource |
build(MboRemote projectMbo,
java.sql.ResultSet resultSet,
java.lang.String type,
GWASchedule schedule)
Builds a Resource object based on the values retrieved from a ResultSet.
|
void |
calculateNextCrewWeeks(IMXResource resource,
GWASchedule schedule,
java.util.Date nextWeek,
int week) |
void |
calculateNextLaborWeeks(IMXResource resource,
GWASchedule schedule,
java.util.Date nextWeek,
int week) |
protected void |
loadResource(IMXResource resource,
java.lang.String objectName,
MboRemote projectMbo,
java.lang.Long objectID,
GWASchedule schedule)
Load resource
|
protected MXLogger sqlLogger
public ResourceBuilder(MXServer mxServer, WeekUtility weekUtility, ResourceUtility resourceUtility, boolean bucketBased)
public Resource build(MboRemote projectMbo, java.sql.ResultSet resultSet, java.lang.String type, GWASchedule schedule) throws MXException, java.rmi.RemoteException
resultSet - MXExceptionjava.rmi.RemoteExceptionprotected void loadResource(IMXResource resource, java.lang.String objectName, MboRemote projectMbo, java.lang.Long objectID, GWASchedule schedule) throws SchedulerException
resource - object - namembo - objectSchedulerExceptionpublic void calculateNextCrewWeeks(IMXResource resource, GWASchedule schedule, java.util.Date nextWeek, int week) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic void calculateNextLaborWeeks(IMXResource resource, GWASchedule schedule, java.util.Date nextWeek, int week) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXException