|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.primavera.integration.client.BOBase
com.primavera.integration.client.bo.BusinessObject
com.primavera.integration.client.bo.object.ResourceHour
public class ResourceHour
A resource hour corresponds to an entry on a timesheet edited in Timesheets. Resource hours may not be exported directly by the XMLExporter, but all child resource hours are exported automatically when exporting timesheets. Resource hours are read only.
See Also: Quick reference of ResourceHour fields
Constructor Summary | |
---|---|
ResourceHour(Session session)
Class constructor specifying the Session. |
|
ResourceHour(Session session,
ObjectId objId)
Class constructor specifying the Session and ObjectId of the object. |
|
ResourceHour(Session session,
com.primavera.infr.db.PrmRowSet rowSet,
int iIndex)
Class constructor called internally after objects are retrieved from the server. |
Method Summary | |
---|---|
ObjectId |
getActivityObjectId()
Gets the unique ID of the activity to which the resource is assigned. |
boolean |
getActivityTimesheetLinkFlag()
Gets the value which indicates if the record is a real timesheet entry (false) or simply a placeholder for a timesheet entry (true). |
static java.lang.String[] |
getAllFields()
Gets all fields for this business object. |
double |
getApprovedHours()
Gets the number of hours, approved. |
double |
getApprovedOvertimeHours()
Gets the number of overtime hours, approved. |
java.util.Date |
getCreateDate()
Gets the date this data was created. |
java.lang.String |
getCreateUser()
Gets the name of the user that created this data. |
java.util.Date |
getDate()
Gets the date to which the hours apply. |
static java.lang.String[] |
getDefaultXMLExportFields()
Gets the fields that are exported by the XML exporter when no fields are specified. |
static java.lang.String[] |
getFilterableFields()
Gets all fields that can be filtered. |
static java.lang.String[] |
getInternalAllFields()
An internal method that should not be called directly by client code. |
static java.util.Set<java.lang.String> |
getInternalAllFieldsSet()
An internal method that should not be called directly by client code. |
static java.lang.String[] |
getInternalDefaultLoadFields()
An internal method that should not be called directly by client code. |
boolean |
getIsBaseline()
Gets the boolean value indicating if this business object is related to a Project or Baseline. |
java.util.Date |
getLastUpdateDate()
Gets the date this data was last updated. |
java.lang.String |
getLastUpdateUser()
Gets the name of the user that last updated this data. |
static java.lang.String[] |
getMinimumXMLExportFields()
Gets all fields that are always exported at a minimum by the new flat XML exporter |
ObjectId |
getObjectId()
Gets the unique ID generated by the system. |
java.lang.String |
getOverheadCodeName()
Gets the name of the overhead code. |
ObjectId |
getOverheadCodeObjectId()
Gets the unique ID of the overhead code, if the hours are for an overhead activity. |
java.lang.String |
getProjectId()
Gets the short code that uniquely identifies the project. |
java.lang.String |
getProjectName()
Gets the name of the associated project. |
ObjectId |
getProjectObjectId()
Gets the unique ID of the associated project. |
ObjectId |
getResourceAssignmentObjectId()
Gets the unique ID of the associated resource assignment. |
java.lang.String |
getResourceId()
Gets the short code that uniquely identifies the resource. |
java.lang.String |
getResourceName()
Gets the name of the resource. |
ObjectId |
getResourceObjectId()
Gets the unique ID of the associated resource. |
ResourceHourStatus |
getStatus()
Gets the approval level, when timesheets require approval: 'Submitted', 'Approved', 'Resource Manager Approved', 'Project Manager Approved', 'Active', or 'Rejected'. |
ObjectId |
getTimesheetPeriodObjectId()
Gets the unique ID of the associated timesheet. |
double |
getUnapprovedHours()
Gets the actual non-overtime units submitted by the resource on the activity. |
double |
getUnapprovedOvertimeHours()
Gets the actual overtime units submitted by the resource on the acitivity. |
ObjectId |
getWBSObjectId()
Gets the unique ID of the WBS for the activity. |
static java.lang.String[] |
getWritableFields()
Gets all writable fields for this business object. |
static ResourceHour |
load(Session session,
java.lang.String[] fields,
ObjectId objId)
Loads a single ResourceHour object from the database. |
static BOIterator<ResourceHour> |
load(Session session,
java.lang.String[] fields,
ObjectId[] objIds)
Loads multiple ResourceHour objects from the database. |
OverheadCode |
loadOverheadCode(java.lang.String[] fields)
Loads an associated OverheadCode object from the database. |
Project |
loadProject(java.lang.String[] fields)
Loads an associated Project object from the database. |
Resource |
loadResource(java.lang.String[] fields)
Loads an associated Resource object from the database. |
ResourceAssignment |
loadResourceAssignment(java.lang.String[] fields)
Loads an associated ResourceAssignment object from the database. |
Timesheet |
loadTimesheet(java.lang.String[] fields)
Loads an associated Timesheet object from the database. |
TimesheetPeriod |
loadTimesheetPeriod(java.lang.String[] fields)
Loads an associated TimesheetPeriod object from the database. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class com.primavera.integration.client.bo.BusinessObject |
---|
equals, hashCode, isNull, setNull, setObjectId |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceHour(Session session)
session
- the Sessionpublic ResourceHour(Session session, ObjectId objId) throws BusinessObjectException
session
- the SessionobjId
- the ObjectId
BusinessObjectException
- if a problem occurred in the client-side business objectspublic ResourceHour(Session session, com.primavera.infr.db.PrmRowSet rowSet, int iIndex) throws BusinessObjectException
session
- the SessionrowSet
- the PrmRowSet retrieved from the serveriIndex
- the row index in the PrmRowSet associated with this business object
BusinessObjectException
- if a problem occurred in the client-side business objectsMethod Detail |
---|
public static ResourceHour load(Session session, java.lang.String[] fields, ObjectId objId) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectfields
- fields to loadobjId
- unique ID of the ResourceHour object
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic static BOIterator<ResourceHour> load(Session session, java.lang.String[] fields, ObjectId[] objIds) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectfields
- fields to loadobjIds
- object ids of the ResourceHour objects
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic ResourceAssignment loadResourceAssignment(java.lang.String[] fields) throws ServerException, NetworkException, BusinessObjectException
fields
- fields to load
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic Resource loadResource(java.lang.String[] fields) throws ServerException, NetworkException, BusinessObjectException
fields
- fields to load
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic TimesheetPeriod loadTimesheetPeriod(java.lang.String[] fields) throws ServerException, NetworkException, BusinessObjectException
fields
- fields to load
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic Timesheet loadTimesheet(java.lang.String[] fields) throws ServerException, NetworkException, BusinessObjectException
fields
- fields to load
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic OverheadCode loadOverheadCode(java.lang.String[] fields) throws ServerException, NetworkException, BusinessObjectException
fields
- fields to load
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic Project loadProject(java.lang.String[] fields) throws ServerException, NetworkException, BusinessObjectException
fields
- fields to load
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic ObjectId getObjectId() throws BusinessObjectException
getObjectId
in class BusinessObject
BusinessObjectException
- if a problem occurred in the client-side business objectspublic ObjectId getResourceAssignmentObjectId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic ObjectId getActivityObjectId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic ObjectId getWBSObjectId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic ObjectId getOverheadCodeObjectId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.lang.String getOverheadCodeName() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic ObjectId getResourceObjectId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.lang.String getResourceName() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.lang.String getResourceId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic ResourceHourStatus getStatus() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.util.Date getDate() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic double getApprovedHours() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic double getApprovedOvertimeHours() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic boolean getActivityTimesheetLinkFlag() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic double getUnapprovedHours() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic double getUnapprovedOvertimeHours() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.lang.String getProjectName() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic ObjectId getProjectObjectId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.lang.String getProjectId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic ObjectId getTimesheetPeriodObjectId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.util.Date getCreateDate() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.util.Date getLastUpdateDate() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.lang.String getCreateUser() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.lang.String getLastUpdateUser() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic boolean getIsBaseline() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic static java.lang.String[] getFilterableFields()
public static java.lang.String[] getInternalDefaultLoadFields()
public static java.lang.String[] getAllFields()
public static java.lang.String[] getInternalAllFields()
public static java.util.Set<java.lang.String> getInternalAllFieldsSet()
public static java.lang.String[] getWritableFields()
public static java.lang.String[] getDefaultXMLExportFields()
public static java.lang.String[] getMinimumXMLExportFields()
public java.lang.String toString()
toString
in class java.lang.Object
|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |